Skip to content

Commit a353fec

Browse files
committed
Added integration tests to test all mandatory parameters on the GetItems function
1 parent b2b140e commit a353fec

File tree

9 files changed

+455
-103
lines changed

9 files changed

+455
-103
lines changed

.github/workflows/build_and_run_unit_tests.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/deploy.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,16 @@ echo $ENVIRONMENT_CREATE_OUTPUT
6565
PROVISIONING_STATE=$(echo $ENVIRONMENT_CREATE_OUTPUT | jq --raw-output '.provisioningState')
6666
echo "Provisioning State: $PROVISIONING_STATE"
6767

68+
if [ "$PROVISIONING_STATE" != "Succeeded" ]; then
69+
echo "::error Error provisioning lab environment"
70+
exit 1
71+
fi
72+
6873
ENVIRONMENT_INSTANCE_RESOURCE_GROUP_NAME=$(echo $ENVIRONMENT_CREATE_OUTPUT | jq --raw-output '.resourceGroupId' | xargs basename)
6974
echo "Resource Group Id: $ENVIRONMENT_INSTANCE_RESOURCE_GROUP_NAME"
7075

7176
echo "::set-output name=ENVIRONMENT_INSTANCE_RESOURCE_GROUP_NAME::$ENVIRONMENT_INSTANCE_RESOURCE_GROUP_NAME"
7277

73-
if [ $PROVISIONING_STATE != "Succeeded" ]; then
74-
echo "::error Error provisioning lab environment"
75-
exit 1
76-
fi
7778

7879
DEPLOYMENTOUTPUT=$(az deployment group list --resource-group $ENVIRONMENT_INSTANCE_RESOURCE_GROUP_NAME --query '[0].properties.outputs')
7980

.github/workflows/test_azure_devtest_labs_integration.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
99
branches:
10-
- feature/azure-devtest-labs-arm-CICD
11-
#pull_request:
12-
# branches: [ main ]
13-
10+
- main
11+
- feature/*
12+
pull_request:
13+
branches:
14+
- main
1415
# Allows you to run this workflow manually from the Actions tab
1516
workflow_dispatch:
1617

0 commit comments

Comments
 (0)