mirror of
https://github.com/rancher/steve.git
synced 2025-05-10 00:47:07 +00:00
* adding NonResourceURLs support to access_store * added tests to AccessSet NonResourceURLs handling * change on test script suggested by @tomleb + go mod tidy * added nonresource to ext api authorization * added NonResourceURLs implementation in Authorizes + test * removed non-resource-url tests from the main test * added new tests for non-resource-urls * removed unused test data * changed nonResourceKey to point to struct{} * addressed comments from @tomleb * addressed more comments * fixing typo * check for empty accessSet
14 lines
404 B
Bash
14 lines
404 B
Bash
#!/bin/bash
|
|
|
|
if ! command -v setup-envtest; then
|
|
echo "setup-envtest is required for tests, but was not installed"
|
|
echo "see the 'Running Tests' section of the readme for install instructions"
|
|
exit 127
|
|
fi
|
|
|
|
minor=$(go mod graph | grep ' k8s.io/client-go@' | head -n1 | cut -d@ -f2 | cut -d '.' -f 2)
|
|
version="1.$minor.x"
|
|
|
|
export KUBEBUILDER_ASSETS=$(setup-envtest use -p path "$version")
|
|
go test ./...
|