RedHatQE / teflo

Teflo is a standalone orchestration software that controls the flow of a set of testing scenarios, allowing users to provision machines, deploy software, execute tests against them and manage generated artifacts and report results.
https://teflo.readthedocs.io/en/latest/
GNU General Public License v3.0
14 stars 16 forks source link

fixed resource name issue #187

Closed JunqiZhang0 closed 2 years ago

JunqiZhang0 commented 2 years ago

Fix #182

JunqiZhang0 commented 2 years ago

Is it possible to add a unit test for this change? something to check if the resources are same or different based on the resource id? I do think unit tests is important to cover this

Rest looks good.

i tested with the below scenario which ran fine `---

name: data_folder description:

provision:

  • name: laptop groups: localhost ip_address: 127.0.0.1 ansible_params: ansible_connection: local

execute:

  • name: ex1 description: "Test running script during execute" executor: runner hosts: localhost shell:

    • chdir: /home command: ls artifacts:

    • ./cnv-ibm_bare_metal-tests.xml

    • ./payload_1/results/junit_example.xml

  • name: ex1 description: "Test running script during execute" executor: runner hosts: localhost shell:

    • chdir: /home command: ls

report:

  • name: SampleTest.xml description: import results to polarion credential: polarion-creds importer: polarion project_id: Carbon1 testsuite_properties: polarion-lookup-method: name polarion-testrun-title: e2e-tests
  • name: SampleTest.xml description: import results to polarion credential: polarion-creds importer: polarion project_id: Carbon1 testsuite_properties: polarion-lookup-method: name polarion-testrun-title: test2 ~ ~ `

Cool, If everything worked fine I'll add it, thank you very much for testing!