-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: runs e2e test on 3 aks versions (#503)
* feat: runs e2e test with 3 aks versions * fix: updates shell script * fix: corrects filename * test: file path * test: file path via system variable * test: system var * fix: argument * test: debug * test: upgrade loop * fix: pipeline syntax * fix: piepline syntax * test: upgrade * fix: az pipeline * test: az pipeline * fix: template * fix: test template * fix: Job name * fix: removes condition * fix: runs az login * fix: removes version template * fix: removes commented code and debug * fix: sets ver to latest for non cluster upgrade run * fix: updates timeout to 90m * chore: removes cluster upgrade test from azure job Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com> * chore: removes white space * fix: updates query to get latest non-preview ver * fix: updates query * fix: updates upgrade logic * fix: updates cluster and rg name * chore: creates e2e test template * fix: updates template param usage * fix: sets helm chart dir if passed in param * fix: updates helm chart dir * fix: removes helm chart dir param * fix: removes helm chart dir env var * test: helm char dir * fix: bool condition * test: debug * fix: updates template path * fix: bool check * fix: test bool * fix: condition * fix: updates test run params * fix: removes cluster upgrade flag * test: whole pipeline * chore: typo * chore: updates job name * chore: typo * fix: sets localtion var
- Loading branch information
Showing
4 changed files
with
122 additions
and
66 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
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,53 @@ | ||
parameters: | ||
- name: testName | ||
type: string | ||
- name: osType | ||
type: string | ||
- name: testReleasedVersion | ||
type: boolean | ||
default: false | ||
- name: resetImageVersion | ||
type: boolean | ||
default: false | ||
- name: testClusterUpgrade | ||
type: boolean | ||
default: false | ||
- name: isBackwardCompatibilityTest | ||
type: boolean | ||
default: false | ||
- name: setRegistry | ||
type: boolean | ||
default: false | ||
|
||
steps: | ||
- script: | | ||
if [ "${{ parameters.setRegistry }}" == True ] ; then | ||
export REGISTRY="${REGISTRY:-$(REGISTRY_NAME).azurecr.io/k8s/csi/secrets-store}" | ||
fi | ||
if [ "${{ parameters.testReleasedVersion }}" == True ] ; then | ||
#This gets latest released chart(tgz) version from charts directory | ||
export HELM_CHART_DIR=$(ls -h charts/*.tgz | sort --version-sort --field-separator=- --key=6 | tail -n 1) | ||
else | ||
export HELM_CHART_DIR=manifest_staging/charts/csi-secrets-store-provider-azure | ||
fi | ||
make e2e-test | ||
displayName: "${{ parameters.testName }}" | ||
env: | ||
AZURE_CLIENT_ID: $(AZURE_CLIENT_ID) | ||
AZURE_CLIENT_SECRET: $(AZURE_CLIENT_SECRET) | ||
KEY_NAME: $(KEY_NAME) | ||
KEY_VERSION: $(KEY_VERSION) | ||
KEYVAULT_NAME: $(KEYVAULT_NAME) | ||
RESOURCE_GROUP: $(RESOURCE_GROUP) | ||
SECRET_NAME: $(SECRET_NAME) | ||
SUBSCRIPTION_ID: $(SUBSCRIPTION_ID) | ||
TENANT_ID: $(TENANT_ID) | ||
IS_UPGRADE_TEST: ${{ parameters.testClusterUpgrade }} | ||
${{ if parameters.resetImageVersion }}: | ||
CONFIG_IMAGE_VERSION: "" | ||
${{ if parameters.isBackwardCompatibilityTest }}: | ||
IS_BACKWARD_COMPATIBILITY_TEST: ${{ parameters.isBackwardCompatibilityTest }} | ||
${{ if eq(parameters.osType, 'windows') }}: | ||
TEST_WINDOWS: true |