cozystack/hack/e2e-apps
Andrei Kvapil 21715c02bc
The Cozystack Kubernetes tests are now POSIX-compatible (#1509)
This patch replaces bash-specific [[ ... ]] expressions in the
run_kubernetes_test function with POSIX-compliant case and test
constructs. It ensures that the Kubernetes version on each worker node
is verified correctly and that required components (CoreDNS, Cilium,
ingress-nginx, vsnap-crd) are ready before proceeding. Now the tests
work reliably even when executed with /bin/sh, such as in Bats.

```release-note
[tests] Make Kubernetes tests POSIX-compliant and more reliable:
verify worker node versions and ensure required releases (CoreDNS,
Cilium, ingress-nginx, vsnap-crd) are installed and ready.
```

<!-- Thank you for making a contribution! Here are some tips for you:
- Start the PR title with the [label] of Cozystack component:
- For system components: [platform], [system], [linstor], [cilium],
[kube-ovn], [dashboard], [cluster-api], etc.
- For managed apps: [apps], [tenant], [kubernetes], [postgres],
[virtual-machine] etc.
- For development and maintenance: [tests], [ci], [docs], [maintenance].
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Add the label `backport` if it's a bugfix that needs to be backported
to a previous version.
-->

## What this PR does


### Release note

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same [label] as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
[]
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved Kubernetes version detection to correctly handle 1.32
variants.
* Made node readiness checks more reliable to reduce false failures
during runs.

* **Refactor**
* Streamlined version matching logic for clearer, more predictable
behavior across releases.

* **Style**
  * Minor formatting cleanups with no functional impact.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-10-13 15:02:18 +02:00
..
bucket.bats [seaweed] add tests 2025-07-28 16:18:07 +03:00
clickhouse.bats clickhouse add chk 2025-08-04 18:22:43 +03:00
kafka.bats [e2e] Add retries 2025-06-30 11:54:31 +02:00
kubernetes-latest.bats [ci] Refactor testing logic 2025-07-23 14:00:24 +03:00
kubernetes-previous.bats [ci] Refactor testing logic 2025-07-23 14:00:24 +03:00
mysql.bats [e2e] Add retries 2025-06-30 11:54:31 +02:00
postgres.bats [e2e] Add retries 2025-06-30 11:54:31 +02:00
redis.bats [e2e] Add retries 2025-06-30 11:54:31 +02:00
run-kubernetes.sh The Cozystack Kubernetes tests are now POSIX-compatible (#1509) 2025-10-13 15:02:18 +02:00
virtualmachine.bats [test] fix vm tests 2025-08-06 17:05:13 +03:00
vminstance.bats add resource quota for testing ns 2025-09-09 17:42:52 +03:00