17 Commits

Author SHA1 Message Date
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
1daa430f9a Fix behavior for Show command to stick to tripleoclient
The behavior of the Show command wasn't exactly as tripleoclient
This review aims to fix it

Change-Id: I4e1af84675bfe722e232217f15c29fbc3d006333
2020-03-26 14:58:34 +01:00
Mathieu Bultel
c98ea9195a Add get validation playbook function and cleanup
Remove unsed function and add get validation playbook function

Change-Id: I5fbcbab7a402dd1149fa6df718f530a3ee5c6af2
2020-03-24 00:01:22 +01:00
Mathieu Bultel
bcd72301f6 Add validation log object representation
Create two classes for Log and Logs in order to get
a simpler representation of the validation Log and
provide easy way to manage the log data informations

Change-Id: I743355cef943e43492264d4c4700bebbeab9a37d
2020-03-23 21:54:21 +00:00
Mathieu Bultel
fd95a175b7 Implement Validation Show Parameters
Change-Id: Ie3366f4f32dd87871315cc9f95f7c2335df25e4b
2020-03-20 13:45:12 +00:00
Mathieu Bultel
491a27b53c Add validation_actions class and group info implementation
Move all validation actions into a ValidationActions class
in order to have one object with several validations actions

Add group info implementation
And add group object like validation object to have
a simpler representation of the validation group.

Change-Id: Idc7a55e26de20968f0a6a90f2a005d21a30c9e70
2020-03-20 13:44:53 +00:00
Mathieu Bultel
95edef7a8c Move validation data as object
Change-Id: I1b82f3ef24b80d55f96bd76c17278b988e4b611d
2020-03-20 13:21:13 +00:00
Mathieu Bultel
132735a697 Remove unused classes for PushD and Tempdir
Change-Id: I169036ef7556e7d259c0b84dd357eba7230d9313
2020-03-17 16:10:17 +01:00
Mathieu Bultel
d2c91c8080 Add validations show functions
This review add functionnalities to parse and show
validations output as dict with the required format

Change-Id: I57ca3d18397c7fbdb084b06224d7cab3d4592d30
2020-03-17 09:54:28 +00:00
Gael Chamoulaud (Strider)
84aa2b6846
Improve the way we log on the file system
Improve the way we log on the file system and share
the same uuid for callback logging and ansible
runner and artifact logging

This patch also adds zuul.d directory:
* Adds zuul.d/layout.yaml
* Adds .gitreview file
* Fixes ansible-runner requirements issue

Co-Authored-By: Gael Chamoulaud <gchamoul@redhat.com>
Change-Id: I4da8c1974362029754aa5b09cd8e6c7d6a27dd0d
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2020-03-11 17:07:56 +01:00
Mathieu Bultel
07e56863b9 remove untested get_result functions from this PR 2020-03-09 14:44:24 +01:00
Mathieu Bultel
32d15b6a1b Add unit tests for ansible runner library 2020-03-09 14:21:03 +01:00
Mathieu Bultel
0a71d73e4e fix nits 2020-03-04 15:26:35 +01:00
Mathieu Bultel
9e308dbae4 fix pep8 lint 2020-03-04 10:50:14 +01:00
Mathieu Bultel
138ef53e5b Add run and ansible_runner execution 2020-03-04 10:50:14 +01:00
Mathieu Bultel
ec9c986de8 fix module import 2020-03-03 18:57:40 +01:00
Mathieu Bultel
8cce4bfd64 Add utils functions and validations List object 2020-03-03 16:55:20 +01:00