-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update attributes and add integration tests (#31)
* fix: update attributes and add integration tests Changed rules.names attribute within app protection custom control resource to optional. Added zpa-test.yml for daily integration test execution. * fix: update attributes and add integration tests Changed rules.names attribute within app protection custom control resource to optional. Added zpa-test.yml for daily integration test execution. * fix: update attributes and add integration tests Changed rules.names attribute within app protection custom control resource to optional. Added zpa-test.yml for daily integration test execution.
- Loading branch information
Showing
8 changed files
with
155 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
name: ZPA Test | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
merge_group: | ||
types: [checks_requested] | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 14 * * 1-5' # UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
zpa-qa1-tenants: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
environment: | ||
- ZPA_QA_TENANT01 | ||
- ZPA_QA_TENANT02 | ||
environment: ${{ matrix.environment }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Poetry | ||
uses: Gr1N/setup-poetry@v9 | ||
|
||
- name: Install Ansible | ||
run: pip install ansible | ||
|
||
- name: Install collection from Galaxy | ||
run: ansible-galaxy collection install zscaler.zpacloud | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests with retry | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 3 | ||
timeout_minutes: 30 | ||
command: poetry run ansible-playbook tests/integration/run_all_tests.yml | ||
env: | ||
ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }} | ||
ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }} | ||
ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }} | ||
ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }} | ||
OKTA_CLIENT_ORGURL: ${{ secrets.OKTA_CLIENT_ORGURL }} | ||
OKTA_CLIENT_TOKEN: ${{ secrets.OKTA_CLIENT_TOKEN }} | ||
|
||
zpa-beta-tenants: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
environment: | ||
- ZPA_BETA_TENANT01 | ||
environment: ${{ matrix.environment }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Poetry | ||
uses: Gr1N/setup-poetry@v9 | ||
|
||
- name: Install Ansible | ||
run: pip install ansible | ||
|
||
- name: Install collection from Galaxy | ||
run: ansible-galaxy collection install zscaler.zpacloud | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests with retry | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 3 | ||
timeout_minutes: 30 | ||
command: poetry run ansible-playbook tests/integration/run_all_tests.yml | ||
env: | ||
ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }} | ||
ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }} | ||
ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }} | ||
ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }} | ||
OKTA_CLIENT_ORGURL: ${{ secrets.OKTA_CLIENT_ORGURL }} | ||
OKTA_CLIENT_TOKEN: ${{ secrets.OKTA_CLIENT_TOKEN }} | ||
needs: | ||
- zpa-qa1-tenants | ||
|
||
zpa-prod-tenants: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11"] | ||
environment: | ||
- ZPA_PROD_TENANT01 | ||
environment: ${{ matrix.environment }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Poetry | ||
uses: Gr1N/setup-poetry@v9 | ||
|
||
- name: Install Ansible | ||
run: pip install ansible | ||
|
||
- name: Install collection from Galaxy | ||
run: ansible-galaxy collection install zscaler.zpacloud | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests with retry | ||
uses: nick-fields/retry@v3 | ||
with: | ||
max_attempts: 3 | ||
timeout_minutes: 30 | ||
command: poetry run ansible-playbook tests/integration/run_all_tests.yml | ||
env: | ||
ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }} | ||
ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }} | ||
ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }} | ||
ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }} | ||
OKTA_CLIENT_ORGURL: ${{ secrets.OKTA_CLIENT_ORGURL }} | ||
OKTA_CLIENT_TOKEN: ${{ secrets.OKTA_CLIENT_TOKEN }} | ||
needs: | ||
- zpa-qa1-tenants | ||
- zpa-beta-tenants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters