Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve authentication tests #1386

Open
khansaad opened this issue Nov 25, 2024 · 0 comments
Open

Improve authentication tests #1386

khansaad opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@khansaad
Copy link
Contributor

Describe the feature

Bearer authentication tests have been added as part of PR #1307 . Need to improve that by :

  • invoking some code that makes use of the token along with checking the pod log
  • need to check how to simulate expired token as currently it's same as invalid token

Examples or references

These are the current test scenarios mentioned in the script which needs improvement :
tokens=(
["valid"]="/var/run/secrets/kubernetes.io/serviceaccount/token"
["expired"]="EXPIRED_TOKEN"
["invalid"]="/var/run/secrets/kubernetes.io/serviceaccount/token2"
["empty"]=""
)

Suggest a solution

TBU

Any suggestions on how to solve this

Additional Context

Any additional context about the feature

@khansaad khansaad added the enhancement New feature or request label Nov 25, 2024
@khansaad khansaad added this to the Release agnostic milestone Nov 25, 2024
@khansaad khansaad self-assigned this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant