Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some idmci files #285

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- .packit.yaml
- gating.yaml
- ci.fmf
# we need to sync tmt for TF to work in Fedora updates

Check warning on line 13 in .packit.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

13:1 [comments-indentation] comment not indented like content
- src: ./tests/smoke/*
dest: ./tests/smoke/
- src: ./plans/*
Expand Down Expand Up @@ -47,32 +47,32 @@
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

Check warning on line 50 in .packit.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

50:3 [comments-indentation] comment not indented like content
# 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
Expand Down
26 changes: 26 additions & 0 deletions idm-ci/metadata/error.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
domains:

Check warning on line 1 in idm-ci/metadata/error.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

1:1 [document-start] missing document start "---"
- 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"
28 changes: 28 additions & 0 deletions idm-ci/metadata/junit-failure.yaml
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 23 in idm-ci/metadata/junit-failure.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

23:121 [line-length] line too long (157 > 120 characters)
mv junit-failure.xml failure-junit.xml
exit 1
- name: teardown
steps:
- command: echo "skip teardown"
27 changes: 27 additions & 0 deletions idm-ci/metadata/junit-success.yaml
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 23 in idm-ci/metadata/junit-success.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

23:121 [line-length] line too long (157 > 120 characters)
mv junit-success.xml success-junit.xml
- name: teardown
steps:
- command: echo "skip teardown"
13 changes: 13 additions & 0 deletions idm-ci/test-plan/jobs.yaml
Original file line number Diff line number Diff line change
@@ -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: []
22 changes: 22 additions & 0 deletions idm-ci/test-plan/qualifications.yaml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions idm-ci/test-plan/test-plan/jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
jobs:

Check warning on line 1 in idm-ci/test-plan/test-plan/jobs.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

1:1 [document-start] missing document start "---"
- 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: []
20 changes: 20 additions & 0 deletions idm-ci/test-plan/test-plan/qualifications.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project:

Check warning on line 1 in idm-ci/test-plan/test-plan/qualifications.yaml

View workflow job for this annotation

GitHub Actions / pre-commit

1:1 [document-start] missing document start "---"
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
Loading