Skip to content

Commit

Permalink
corrected naming, e2e workflow, and dependency if condition (#1082)
Browse files Browse the repository at this point in the history
 corrected naming, e2e workflow, and dependency if condition, removed skips from e2e

Co-authored-by: Arthur Morrow <[email protected]>
Co-authored-by: James Brooks <[email protected]>
  • Loading branch information
amorrow-flexion and jamesobrooks authored Dec 26, 2024
1 parent 88bc8b0 commit 821ac89
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
unit-test-backend,
unit-test-common,
]
if:
if: |
((github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/dependency-updates-auto') ||
(inputs.deployBranch == 'true'))
with:
Expand All @@ -135,7 +135,7 @@ jobs:
stackName: ${{ needs.setup.outputs.stackName }}
apiFunctionName: ${{ needs.setup.outputs.apiFunctionName }}
migrationFunctionName: ${{ needs.setup.outputs.migrationFunctionName }}
webAppName: ${{ needs.setup.outputs.webappName }}
webappName: ${{ needs.setup.outputs.webappName }}
environmentHash: ${{ needs.setup.outputs.environmentHash }}
deployVnet: ${{ needs.setup.outputs.deployVnet }}
slotName: ${{ needs.setup.outputs.slotName }}
Expand All @@ -153,7 +153,7 @@ jobs:
stackName: ${{ needs.setup.outputs.stackName }}
apiFunctionName: ${{ needs.setup.outputs.apiFunctionName }}
migrationFunctionName: ${{ needs.setup.outputs.migrationFunctionName }}
webAppName: ${{ needs.setup.outputs.webappName }}
webappName: ${{ needs.setup.outputs.webappName }}
environmentHash: ${{ needs.setup.outputs.environmentHash }}
slotName: ${{ needs.setup.outputs.slotName }}
e2eCosmosDbExists: ${{ needs.deploy.outputs.e2eCosmosDbExists }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ jobs:
with:
environment: ${{ endsWith(github.ref,'refs/heads/main') && 'Main-Gov' || 'Develop' }}
enableBicepDeployment: "true"
deployVnet: "false"

execute-e2e-test:
needs: [setup]
uses: ./.github/workflows/reusable-e2e.yml
with:
apiName: ${{ needs.setup.outputs.apiFunctionName }}
apiFunctionName: ${{ needs.setup.outputs.apiFunctionName }}
slotName: ${{ needs.setup.outputs.slotName }}
webappName: ${{ needs.setup.outputs.webappName }}
stackName: ${{ needs.setup.outputs.stackName }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-backend-slot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Azure Deployment - Backend Slot Creation
on:
workflow_call:
inputs:
webAppName:
webappName:
required: true
type: string
apiFunctionName:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sub-deploy-code-slot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,12 @@ jobs:
az functionapp stop -g ${{ steps.rgApp.outputs.out }} --name ${{ inputs.migrationFunctionName }} --slot ${{ inputs.slotName }}
endpoint-test-application-post-swap:
needs: [swap-nodeapi-deployment-slot, swap-webapp-deployment-slot]
needs:
[
swap-nodeapi-deployment-slot,
swap-webapp-deployment-slot,
swap-migration-app-deployment-slot,
]
uses: ./.github/workflows/reusable-endpoint-test.yml
with:
stackName: ${{ inputs.stackName }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sub-deploy-slot-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Azure Deployment - Backend Slot Creation
on:
workflow_call:
inputs:
webAppName:
webappName:
required: true
type: string
apiFunctionName:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
deploy-frontend-slot-resources:
uses: ./.github/workflows/reusable-frontend-slot.yml
with:
webAppName: ${{ inputs.webAppName }}
webappName: ${{ inputs.webappName }}
apiFunctionName: ${{ inputs.apiFunctionName }}
ghaEnvironment: ${{ inputs.ghaEnvironment }}
azResourceGrpAppEncrypted: ${{ inputs.azResourceGrpAppEncrypted }}
Expand All @@ -42,7 +42,7 @@ jobs:
deploy-backend-slot-resources:
uses: ./.github/workflows/reusable-backend-slot.yml
with:
webAppName: ${{ inputs.webAppName }}
webappName: ${{ inputs.webappName }}
apiFunctionName: ${{ inputs.apiFunctionName }}
migrationFunctionName: ${{ inputs.migrationFunctionName }}
ghaEnvironment: ${{ inputs.ghaEnvironment }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
migrationFunctionName:
required: true
type: string
webAppName:
webappName:
required: true
type: string
environmentHash:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
needs: [deploy-infra]
if: ((github.ref == 'refs/heads/main') || (inputs.deployBranch == 'true'))
with:
webAppName: ${{ inputs.webappName }}
webappName: ${{ inputs.webappName }}
apiFunctionName: ${{ inputs.apiFunctionName }}
migrationFunctionName: ${{ inputs.migrationFunctionName }}
ghaEnvironment: ${{ inputs.ghaEnvironment }}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/playwright/consolidation-orders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe('Consolidation Orders', () => {
await logout(page);
});

test.skip('should select correct consolidationType radio when approving a consolidation', async ({
test('should select correct consolidationType radio when approving a consolidation', async ({
page,
}) => {
// get pending consolidation order id
Expand Down Expand Up @@ -97,7 +97,7 @@ test.describe('Consolidation Orders', () => {
);
});

test.skip('should open case-not-listed form, fill form and click validate button', async ({
test('should open case-not-listed form, fill form and click validate button', async ({
page,
}) => {
// get pending consolidation order id
Expand Down

0 comments on commit 821ac89

Please sign in to comment.