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
THREESCALE-10518 - Operator crash - OpenAPI CR doesn't create correct backend... #908
Conversation
abd5be7
to
2b65919
Compare
2b65919
to
f007f1b
Compare
@MStokluska , hope review comments addressed now. It was discussed in Team chat and googleDoc. Could you please review here. Thanks for your comments. |
/lgtm Looks good to me. Thanks Valery |
Just one note, the Commit message should be <JIRA_NO> - having a <JIRA_NO>- might affect how the PR is consumed by our build system. Please update. |
doc/openapi-user-guide.md
Outdated
|
||
| **Field** | **Required** | **Description** | | ||
| --- | --- | --- | | ||
| --- | --- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
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.
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.
My bad after testing it doesn't work 🤦
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.
Updated. Thank you for review and help notes.
f98d62f
to
4431d4a
Compare
4431d4a
to
59963bd
Compare
Thank you for review and help notes! |
@valerymo: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Code Climate has analyzed commit 893262b and detected 13 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@austincunningham @MStokluska |
Closing current PR, as commits looks not clear after squash / rebase process (probably mistake was done)
Please see new PR created with changes of this PR #915
Could you please approve new PR
WHAT
Jira: https://issues.redhat.com/browse/THREESCALE-10518
Operator crash - OpenAPI CR doesn't create correct backend usage section in Product CR
Validation - Preparation
Install RHSSO
Create project rhsso-test
In RH User SSO web console:
petstore
In RH User SSO web console:
Client ID
: 3scale-zyncClient Settings:
3scale-zync Client setting will be as in the table below
Service Account Roles
tab -> Client Rolesrealm-management
->manage-clients
Install 3scale
please place your wildcardDomain
This is the secret that contains URL for issuerEndpoint.
The secret is referenced in OpenApi CR - field issuerEndpointRef.
Openapi Secret
Apply Secret that contains OpenApi spec
NOTE Two OAS securitySchemes will be tested -
oauth2
andopenidConnect
. See more details in Validation section.Validation - Tests
Test cases
Following cases will be tested
OpenApiCR is OIDC. OAS securitySheme type: oauth2
Test1. Invalid OpenApi CR. OIDC Issuer Endpoint definition is missing in CR.
Test2. Valid OpenApi CR (oidc), Valid OAS (oauth2)
3scale-operator/doc/openapi-user-guide.md
Lines 191 to 196 in 185e1ae
Test3. Invalid OAS - missing flows definition in OAS securitySheme
OpenApiCR is OIDC. OAS securitySheme type: openIdConnect
OIDC not defined in OpenApiCR spec. OAS securitySheme type: one of oauth2 or openIdConnect
OpenApiCR is OIDC. OAS securitySheme not defined
Tests Examples
Test1. Invalid OpenApi CR. OIDC Issuer Endpoint definition is missing in CR
Test2 - Valid OpenApi CR (oidc), Valid OAS (oauth2)
issuerEndpointRef
as in example belowNotes for other tests execution
openapi-example-2
. Also add suffix to OAS titile, liketitle: Swagger Petstore 2