-
Notifications
You must be signed in to change notification settings - Fork 187
/
e2e-test.yaml
78 lines (77 loc) · 2.61 KB
/
e2e-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
parameters:
- name: testName
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
- name: testWithGPU
type: boolean
default: false
- name: ciKindCluster
type: boolean
default: false
- name: isArcTest
type: boolean
default: false
- name: osType
type: string
default: ""
steps:
- script: |
# set AZURE_ENVIRONMENT_FILEPATH
if [[ ! -z "$(AZURE_ENVIRONMENT_FILEPATH)" ]]; then
export AZURE_ENVIRONMENT_FILEPATH=$(AZURE_ENVIRONMENT_FILEPATH)
fi
# Set TEST_WiNDOWS=true to run the test on Windows
if [ "${{ parameters.osType }}" == "windows" ] ; then
export TEST_WINDOWS=true
fi
# Set TEST_GPU=true to run the test on GPU nodepool
if [[ ${{ parameters.testWithGPU }} == True ]]; then
export TEST_GPU=true
fi
if [ "${{ parameters.setRegistry }}" == True ] ; then
export REGISTRY="${REGISTRY:-$(REGISTRY_NAME).azurecr.io/k8s/csi/secrets-store}"
fi
if [ "${{ parameters.testReleasedVersion }}" == True ] ; then
export HELM_CHART_DIR=charts/csi-secrets-store-provider-azure
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 parameters.ciKindCluster }}:
CI_KIND_CLUSTER: ${{ parameters.ciKindCluster }}
${{ if parameters.isArcTest }}:
IS_ARC_TEST: ${{ parameters.isArcTest }}
# If the image is a released versions (i.e <= v1.3), it still doesn't support the
# split cert/key feature, so we need to skip tests for those versions.
${{ if parameters.testReleasedVersion }}:
GINKGO_SKIP: WriteCertAndKeyInSeparateFiles