-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It calls ansible_runner.interface.run() by converting the testcase description data to kwargs. It only overrides quiet and artifact_dir to implement the Xtesting behavior. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ifd09810400babc0f2b81f2c33edf55a3ed88807b Signed-off-by: Ajay kumar <ajay4.kumar@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
- Loading branch information
Showing
12 changed files
with
418 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
- fourth | ||
- fifth | ||
- sixth | ||
- eighth | ||
- container: xtesting-mts | ||
tests: | ||
- seventh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
--- | ||
tiers: | ||
- | ||
name: samples | ||
- name: samples | ||
description: '' | ||
testcases: | ||
- case_name: first | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
testcases: | ||
- | ||
case_name: first | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: 'first' | ||
|
||
- | ||
case_name: second | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: 'second' | ||
|
||
- | ||
case_name: third | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: 'bashfeature' | ||
args: | ||
cmd: 'echo -n Hello World; exit 0' | ||
|
||
- | ||
case_name: fourth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: 'unit' | ||
args: | ||
name: 'xtesting.samples.fourth' | ||
|
||
- | ||
case_name: fifth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: 'robotframework' | ||
args: | ||
suites: | ||
- /usr/lib/python3.8/site-packages/xtesting/samples/HelloWorld.robot | ||
variable: | ||
- 'var01:foo' | ||
- 'var02:bar' | ||
|
||
- | ||
case_name: sixth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: false | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: 'behaveframework' | ||
args: | ||
suites: | ||
- /usr/lib/python3.8/site-packages/xtesting/samples/features/ | ||
tags: | ||
- foo | ||
run: | ||
name: first | ||
- case_name: second | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: second | ||
- case_name: third | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: bashfeature | ||
args: | ||
cmd: echo -n Hello World; exit 0 | ||
- case_name: fourth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: unit | ||
args: | ||
name: xtesting.samples.fourth | ||
- case_name: fifth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: robotframework | ||
args: | ||
suites: | ||
- >- | ||
/usr/lib/python3.8/site-packages/xtesting/samples/HelloWorld.robot | ||
variable: | ||
- 'var01:foo' | ||
- 'var02:bar' | ||
- case_name: sixth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: behaveframework | ||
args: | ||
suites: | ||
- /usr/lib/python3.8/site-packages/xtesting/samples/features | ||
tags: | ||
- foo | ||
- case_name: eighth | ||
project_name: xtesting | ||
criteria: 100 | ||
blocking: true | ||
clean_flag: false | ||
description: '' | ||
run: | ||
name: ansible | ||
args: | ||
private_data_dir: /usr/lib/python3.8/site-packages/xtesting/samples | ||
playbook: helloworld.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ os-testr # Apache-2.0 | |
junitxml | ||
boto3 # Apache-2.0 | ||
lxml!=3.7.0 # BSD | ||
ansible-runner!=1.3.5 # Apache 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ doc8 # Apache-2.0 | |
bashate # Apache-2.0 | ||
ansible-lint | ||
bandit | ||
munch # MIT |
Oops, something went wrong.