Skip to content

Commit

Permalink
ci: Update test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jpayne3506 committed Apr 24, 2024
1 parent a255257 commit f95d7c3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .pipelines/npm/npm-conformance-tests-latest-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
scriptLocation: "inlineScript"
failOnStderr: true
inlineScript: |
# get kubectl
# get kubectl
curl -LO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl
chmod +x kubectl
echo Cluster $(AZURE_CLUSTER)
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
./kubectl --kubeconfig=./kubeconfig set image daemonset/azure-npm-win -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:windows-amd64-ltsc2022-$(TAG)
else
echo "Creating Linux Cluster";
echo "Creating Linux Cluster";
az aks create --no-ssh-key \
--resource-group $(RESOURCE_GROUP) \
--name $(AZURE_CLUSTER) \
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
declare -a conformancePIDs
for round in $(seq 1 $NUM_PARALLEL_JOBS_FOR_STRESS_TEST); do
# for each iteration, run the conformance test and echos in the background, and write the output of the conformance test to a file
# run the conformance test in the foreground and write the output to stdout and a file
if [[ $(AZURE_CLUSTER) == *ws22 ]] # * is used for pattern matching
then
Expand Down
10 changes: 5 additions & 5 deletions .pipelines/npm/npm-conformance-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- checkout: self

- bash: |
git clone https://github.com/huntergregory/kubernetes.git --depth=1 --branch=linux-sleep-before-probing
git clone https://github.com/kubernetes/kubernetes.git --depth=1
cd kubernetes
export PATH=$PATH:/usr/local/go/bin/
make WHAT=test/e2e/e2e.test
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
scriptLocation: "inlineScript"
failOnStderr: true
inlineScript: |
# get kubectl
# get kubectl
curl -LO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl
chmod +x kubectl
echo Cluster $(AZURE_CLUSTER)
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
./kubectl --kubeconfig=./kubeconfig set image daemonset/azure-npm-win -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:windows-amd64-ltsc2022-$(TAG)
else
echo "Creating Linux Cluster";
echo "Creating Linux Cluster";
az aks create --no-ssh-key \
--resource-group $(RESOURCE_GROUP) \
--name $(AZURE_CLUSTER) \
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
}
runConformanceWindows () {
git clone https://github.com/huntergregory/kubernetes.git
git clone https://github.com/kubernetes/kubernetes.git --depth=1
cd kubernetes
git checkout sleep-before-probing
export PATH=$PATH:/usr/local/go/bin/
Expand All @@ -286,7 +286,7 @@ jobs:
declare -a conformancePIDs
for round in $(seq 1 $NUM_PARALLEL_JOBS_FOR_STRESS_TEST); do
# for each iteration, run the conformance test and echos in the background, and write the output of the conformance test to a file
# run the conformance test in the foreground and write the output to stdout and a file
if [[ $(AZURE_CLUSTER) == *ws22 ]] # * is used for pattern matching
then
Expand Down
8 changes: 4 additions & 4 deletions test/capz/npm/npm-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ verify_vfp_tags_using_npm () {
echo "" > rehydration.failed
return 1
fi

echo "" > $ranFilename.ran
if [[ $hadFailure == true ]]; then
log "ERROR: VFP tags are inconsistent with HNS SetPolicies"
Expand All @@ -223,8 +223,8 @@ verify_vfp_tags_using_npm () {
# results in a file called npm-hns-state.zip
capture_npm_hns_state () {
if [[ -f npm-hns-state.zip ]]; then
log "WARNING: not capturing NPM HNS state since state was previously captured"
return 0
log "WARNING: not capturing NPM HNS state since state was previously captured"
return 0
fi

log "capturing NPM HNS state..."
Expand Down Expand Up @@ -276,7 +276,7 @@ run_npm_conformance () {
namedPorts="named port"
wrongK8sVersion="Netpol API"
toSkip="\[LinuxOnly\]|$nomatch1|$nomatch2|$nomatch3|$nomatch4|$cidrExcept1|$cidrExcept2|$namedPorts|$wrongK8sVersion|SCTP"

# to debug with one test case, uncomment this
# toRun="NetworkPolicy API should support creating NetworkPolicy API operations"

Expand Down

0 comments on commit f95d7c3

Please sign in to comment.