1
+ parameters :
2
+ name : " "
3
+ testDropgz : " "
4
+ clusterName : " "
5
+
6
+ steps :
7
+ - bash : |
8
+ go version
9
+ go env
10
+ mkdir -p '$(GOBIN)'
11
+ mkdir -p '$(GOPATH)/pkg'
12
+ mkdir -p '$(modulePath)'
13
+ echo '##vso[task.prependpath]$(GOBIN)'
14
+ echo '##vso[task.prependpath]$(GOROOT)/bin'
15
+ name: "GoEnv"
16
+ displayName: "Set up the Go environment"
17
+ - task : AzureCLI@2
18
+ inputs :
19
+ azureSubscription : $(AZURE_TEST_AGENT_SERVICE_CONNECTION)
20
+ scriptLocation : " inlineScript"
21
+ scriptType : " bash"
22
+ addSpnToEnvironment : true
23
+ inlineScript : |
24
+ echo "Check az version"
25
+ az version
26
+ echo "Install az cli extension preview"
27
+ az extension add --name aks-preview
28
+ az extension update --name aks-preview
29
+ mkdir -p ~/.kube/
30
+ echo "Create AKS DualStack Overlay cluster"
31
+ make -C ./hack/aks azcfg AZCLI=az REGION=$(REGION_DUALSTACKOVERLAY_CLUSTER_TEST)
32
+ make -C ./hack/aks dualstack-overlay-byocni-up AZCLI=az REGION=$(REGION_DUALSTACKOVERLAY_CLUSTER_TEST) SUB=$(SUB_AZURE_NETWORK_AGENT_TEST) CLUSTER=${{ parameters.clusterName }}-$(make revision)
33
+ echo "Dualstack Overlay Cluster is successfully created"
34
+ displayName : Create DualStackOverlay cluster
35
+ condition : succeeded()
36
+
37
+ - script : |
38
+ ls -lah
39
+ pwd
40
+ echo "installing kubectl"
41
+ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
42
+ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
43
+ kubectl cluster-info
44
+ kubectl get po -owide -A
45
+ retryCountOnTaskFailure: 3
46
+ name: "installKubectl"
47
+ displayName: "Install Kubectl"
48
+
49
+ - script : |
50
+ echo "deploy ip-masq-agent for overlay"
51
+ kubectl create -f test/integration/manifests/ip-masq-agent/ip-masq-agent.yaml --validate=false
52
+ cd test/integration/manifests/ip-masq-agent/
53
+ kubectl create configmap config-custom.yaml
54
+ cd ../../../..
55
+ kubectl cluster-info
56
+ kubectl get node
57
+ CNS=$(make cns-version) DROPGZ=$(make cni-dropgz-test-version)
58
+ sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=${CNS} CNI_DROPGZ_VERSION=${DROPGZ} INSTALL_CNS=true INSTALL_DUALSTACK_OVERLAY=true TEST_DROPGZ=${{ parameters.testDropgz }}
59
+ kubectl get po -owide -A
60
+ retryCountOnTaskFailure: 3
61
+ name: "integrationTest"
62
+ displayName: "Run CNS Integration Tests on AKS DualStack Overlay"
63
+
64
+ - script : |
65
+ cd test/integration/load
66
+ echo "DualStack Overlay Linux control plane Node properties test"
67
+ sudo go test -timeout 30m -tags load -run ^TestDualStackProperties$ -tags=load
68
+ echo "DualStack Overlay Linux control plane Load test"
69
+ sudo go test -timeout 30m -tags load -run ^TestLoad$ -tags=load
70
+ echo "DualStack Overlay Linux control plane CNS validation test"
71
+ sudo go test -timeout 30m -tags load -cni dualstack -run ^TestValidateState$ -tags=load
72
+ cd ../datapath
73
+ echo "Dualstack Overlay Linux datapath IPv6 test"
74
+ sudo go test -count=1 datapath_linux_test.go -timeout 1m -tags connection -run ^TestDatapathLinux$ -tags=connection,integration -isDualStack=true
75
+ echo "Dualstack Overlay Linux datapath IPv4 test"
76
+ sudo go test -count=1 datapath_linux_test.go -timeout 1m -tags connection -run ^TestDatapathLinux$ -tags=connection,integration
77
+ name: "DualStack_Overlay_Linux_Tests"
78
+ displayName: "DualStack Overlay Linux Tests"
0 commit comments