Fixing up the k8s infrastucture tests
MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -209,7 +209,7 @@ jobs:
- uses: actions/checkout@v2
- name: Create test infra
run: |
- make setup_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}"
+ make setup_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}"
test-infra-destroy:
needs: kubernetes
strategy:
@@ -276,7 +276,7 @@ jobs:
- uses: actions/checkout@v2
- name: Destroy test infra
run: |
- make destroy_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}"
+ make destroy_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}"
kubernetes:
needs: test-infra-setup
strategy:

MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -12,5 +12,8 @@ jobs:
- name: Comment PR
uses: thollander/actions-comment-pull-request@master
with:
- message: 'Thank you for opening a PR! Please stand-by for one of the project maintainers to run the tests'
+ message: |
+ PR is now waiting for a maintainer to run the acceptance tests.
+
+ **Note for the maintainer:** To run the acceptance tests, please comment */run-example-tests* on the PR
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -207,7 +207,7 @@ jobs:
- uses: actions/checkout@v2
- name: Create test infra
run: |
- make setup_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}"
+ make setup_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}"
test-infra-destroy:
needs: kubernetes
strategy:
@@ -274,7 +274,7 @@ jobs:
- uses: actions/checkout@v2
- name: Destroy test infra
run: |
- make destroy_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}"
+ make destroy_test_infra StackName="${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}"
kubernetes:
needs: test-infra-setup
strategy:

MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -819,8 +819,8 @@ func TestAccAzurePyWebserver(t *testing.T) {
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "azure-py-webserver"),
Config: map[string]string{
- "azure-web:username": "testuser",
- "azure-web:password": "testTEST1234+-*/",
+ "username": "testuser",
+ "password": "testTEST1234+-*/",
},
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPHelloWorld(t, stack.Outputs["public_ip"], nil)

Fixing up the k8s infrastucture tests