Skip to content

Commit

Permalink
Merge pull request #161 from ycliuhw/add-user-secret-tests
Browse files Browse the repository at this point in the history
Generate tests for user secrets and extend timeout to 60mins for test…
  • Loading branch information
ycliuhw authored Nov 16, 2023
2 parents bc30fba + 4bf389f commit 509710f
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 30 deletions.
146 changes: 126 additions & 20 deletions jobs/ci-run/integration/gen/test-secrets_iaas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
current-parameters: true
- name: 'test-secrets_iaas-test-secrets-vault-lxd'
current-parameters: true
- name: 'test-secrets_iaas-test-user-secret-drain-lxd'
current-parameters: true

- job:
name: test-secrets_iaas-test-secret-drain-lxd
Expand Down Expand Up @@ -107,11 +109,17 @@
OPERATOR_IMAGE_ACCOUNT=${PARAM_OPERATOR_IMAGE_ACCOUNT}
- wait-for-cloud-init
- prepare-integration-test
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secret_drain'
skip_tasks: 'test_secrets_cmr,test_secrets_juju,test_secrets_vault'
- conditional-step:
condition-kind: regex-match
regex: "^[4-9].*|^3\\.([2-9]|\\d{2,})(\\.|-).*"
label: "${JUJU_VERSION}"
on-evaluation-failure: "dont-run"
steps:
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secret_drain'
skip_tasks: 'test_secrets_cmr,test_secrets_juju,test_secrets_vault,test_user_secret_drain'
publishers:
- integration-artifacts

Expand Down Expand Up @@ -181,11 +189,17 @@
OPERATOR_IMAGE_ACCOUNT=${PARAM_OPERATOR_IMAGE_ACCOUNT}
- wait-for-cloud-init
- prepare-integration-test
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secrets_cmr'
skip_tasks: 'test_secret_drain,test_secrets_juju,test_secrets_vault'
- conditional-step:
condition-kind: regex-match
regex: "^[4-9].*|^3\\.([1-9]|\\d{2,})(\\.|-).*"
label: "${JUJU_VERSION}"
on-evaluation-failure: "dont-run"
steps:
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secrets_cmr'
skip_tasks: 'test_secret_drain,test_secrets_juju,test_secrets_vault,test_user_secret_drain'
publishers:
- integration-artifacts

Expand Down Expand Up @@ -255,11 +269,17 @@
OPERATOR_IMAGE_ACCOUNT=${PARAM_OPERATOR_IMAGE_ACCOUNT}
- wait-for-cloud-init
- prepare-integration-test
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secrets_juju'
skip_tasks: 'test_secret_drain,test_secrets_cmr,test_secrets_vault'
- conditional-step:
condition-kind: regex-match
regex: "^[4-9].*|^3\\.([1-9]|\\d{2,})(\\.|-).*"
label: "${JUJU_VERSION}"
on-evaluation-failure: "dont-run"
steps:
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secrets_juju'
skip_tasks: 'test_secret_drain,test_secrets_cmr,test_secrets_vault,test_user_secret_drain'
publishers:
- integration-artifacts

Expand All @@ -269,6 +289,86 @@
description: |-
Test test_secrets_vault in secrets_iaas suite on lxd
parameters:
- validating-string:
name: SHORT_GIT_COMMIT
description: 'Enable sub job to be run individually.'
regex: ^\S{7}$
msg: Enter a valid 7 char git sha
- choice:
default: 'amd64'
description: 'Build arch used to download the build tar.gz.'
name: BUILD_ARCH
choices:
- amd64
- arm64
- s390x
- ppc64el
- choice:
default: ''
description: 'Arch used to boostrap controller.'
name: BOOTSTRAP_ARCH
choices:
- amd64
- arm64
- s390x
- ppc64el
- choice:
default: ''
description: 'Arch used for hosted models.'
name: MODEL_ARCH
choices:
- amd64
- arm64
- s390x
- ppc64el
- string:
default: 'lxd'
description: 'Cloud to use when bootstrapping Juju'
name: BOOTSTRAP_CLOUD
- string:
default: 'lxd'
description: 'Provider to use when bootstrapping Juju'
name: BOOTSTRAP_PROVIDER
- string:
default: ''
description: 'Ubuntu series to use when bootstrapping Juju'
name: BOOTSTRAP_SERIES
- string:
default: docker.io/jujuqabot
description: "Operator docker image account name."
name: PARAM_OPERATOR_IMAGE_ACCOUNT
wrappers:
- default-integration-test-wrapper
- timeout:
timeout: 60
fail: true
type: absolute
builders:
- inject:
properties-content: |-
OPERATOR_IMAGE_ACCOUNT=${PARAM_OPERATOR_IMAGE_ACCOUNT}
- wait-for-cloud-init
- prepare-integration-test
- conditional-step:
condition-kind: regex-match
regex: "^[4-9].*|^3\\.([1-9]|\\d{2,})(\\.|-).*"
label: "${JUJU_VERSION}"
on-evaluation-failure: "dont-run"
steps:
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secrets_vault'
skip_tasks: 'test_secret_drain,test_secrets_cmr,test_secrets_juju,test_user_secret_drain'
publishers:
- integration-artifacts

- job:
name: test-secrets_iaas-test-user-secret-drain-lxd
node: ephemeral-focal-8c-32g-amd64
description: |-
Test test_user_secret_drain in secrets_iaas suite on lxd
parameters:
- validating-string:
name: SHORT_GIT_COMMIT
description: 'Enable sub job to be run individually.'
Expand Down Expand Up @@ -329,10 +429,16 @@
OPERATOR_IMAGE_ACCOUNT=${PARAM_OPERATOR_IMAGE_ACCOUNT}
- wait-for-cloud-init
- prepare-integration-test
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_secrets_vault'
skip_tasks: 'test_secret_drain,test_secrets_cmr,test_secrets_juju'
- conditional-step:
condition-kind: regex-match
regex: "^[4-9].*|^3\\.([3-9]|\\d{2,})(\\.|-).*"
label: "${JUJU_VERSION}"
on-evaluation-failure: "dont-run"
steps:
- run-integration-test:
test_name: 'secrets_iaas'
setup_steps: ''
task_name: 'test_user_secret_drain'
skip_tasks: 'test_secret_drain,test_secrets_cmr,test_secrets_juju,test_secrets_vault'
publishers:
- integration-artifacts
Loading

0 comments on commit 509710f

Please sign in to comment.