-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [M3-8953] - Object Storage Gen2 Updates and Improvements (#11355)
* feat: [M3-8953] - OBJ Gen2 Updates * Add changeset * fix duplicate buckets landing page, may rework * Update e2e tests * Remove redundant beforeEach * Small adjustment to request * fix access keys e2e test * Fix bucket-create-gen2.spec.ts failing tests @linode/frontend-sdet * E2E review updates @cliu-akamai @AzureLatte * Fix issue where properties content was overriding SSL for non-gen2 capability users @coliu-akamai * Remove CORS from object drawers @bnussman-akamai * Update packages/manager/.changeset/pr-11355-upcoming-features-1733237339445.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com> * Update packages/manager/.changeset/pr-11355-upcoming-features-1733237339445.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com> * Remove double copy icon @dwiley-akamai * Add changesets * Update packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com> * Pluralize the regions * Fix E2E based in pluralize * Fix unit tests * Fix e2e from removing toggle --------- Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com> Co-authored-by: Connie Liu <coliu@akamai.com> Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com> Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
- Loading branch information
1 parent
6f6d303
commit 7609507
Showing
14 changed files
with
153 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Fixed | ||
--- | ||
|
||
Remove CORS toggle for Object Storage bucket objects ([#11355](https://github.com/linode/manager/pull/11355)) |
6 changes: 6 additions & 0 deletions
6
packages/manager/.changeset/pr-11355-upcoming-features-1733237339445.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@linode/manager": Upcoming Features | ||
--- | ||
|
||
Update Regions/S3 Hostnames interface to match new design guidelines with | ||
improved visualization of multiple storage regions ([#11355](https://github.com/linode/manager/pull/11355)) |
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-11355-upcoming-features-1733342861906.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Upcoming Features | ||
--- | ||
|
||
Remove Properties tab visibility for users without Gen2 capabilities, and fix duplicate bucket display issue ([#11355](https://github.com/linode/manager/pull/11355)) |
54 changes: 54 additions & 0 deletions
54
packages/manager/cypress/e2e/core/objectStorage/bucket-details.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { mockGetAccount } from 'support/intercepts/account'; | ||
import { mockAppendFeatureFlags } from 'support/intercepts/feature-flags'; | ||
import { ui } from 'support/ui'; | ||
import { | ||
accountFactory, | ||
objectStorageBucketFactory, | ||
regionFactory, | ||
} from 'src/factories'; | ||
import { randomLabel } from 'support/util/random'; | ||
|
||
describe('Object Storage Gen 1 Bucket Details Tabs', () => { | ||
beforeEach(() => { | ||
mockAppendFeatureFlags({ | ||
objMultiCluster: true, | ||
objectStorageGen2: { enabled: false }, | ||
}).as('getFeatureFlags'); | ||
mockGetAccount( | ||
accountFactory.build({ | ||
capabilities: ['Object Storage', 'Object Storage Access Key Regions'], | ||
}) | ||
).as('getAccount'); | ||
}); | ||
|
||
const mockRegion = regionFactory.build({ | ||
capabilities: ['Object Storage'], | ||
}); | ||
|
||
const mockBucket = objectStorageBucketFactory.build({ | ||
label: randomLabel(), | ||
region: mockRegion.id, | ||
}); | ||
|
||
describe('Properties tab without required capabilities', () => { | ||
it(`confirms the Properties tab does not exist for users without 'Object Storage Endpoint Types' capability`, () => { | ||
const { region, label } = mockBucket; | ||
|
||
cy.visitWithLogin( | ||
`/object-storage/buckets/${region}/${label}/properties` | ||
); | ||
|
||
cy.wait(['@getFeatureFlags', '@getAccount']); | ||
|
||
// Confirm that expected tabs are visible. | ||
ui.tabList.findTabByTitle('Objects').should('be.visible'); | ||
ui.tabList.findTabByTitle('Access').should('be.visible'); | ||
ui.tabList.findTabByTitle('SSL/TLS').should('be.visible'); | ||
|
||
// Confirm that "Properties" tab is absent. | ||
cy.findByText('Properties').should('not.exist'); | ||
|
||
// TODO Confirm "Not Found" notice is present. | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters