diff --git a/.packit.yaml b/.packit.yaml index 83f3deed..d12f7791 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -47,32 +47,32 @@ jobs: release_suffix: "99.dev.{PACKIT_PROJECT_BRANCH}" targets: [fedora-all, epel-8, epel-9] - - job: tests - trigger: pull_request - identifier: "upstream-smoke" - targets: [fedora-all, epel-8, epel-9] - - - job: copr_build - trigger: commit - targets: [fedora-all, epel-8, epel-9] - - - job: copr_build - trigger: release - owner: "@freeipa" - project: neoave - targets: [fedora-all, epel-8, epel-9] - - - job: propose_downstream - trigger: release - dist_git_branches: [fedora-all, epel-8, epel-9] - - - job: koji_build - trigger: commit - dist_git_branches: [fedora-all, epel-8, epel-9] - - - job: bodhi_update - trigger: commit - dist_git_branches: [fedora-branched, epel-8, epel-9] # rawhide updates are created automatically + # - job: tests + # trigger: pull_request + # identifier: "upstream-smoke" + # targets: [fedora-all, epel-8, epel-9] + + # - job: copr_build + # trigger: commit + # targets: [fedora-all, epel-8, epel-9] + + # - job: copr_build + # trigger: release + # owner: "@freeipa" + # project: neoave + # targets: [fedora-all, epel-8, epel-9] + + # - job: propose_downstream + # trigger: release + # dist_git_branches: [fedora-all, epel-8, epel-9] + + # - job: koji_build + # trigger: commit + # dist_git_branches: [fedora-all, epel-8, epel-9] + + # - job: bodhi_update + # trigger: commit + # dist_git_branches: [fedora-branched, epel-8, epel-9] # rawhide updates are created automatically # # pr_osp # - &internal_test # use openstack (osp) tests as template for other test cases diff --git a/idm-ci/metadata/error.yaml b/idm-ci/metadata/error.yaml new file mode 100644 index 00000000..788008e9 --- /dev/null +++ b/idm-ci/metadata/error.yaml @@ -0,0 +1,26 @@ +domains: + - name: mydomain.test + type: ipa + hosts: + - name: server.mydomain.test + role: master + group: ipaserver + os: rhel-8.4 +phases: + - name: init + steps: + - playbook: init/testrunner-dir.yaml + - name: provision + steps: + - command: echo "skip prov" + - name: prep + steps: + - command: echo "skip prep" + - name: test + steps: + - command: | + echo "intentional fail (error)" + exit 1 + - name: teardown + steps: + - command: echo "skip teardown" diff --git a/idm-ci/metadata/junit-failure.yaml b/idm-ci/metadata/junit-failure.yaml new file mode 100644 index 00000000..8352bb4b --- /dev/null +++ b/idm-ci/metadata/junit-failure.yaml @@ -0,0 +1,28 @@ +--- +domains: + - name: mydomain.test + type: ipa + hosts: + - name: server.mydomain.test + role: master + group: ipaserver + os: rhel-8.4 +phases: + - name: init + steps: + - playbook: init/testrunner-dir.yaml + - name: provision + steps: + - command: echo "skip prov" + - name: prep + steps: + - command: echo "skip prep" + - name: test + steps: + - command: | + wget https://gist.githubusercontent.com/dav-pascual/210e913ebd1caee5443278c07061c15a/raw/0d2513da887cbe7cd5ccfad584a2a9caef6c637d/junit-failure.xml + mv junit-failure.xml failure-junit.xml + exit 1 + - name: teardown + steps: + - command: echo "skip teardown" diff --git a/idm-ci/metadata/junit-success.yaml b/idm-ci/metadata/junit-success.yaml new file mode 100644 index 00000000..f150a8bc --- /dev/null +++ b/idm-ci/metadata/junit-success.yaml @@ -0,0 +1,27 @@ +--- +domains: + - name: mydomain.test + type: ipa + hosts: + - name: server.mydomain.test + role: master + group: ipaserver + os: rhel-8.4 +phases: + - name: init + steps: + - playbook: init/testrunner-dir.yaml + - name: provision + steps: + - command: echo "skip prov" + - name: prep + steps: + - command: echo "skip prep" + - name: test + steps: + - command: | + wget https://gist.githubusercontent.com/dav-pascual/210e913ebd1caee5443278c07061c15a/raw/0d2513da887cbe7cd5ccfad584a2a9caef6c637d/junit-success.xml + mv junit-success.xml success-junit.xml + - name: teardown + steps: + - command: echo "skip teardown" diff --git a/idm-ci/test-plan/jobs.yaml b/idm-ci/test-plan/jobs.yaml new file mode 100644 index 00000000..92a49ca6 --- /dev/null +++ b/idm-ci/test-plan/jobs.yaml @@ -0,0 +1,13 @@ +--- +jobs: + - name: error + metadata: idm-ci/metadata/error.yaml + changes: [] + + - name: junit-failure + metadata: idm-ci/metadata/junit-failure.yaml + changes: [] + + - name: junit-success + metadata: idm-ci/metadata/junit-success.yaml + changes: [] diff --git a/idm-ci/test-plan/qualifications.yaml b/idm-ci/test-plan/qualifications.yaml new file mode 100644 index 00000000..ae60d574 --- /dev/null +++ b/idm-ci/test-plan/qualifications.yaml @@ -0,0 +1,22 @@ +--- +project: + key: idmci-test + name: IdM-CI-Data +os: main +test_projects: + - name: davherna-mrack + repo: https://github.com/dav-pascual/mrack + branch: main +qualifications: + - name: gh-testing-main + stages: + - name: basic + jobs: + - junit-success + - junit-failure + triggers: + - github_pr: + target_branch: main + copr_chroot: "fedora-38-x86_64" + gh_repo: "dav-pascual/mrack" + allowlist: https://dummy.com/raw/allowlist.yaml diff --git a/idm-ci/test-plan/test-plan/jobs.yaml b/idm-ci/test-plan/test-plan/jobs.yaml new file mode 100644 index 00000000..aa86d8aa --- /dev/null +++ b/idm-ci/test-plan/test-plan/jobs.yaml @@ -0,0 +1,20 @@ +jobs: + - name: error + metadata: metadata/error.yaml + changes: [] + + - name: junit-combined.yaml + metadata: metadata/junit-combined.yaml + changes: [] + + - name: junit-error + metadata: metadata/junit-error.yaml + changes: [] + + - name: junit-failure + metadata: metadata/junit-failure.yaml + changes: [] + + - name: junit-success + metadata: metadata/junit-success.yaml + changes: [] diff --git a/idm-ci/test-plan/test-plan/qualifications.yaml b/idm-ci/test-plan/test-plan/qualifications.yaml new file mode 100644 index 00000000..946e8c65 --- /dev/null +++ b/idm-ci/test-plan/test-plan/qualifications.yaml @@ -0,0 +1,20 @@ +project: + key: idmci-test + name: IdM-CI-Data +os: main +test_projects: + - name: idmci-test-data + repo: https://gitlab.cee.redhat.com/davherna/idmci-test-data/ + branch: main +qualifications: + - name: gh-testing-main + stages: + - name: basic + jobs: + - junit-success + triggers: + - github_pr: + target_branch: main + copr_chroot: "fedora-38-x86_64" + gh_repo: "dav-pascual/mrack" + allowlist: https://dummy.com/raw/allowlist.yaml