Skip to content

Commit 069c13a

Browse files
committed
Update longevity test
1 parent 767a985 commit 069c13a

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

tests/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ sync-files-to-vm: ## Syncs your local NGF files with the NGF repo on the VM
105105
./scripts/sync-files-to-vm.sh
106106

107107

108+
# This is to access $(GKE_PROJECT)
108109
include scripts/vars.env
109110
export
110111

111112
.PHONY: nfr-test
112-
nfr-test: check-for-plus-usage-endpoint ## Run the NFR tests on a GCP VM
113113
nfr-test: GOARCH=amd64
114-
nfr-test: build-crossplane-image
115-
docker tag nginx-crossplane:latest $(PREFIX)/nginx-crossplane:latest
116-
docker push $(PREFIX)/nginx-crossplane:latest
114+
nfr-test: check-for-plus-usage-endpoint build-crossplane-image ## Run the NFR tests on a GCP VM
115+
docker tag nginx-crossplane:latest gcr.io/$(GKE_PROJECT)/nginx-crossplane:latest
116+
docker push gcr.io/$(GKE_PROJECT)/nginx-crossplane:latest
117117
CI=$(CI) ./scripts/run-tests-gcp-vm.sh
118118

119119
.PHONY: start-longevity-test

tests/suite/reconfig_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ var _ = Describe("Reconfiguration Performance Testing", Ordered, Label("nfr", "r
427427
results.TimeToReadyTotal = timeToReadyTotal
428428
results.TestDescription = testDescription
429429
results.TimeToReadyDescription = timeToReadyDescription
430-
fmt.Println(timeToReadyTotal)
431430

432431
err = writeReconfigResults(outFile, results)
433432
Expect(err).ToNot(HaveOccurred())

tests/suite/scripts/longevity-wrk.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env bash
22

3-
SVC_IP=$(kubectl -n nginx-gateway get svc ngf-longevity-nginx-gateway-fabric -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
3+
while true; do
4+
SVC_IP=$(kubectl -n longevity get svc gateway-nginx -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
5+
if [[ -n $SVC_IP ]]; then
6+
echo "Service IP assigned: $SVC_IP"
7+
break
8+
fi
9+
10+
echo "Still waiting for nginx Service IP..."
11+
sleep 5
12+
done
413

514
echo "${SVC_IP} cafe.example.com" | sudo tee -a /etc/hosts
615

0 commit comments

Comments
 (0)