Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .circleci/config.yml

This file was deleted.

37 changes: 22 additions & 15 deletions .pipelines/npm/npm-conformance-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- agent.os -equals Linux
- Role -equals Build
container:
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
image: "$(BUILD_IMAGE)"
steps:

- checkout: self
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- agent.os -equals Linux
- Role -equals Build
container:
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
image: "$(BUILD_IMAGE)"
dependsOn: [setup]
variables:
GOBIN: "$(GOPATH)/bin" # Go binaries path
Expand All @@ -64,15 +64,28 @@ jobs:

- checkout: self

- task: Docker@2
displayName: Docker Login
inputs:
containerRegistry: $(ACR_SERVICE_CONNECTION)
command: 'login'
addPipelineData: false

- script: |
go env
echo Tag: $(TAG)
echo ResourceGroup: $(RESOURCE_GROUP)
VERSION=$(TAG) make azure-npm-image
echo '$(DOCKER_PASSWORD)' | docker login $IMAGE_REGISTRY -u '$(DOCKER_USERNAME)' --password-stdin
docker push $IMAGE_REGISTRY/azure-npm:$(TAG)
displayName: 'Build and Push NPM Image'

- task: Docker@2
displayName: Docker Logout
inputs:
containerRegistry: $(ACR_SERVICE_CONNECTION)
command: 'logout'
addPipelineData: false

- script: git clone https://github.com/vakalapa/kubernetes.git
displayName: 'Clone Kubernetes Repo'
- bash: |
Expand All @@ -92,7 +105,7 @@ jobs:
- agent.os -equals Linux
- Role -equals Build
container:
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
image: "$(BUILD_IMAGE)"
dependsOn: [setup]
variables:
RESOURCE_GROUP: $[ dependencies.setup.outputs['EnvironmentalVariables.RESOURCE_GROUP'] ]
Expand All @@ -107,7 +120,7 @@ jobs:
- task: AzureCLI@2
displayName: "Deploy"
inputs:
azureSubscription: $(BUILD_VALIDATIONS_SUBSCRIPTION)
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
Expand All @@ -128,7 +141,7 @@ jobs:
- agent.os -equals Linux
- Role -equals Build
container:
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
image: "$(BUILD_IMAGE)"
dependsOn: [Create_cluster, Build_test, setup]
variables:
RESOURCE_GROUP: $[ dependencies.setup.outputs['EnvironmentalVariables.RESOURCE_GROUP'] ]
Expand All @@ -140,7 +153,7 @@ jobs:
- task: AzureCLI@2
displayName: "Deploy NPM to Test Cluster"
inputs:
azureSubscription: $(BUILD_VALIDATIONS_SUBSCRIPTION)
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
Expand All @@ -164,19 +177,13 @@ jobs:
echo "##vso[task.setvariable variable=FQDN]$FQDN"

- bash: |
ls -la
ls
ls -la $(Pipeline.Workspace)
ls -la $(Pipeline.Workspace)/Test
echo $FQDN
ls ~
chmod +x $(Pipeline.Workspace)/Test/e2e.test
KUBERNETES_SERVICE_HOST="$FQDN" KUBERNETES_SERVICE_PORT=443 $(Pipeline.Workspace)/Test/e2e.test --provider=local --ginkgo.focus="NetworkPolicy" --ginkgo.skip="SCTP" --kubeconfig=./kubeconfig
displayName: "Run Test Suite"
- bash: |
curl -LO https://dl.k8s.io/release/v1.20.0/bin/linux/amd64/kubectl
chmod +x kubectl
ls -al
npmPodList=`kubectl get pods -n kube-system | grep npm | awk '{print $1}'`
mkdir -p $(System.DefaultWorkingDirectory)/npmLogs
for npm in $npmPodList; do ./kubectl logs -n kube-system $npm --kubeconfig=./kubeconfig > $(System.DefaultWorkingDirectory)/npmLogs/$npm ;done
Expand All @@ -195,7 +202,7 @@ jobs:
- agent.os -equals Linux
- Role -equals Build
container:
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
image: "$(BUILD_IMAGE)"
condition: always()
dependsOn: [Run_test, setup]
variables:
Expand All @@ -206,7 +213,7 @@ jobs:
- task: AzureCLI@2
displayName: "Delete Test Cluster Resource Group"
inputs:
azureSubscription: $(BUILD_VALIDATIONS_SUBSCRIPTION)
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
Expand Down
Loading