Skip to content

Commit

Permalink
test: [M3-8890] - Fix flaky DBaaS resize test related to recent facto…
Browse files Browse the repository at this point in the history
…ry changes (#11238)

* Set DBaaS resize test mock database instance platform to `'rdbms-legacy'`

* Added changeset: Fix DBaaS resize tests that fail on first attempt and succeed on second
  • Loading branch information
jdamore-linode authored Nov 13, 2024
1 parent 292ae6c commit 0f5ae7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11238-tests-1731115121832.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Fix DBaaS resize tests that fail on first attempt and succeed on second ([#11238](https://github.com/linode/manager/pull/11238))
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const resizeDatabase = (initialLabel: string) => {
describe('Resizing existing clusters', () => {
databaseConfigurationsResize.forEach(
(configuration: databaseClusterConfiguration) => {
describe(`Resizes a ${configuration.linodeType} ${configuration.engine} v${configuration.version}.x ${configuration.clusterSize}-node cluster`, () => {
describe(`Resizes a ${configuration.linodeType} ${configuration.engine} v${configuration.version}.x ${configuration.clusterSize}-node cluster (legacy DBaaS)`, () => {
/*
* - Tests active database resize UI flows using mocked data.
* - Confirms that users can resize an existing database.
Expand All @@ -70,6 +70,7 @@ describe('Resizing existing clusters', () => {
cluster_size: 3,
status: 'active',
allow_list: [allowedIp],
platform: 'rdbms-legacy',
});

// Mock account to ensure 'Managed Databases' capability.
Expand Down

0 comments on commit 0f5ae7e

Please sign in to comment.