Skip to content

Commit 6f0d764

Browse files
committed
fix: test fixes for fastpaths modules
- getting-started/finish.md: skip kubectl --watch in automated tests (test=false) - developer/ebs: add kubectl wait before exec to handle Auto Mode node provisioning delay - developer/ingress: fix test hook looking for wrong ingress name (ui -> ui-auto)
1 parent 0047f8f commit 6f0d764

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

website/docs/fastpaths/developer/ebs/deployment-with-ebs.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,13 @@ The volume uses gp3 storage with encryption enabled.
143143

144144
## Test data persistence
145145

146-
Let's verify that data persists across pod restarts. Create a test file in the MySQL data directory:
146+
Let's verify that data persists across pod restarts. First, wait for the pod to be ready:
147+
148+
```bash timeout=240
149+
$ kubectl wait --for=condition=Ready -n catalog pod/catalog-mysql-0 --timeout=180s
150+
```
151+
152+
Create a test file in the MySQL data directory:
147153

148154
```bash
149155
$ kubectl exec -n catalog catalog-mysql-0 -- bash -c "echo 123 > /var/lib/mysql/test.txt"

website/docs/fastpaths/developer/ingress/tests/hook-add-ingress.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ before() {
77
after() {
88
sleep 20
99

10-
export ui_endpoint=$(kubectl get ingress -n ui ui -o json | jq -r '.status.loadBalancer.ingress[0].hostname')
10+
export ui_endpoint=$(kubectl get ingress -n ui ui-auto -o json | jq -r '.status.loadBalancer.ingress[0].hostname')
1111

1212
if [ -z "$ui_endpoint" ]; then
1313
>&2 echo "Failed to retrieve hostname from Ingress"

website/docs/fastpaths/getting-started/finish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ As you deploy additional workloads, EKS Auto Mode will automatically provision a
2828

2929
Watch as EKS Auto Mode provisions a node for your workload. You'll see EKS Auto Mode provision a second node in the general-purpose node pool for our applications. It will also consolidate the system node as there is capacity to move the pods around.
3030

31-
```bash timeout=180
31+
```bash timeout=180 test=false
3232
$ kubectl get nodes --watch
3333
...
3434
NAME STATUS ROLES AGE VERSION

0 commit comments

Comments
 (0)