10 Commits

Author SHA1 Message Date
Zuul
fbcce5894c Merge "Fix the syntax for groups in documentation." 2021-03-15 21:05:12 +00:00
Daniel Bengtsson
01103d6739 Refactor the groups property in Validation class.
Improve the code and remove the condition to check the groups. Use the
default value from the get method.

Co-authored-by: Owen McGonagle <omcgonag@redhat.com>
Change-Id: I693ba3699ab2c1b50f92b4f60f309d8c529a23c4
2021-03-04 00:21:06 +01:00
Daniel Bengtsson
7754b368c5 Fix the syntax for groups in documentation.
The groups list must be in the metadata.

Change-Id: Id64f71ad8fc02db84a18a27923919b9b03072bb3
2021-03-03 11:18:51 +01:00
Zuul
f47226349a Merge "OrderedDict can be constructed directly from dict instance" 2021-02-02 23:40:25 +00:00
Jiri Podivin
4b9dff2671 OrderedDict can be constructed directly from dict instance
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I7a49a8e4cc45076de090d979eabc4fef7fb0f043
2021-01-22 15:36:25 +01:00
Jiri Podivin
8dc1549ddd Local vars were redefining builtins
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Iecdcae0be0d8363668f77f9de4f8a431a8162f5e
2021-01-14 12:54:39 +01:00
Gael Chamoulaud (Strider)
eb62054a33
Enforce the way we encapsulate a Validation
This patch ensures that the playbook is respecting the minimal structure
of a validation. This patch also adds DocStrings to the Validation class
and new unittests according to the enforcement changes.

Change-Id: I0809163cbd661cbd24705ed348281c7818a944b4
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2020-11-13 09:35:50 +01:00
Mathieu Bultel
c940a0c30d Add unit tests coverage for validation, group and logs classes
Increase the unit tests coverage for recent code:
validation, group and logs classes.
(Increase of 54 unit tests)

Move per action files into one test file:
test_validation_actions

Change-Id: I7a1a8b0681c13ebd758a5686b2398a0a9e87a4eb
2020-04-02 09:41:30 +00:00
Mathieu Bultel
fd95a175b7 Implement Validation Show Parameters
Change-Id: Ie3366f4f32dd87871315cc9f95f7c2335df25e4b
2020-03-20 13:45:12 +00:00
Mathieu Bultel
95edef7a8c Move validation data as object
Change-Id: I1b82f3ef24b80d55f96bd76c17278b988e4b611d
2020-03-20 13:21:13 +00:00