-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use TokenReview API to Authenticate requests (#9)
* use TokenReview API to Authenticate requests Signed-off-by: Francesco Ilario <[email protected]> * support auth in proxy Signed-off-by: Francesco Ilario <[email protected]> * tests for dumb and intelligent proxy arch Signed-off-by: Francesco Ilario <[email protected]> * move to dumb and smart Signed-off-by: Francesco Ilario <[email protected]> * make tests runnable in parallel Signed-off-by: Francesco Ilario <[email protected]> * update readmes Signed-off-by: Francesco Ilario <[email protected]> * fix tests Signed-off-by: Francesco Ilario <[email protected]> * fix linter Signed-off-by: Francesco Ilario <[email protected]> * cleanup Signed-off-by: Francesco Ilario <[email protected]> * fix typo in smart-proxy's Makefile Signed-off-by: Francesco Ilario <[email protected]> * simplify KUBECONFIG in Makefile Signed-off-by: Francesco Ilario <[email protected]> * remove TMPDIR in favor of OUT_DIR Signed-off-by: Francesco Ilario <[email protected]> * forward ginkgo context in test runs Signed-off-by: Francesco Ilario <[email protected]> * add mockgen Signed-off-by: Francesco Ilario <[email protected]> * add tests for authenticator Signed-off-by: Francesco Ilario <[email protected]> * fix Makefile Signed-off-by: Francesco Ilario <[email protected]> * no lint on ginkgo context Signed-off-by: Francesco Ilario <[email protected]> * remove sleep Signed-off-by: Francesco Ilario <[email protected]> * Update acceptance/make/common.mk Co-authored-by: Andy Sadler <[email protected]> --------- Signed-off-by: Francesco Ilario <[email protected]> Co-authored-by: Andy Sadler <[email protected]>
- Loading branch information
Showing
67 changed files
with
1,551 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Acceptance Tests | ||
|
||
Behavior-Driven Development is enforced through [godog](https://github.com/cucumber/godog). | ||
|
||
These tests has builtin support to run on [kind](https://kind.sigs.k8s.io/). | ||
|
||
## Setups | ||
|
||
The Namespace-Lister is usually installed behind a Proxy. | ||
The Namespace-Lister can be configured to delegate authentication to the Proxy. | ||
In this case we speak of a `Smart Proxy`. | ||
|
||
Alternatively, the request is authenticate against the APIServer's TokenReview API. | ||
In this case we speak of a `Dumb Proxy`. | ||
|
||
We support test cases for both these setups. | ||
You find the `Smart Proxy`'s tests at [./test/smart-proxy/] and the `Dumb Proxy`'s tests at [./test/dumb-proxy/]. | ||
|
||
To create the cluster, install the Namespace-Lister, and configure the Proxy you can use the `make prepare` command. | ||
|
||
To execute the tests, you can use the `make test` command. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ apiVersion: v1 | |
kind: Namespace | ||
metadata: | ||
name: acceptance-tests | ||
labels: | ||
namespace-lister/scope: acceptance-tests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.