Commit Graph

14 Commits (main)

Author SHA1 Message Date
Qiming Teng 5a2f3ff8cb Update test cases for examples
This PR updates the Go module dependency and revise the test case
for checking example manifests. This check ensures that all manifests
we use as examples are still valid under v1.32.
2024-12-22 09:45:10 +08:00
Qiming Teng 14f2970929 Fix examples test for v1.31
This PR updates the test case for manifest examples.
The test case is there to ensure all example manifests can pass the
API validation for v1.31.
2024-08-27 20:47:01 +08:00
Qiming Teng 0d715bd5fe Update go mod dependency for working with 1.30 release 2024-05-09 11:01:54 +08:00
Qiming Teng 101135ed3d Update go mod for examples test (1.29) 2023-12-25 15:30:06 +08:00
Qiming Teng 60bf42a527 Update test cases for v1.28
This PR makes sure the manifests under `content/en/examples`
are valid in v1.28. The primary fixes are:

- Updated the go.mod/go.sum file for testing against v1.28.0 release.
- Revise test case code to ensure newly added manifests are tested;
- Adapt Pod validation options to upstream validation code change;
- Move a ValidatingWebhookConfiguration YAML back to inline because
  the manifest cannot validate against the validator. The CA bundle
  referenced is not a valid string (base64 encoded). That means the
  YAML cannot be used/tested as is by users.
2023-08-18 09:03:30 +08:00
Qiming Teng ad7c0712c6 Fix examples test for 1.27
- Some examples are actually not good "examples", i.e. they are not
  not ready for the users to try out.
- Some examples are failing the validation in their current format.
- Some examples skipped the test case.

These issues are fixed.
2023-04-16 17:26:12 +08:00
Qiming Teng ae113139b8 Update go mod for testing against 1.26 validators 2022-12-17 09:36:13 +08:00
Qiming Teng 6730a5387f Fix examples test
This PR fixes the examples test so that all YAML manifests under
examples directory are assured to be working under 1.25.

The content/js/examples/examples_test.go is out-dated and it is blocking
the `go mod tidy` run unfortunately. So this PR removes it.
2022-09-15 19:35:40 +08:00
Qiming Teng 04ecc8c663 Update go module for examples test 2021-12-15 12:49:16 +08:00
Qiming Teng f805b98659 Update go.mod for 1.22 2021-08-09 22:15:28 +08:00
Qiming Teng 584097ebfa Adapt examples test for latest change 2021-06-18 09:23:39 +08:00
Qiming Teng 126e636fb5 Fix test cases for examples
This PR updates the test case to use for v1.21
2021-06-14 13:01:34 +08:00
Qiming Teng 06228c06a9 Fix examples tests
This PR updates the go.mod file so that tests of the example manifests
are run against the 1.20 branch. The missing test cases for newly added
examples are also added. To perform tests on your local machine, run the
following command on the root of your local clone:

```
go test k8s.io/website/content/en/examples
```
2021-01-16 14:09:28 +08:00
Qiming Teng faa5a441fd Fix example tests for English site 2020-06-24 19:10:14 +08:00