Skip to content

Commit

Permalink
update readme and token scenario as per the review
Browse files Browse the repository at this point in the history
Signed-off-by: Saad Khan <[email protected]>
  • Loading branch information
khansaad committed Nov 25, 2024
1 parent 2525a6b commit f484a5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion tests/scripts/local_monitoring_tests/Local_monitoring_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,19 @@ Note: The test will fail if it's run as is if there are no matching workloads th

### Authentication Test:

Kruize 0.1.1 supports the authentication which provides the user an option to pass authentication details in the yaml for the service they are using.
Kruize 0.2 supports the authentication which provides the user an option to pass authentication details in the yaml for the service they are using.

The authentication test is part of functional bucket and has a separate script similar to local_monitoring tests. It contains various valid and invalid scenarios for testing.

It can be run as shown in the example below:

`/test_autotune.sh -c <cluster-type> -i <image-name> -r benchmarks/ --testsuite=authentication_tests`

#### Scenarios
**_valid_**: a valid path to the token

**_expired_**: an expired token value

**_invalid_**: an invalid path to the token

**_empty_**: a blank input in place of the token file path
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ declare -A tokens
tokens=(
["valid"]="/var/run/secrets/kubernetes.io/serviceaccount/token"
["expired"]="EXPIRED_TOKEN"
["invalid"]="random-invalid-token-string"
["invalid"]="/var/run/secrets/kubernetes.io/serviceaccount/token2"
["empty"]=""
)
# Tests to validate authentication types in Kruize
Expand Down

0 comments on commit f484a5a

Please sign in to comment.