-
Notifications
You must be signed in to change notification settings - Fork 9
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
[WIP] add test for Raw kserve auth #91
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Milind Waykole <mwaykole@mwaykole-thinkpadp1gen4i.bengluru.csb>
The following are automatically added/executed:
Available user actions:
Supported labels{'/wip', '/verified', '/hold', '/lgtm'} |
Signed-off-by: Milind Waykole <mwaykole@mwaykole-thinkpadp1gen4i.bengluru.csb>
fd9b77f
to
906b6ec
Compare
for more information, see https://pre-commit.ci
return run_command( | ||
command=shlex.split(f"oc create token -n {model_service_account.namespace} {model_service_account.name}") | ||
)[1].strip() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please create a function and re-use in all places
"model_namespace, s3_models_storage_uri", | ||
[ | ||
pytest.param( | ||
{"name": "kserve-token-authentication"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{"name": "kserve-token-authentication"}, | |
{"name": "kserve-raw-token-authentication"}, |
], | ||
indirect=True, | ||
) | ||
class TestKserveTokenAuthenticationRaw: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's split to rest and grpc; then test cross-domain with one protocol. this way we can re-use existing fixtures and not add new ones.
@@ -90,7 +91,7 @@ def create_isvc( | |||
if deployment_mode == KServeDeploymentType.SERVERLESS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if deployment_mode == KServeDeploymentType.SERVERLESS: | |
if deployment_mode in (KServeDeploymentType.SERVERLESS, KServeDeploymentType.RAW_DEPLOYMENT): |
No description provided.