|
27 | 27 | ./scripts/ci-tests.sh |
28 | 28 | - run: echo "🍏 This job's status is ${{ job.status }}." |
29 | 29 | check3: |
30 | | - name: Acceptance Tests |
| 30 | + name: ASA Acceptance Tests |
31 | 31 | # Ensure acceptance tests are only run on okta/terraform-provider-oktapam or if a special label is applied (`run-acceptance-tests`) |
32 | 32 | if: github.repository == 'okta/terraform-provider-oktapam' || github.event.label.name == 'run-acceptance-tests' |
33 | 33 | runs-on: ubuntu-latest |
|
42 | 42 | with: |
43 | 43 | terraform_version: ${{ steps.vars.outputs.tf-version }} |
44 | 44 | terraform_wrapper: false |
45 | | - - name: Run unit tests |
| 45 | + - name: Run acceptance tests |
46 | 46 | run: | |
47 | 47 | ./scripts/ci-acceptance-tests.sh |
48 | 48 | env: |
|
61 | 61 | OKTAPAM_API_HOST: ${{ secrets.OKTA_499446_OKTAPAM_API_HOST }} |
62 | 62 | - run: echo "🍏 This job's status is ${{ job.status }}." |
63 | 63 | check4: |
| 64 | + name: OktaPA Acceptance Tests |
| 65 | + # Ensure acceptance tests are only run on okta/terraform-provider-oktapam or if a special label is applied (`run-acceptance-tests`) |
| 66 | + if: github.repository == 'okta/terraform-provider-oktapam' || github.event.label.name == 'run-acceptance-tests' |
| 67 | + runs-on: ubuntu-latest |
| 68 | + steps: |
| 69 | + - name: Check out repository code |
| 70 | + uses: actions/checkout@v3 |
| 71 | + - name: Get Terraform CLI Version |
| 72 | + id: vars |
| 73 | + run: echo ::set-output name=tf-version::$(cat .terraform-version) |
| 74 | + - name: Setup Terraform |
| 75 | + uses: hashicorp/setup-terraform@v2 |
| 76 | + with: |
| 77 | + terraform_version: ${{ steps.vars.outputs.tf-version }} |
| 78 | + terraform_wrapper: false |
| 79 | + - name: Run acceptance tests |
| 80 | + run: | |
| 81 | + ./scripts/ci-acceptance-tests.sh |
| 82 | + env: |
| 83 | + TF_ACC_PAM: 1 |
| 84 | + OKTAPAM_SECRET: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_SECRET }} |
| 85 | + OKTAPAM_KEY: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_KEY }} |
| 86 | + OKTAPAM_TEAM: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_TEAM }} |
| 87 | + OKTAPAM_TRUSTED_DOMAIN_OVERRIDE: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_TRUSTED_DOMAIN_OVERRIDE }} |
| 88 | + OKTAPAM_API_HOST: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_API_HOST }} |
| 89 | + - name: If the acceptance tests fail, retry. Intended for failed locks and dependency download timeouts. |
| 90 | + if: failure() |
| 91 | + run: | |
| 92 | + ./scripts/ci-acceptance-tests.sh |
| 93 | + env: |
| 94 | + TF_ACC_PAM: 1 |
| 95 | + OKTAPAM_SECRET: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_SECRET }} |
| 96 | + OKTAPAM_KEY: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_KEY }} |
| 97 | + OKTAPAM_TEAM: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_TEAM }} |
| 98 | + OKTAPAM_TRUSTED_DOMAIN_OVERRIDE: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_TRUSTED_DOMAIN_OVERRIDE }} |
| 99 | + OKTAPAM_API_HOST: ${{ secrets.OKTA_623529_PAM_TEAM_OKTAPAM_API_HOST }} |
| 100 | + - run: echo "🍏 This job's status is ${{ job.status }}." |
| 101 | + check5: |
64 | 102 | name: Doc Generation |
65 | 103 | runs-on: ubuntu-latest |
66 | 104 | steps: |
|
0 commit comments