-
Notifications
You must be signed in to change notification settings - Fork 361
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
test: [M3-8433] - Cypress integration test for Object Storage Gen2: E1 Endpoint #10907
Conversation
Coverage Report: β
|
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.
Test passes and does what was required of it. π’
I just left a couple minor comments, mostly clean up.
@@ -128,11 +128,6 @@ describe('Object Storage Gen2 create bucket tests', () => { | |||
region: mockRegion.id, | |||
}).as('createBucket'); | |||
|
|||
mockAppendFeatureFlags({ |
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.
We can also remove L139, @getFeatureFlags
.
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.
Howcome?
cy.wait('@createBucket').then((xhr) => { | ||
const requestPayload = xhr.request.body; | ||
expect(requestPayload['endpoint_type']).to.equal('E1'); | ||
expect(requestPayload['cors_enabled']).to.equal(true); | ||
}); |
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.
s3_endpoint is present if corresponding endpoint mock contains non-null s3_endpoint
Did we still want to verify the s3_endpoint
?
const endpointTypeE1 = 'Standard (E1)'; | ||
const bucketLabel = randomLabel(); | ||
|
||
//wait for the newly 'created' mocked bucket to appear |
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.
Nit: Does this comment make more sense down before Line 307-308?
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.
Moved it as far down as I could given placement now
ui.drawer.find().should('not.exist'); | ||
|
||
// Confirm that bucket is created, initiate deletion for cleanup | ||
cy.findByText(endpointTypeE1).should('be.visible'); |
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.
The correct information is displayed alongside the new bucket:
Label
Region
Endpoint type
Endpoint URL
Just noticed - are we missing a check for the endpoint URL? I see endpoint type, label, and region.
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.
Endpoint URL is the s3_endpoint - added π
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.
I have no idea why, but when running
yarn cy:debug
all tests are passing, but with
yarn cy:run -s "cypress/e2e/core/objectStorageGen2/bucket-create-gen2.spec.ts"
it's failing.
anyone else?
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.
Approving since test passes as expected locally and in CI, but curious to know if @jdamore-linode has any insight into the discrepancy shown discussed above
@abailly-akamai @mjac0bs @jaalah-akamai I'm able to reproduce the failures via
bucket-create-gen2.spec.ts.mp4Edit: Deleted second recording because I realized after the fact that I accidentally overrode the recording that showed the failure :( cc @jaalah-akamai -- Sorry about this! I should've caught this when I reviewed the original E0 test. |
Thanks @jdamore-linode I'll make those changes and confirm back here when it's done π |
β¦1 Endpoint (linode#10907) * test: [M3-8433] - Cypress integration test for Object Storage Gen2: E1 Endpoint * Added changeset: Cypress integration test for Object Storage Gen2: E1 Endpoint * test: [M3-8433] - Cypress integration test for Object Storage Gen2: E1 Endpoint --------- Co-authored-by: Jaalah Ramos <[email protected]>
Changes π
Target release date ποΈ
N/A
How to test π§ͺ
yarn cy:run -s "cypress/e2e/core/objectStorageGen2/bucket-create-gen2.spec.ts"
Requirements:
cors_enabled
istrue
endpoint_type
is 'E1's3_endpoint
is present if corresponding endpoint mock contains non-nulls3_endpoint
s3_endpoint
is specified, and at least one of these subtasks should test the case whens3_endpoint
is omittedAs an Author I have considered π€
Check all that apply