Files
rancher/.gitignore
Eric Promislow 632e1c176e Fix integration tests vai: round04: ignore insignificant differences in the saved JSON files (#50878)
* Save a baseline of zero-timed JSON files

* Stop ignoring the JSON artifacts.

* Ignore the random namespace tag in diffs.

* For lists that sort by name but not namespace, save the data secondarily-sorted by namespace.

The problem with not sorting the data is that it gets returned in random order according to
namespace (within a name) when using VAI. This causes false diffs in the saved output.
So we modify the returned objects by sorting them secondarily by namespace, and don't
have false git diffs after a run of tests.

* Verify data is minimally sorted when sorting only by name.

Since we're using the JSON-rendered objects as a sanity check that
the backend is returning the correct output, we need to do a separate
check when we're sorting by name but not namespace.  The call to
`slices.IsSorted` does that.

Note that `slices.IsSortedFunc` and `slices.SortedStableFunc` want
two different kinds of initial arguments for the `~[]E` argument --
couldn't figure out what to give them in common.

* Remove commented-out obsolete code.
2025-07-02 12:12:20 -07:00

43 lines
671 B
Plaintext

vendor
/.dapper
/bin
/dist
/build
*.swp
/.idea
/cmd/agent/agent
/package/data.json
/package/k3s-airgap-images.tar
/package/rancher
/package/rancher-namespace.yaml
/package/rancher.yaml
/package/agent
/tests/MANIFEST
/tests/integration/MANIFEST
tests/integration/MANIFEST
tests/integration/.idea/
/tests/.cache
/tests/.tox
/tests/integration/.tox/
/tests/.venv
/tests/.idea
/default.etcd
*.pyc
__pycache__
/management-state
/rancher
*.pytest_cache
.kube/
.vscode/
.DS_Store
tests/validation/.idea
all.yaml
kustomization.yaml
kontainer-engine
k3s-images.txt
k3s-airgap-images.tar
data.json
informer_object_cache.db
informer_object_cache.db-shm
informer_object_cache.db-wal