Skip to content

Commit

Permalink
Merge branch 'main' into EVEREST-1458-ui-refactor-empty-states-tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabirs authored Nov 19, 2024
2 parents 00a2b96 + d4a38ae commit f4c37cc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions api-tests/tests/database-cluster.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test('create db cluster with monitoring config', async ({ request, page }) => {
monitoringConfigName: monitoringConfigName1,
},
engine: {
type: 'psmdb',
type: 'pxc',
replicas: 1,
storage: {
size: '4G',
Expand All @@ -51,7 +51,7 @@ test('create db cluster with monitoring config', async ({ request, page }) => {
},
},
proxy: {
type: 'mongos',
type: 'haproxy',
replicas: 1,
expose: {
type: 'internal',
Expand Down Expand Up @@ -106,7 +106,7 @@ test('update db cluster with a new monitoring config', async ({ request, page })
monitoringConfigName: monitoringConfigName1,
},
engine: {
type: 'psmdb',
type: 'pxc',
replicas: 1,
storage: {
size: '4G',
Expand All @@ -117,7 +117,7 @@ test('update db cluster with a new monitoring config', async ({ request, page })
},
},
proxy: {
type: 'mongos',
type: 'haproxy',
replicas: 1,
expose: {
type: 'internal',
Expand Down Expand Up @@ -182,7 +182,7 @@ test('update db cluster without monitoring config with a new monitoring config',
},
spec: {
engine: {
type: 'psmdb',
type: 'pxc',
replicas: 1,
storage: {
size: '4G',
Expand All @@ -193,7 +193,7 @@ test('update db cluster without monitoring config with a new monitoring config',
},
},
proxy: {
type: 'mongos',
type: 'haproxy',
replicas: 1,
expose: {
type: 'internal',
Expand Down Expand Up @@ -261,7 +261,7 @@ test('update db cluster monitoring config with an empty monitoring config', asyn
monitoringConfigName: monitoringConfigName1,
},
engine: {
type: 'psmdb',
type: 'pxc',
replicas: 1,
storage: {
size: '4G',
Expand All @@ -272,7 +272,7 @@ test('update db cluster monitoring config with an empty monitoring config', asyn
},
},
proxy: {
type: 'mongos',
type: 'haproxy',
replicas: 1,
expose: {
type: 'internal',
Expand Down
6 changes: 3 additions & 3 deletions api-tests/tests/database-engines.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ test('get/edit database engine versions', async ({ request }) => {
const engineData: GetDatabaseEngineResponse = await engineResponse.json();
const availableVersions = engineData.status.availableVersions;

expect(availableVersions.engine['7.0.12-7'].imageHash).toBe('7f00e19878bd143119772cd5468f1f0f9857dfcd2ae2f814d52ef3fa7cff6899');
expect(availableVersions.backup['2.5.0'].status).toBe('recommended');
expect(availableVersions.engine['7.0.14-8'].imageHash).toBe('ed932d4e7231dcb793bf609f781226a8393aa8958b103339f4a503a8f70ed17e');
expect(availableVersions.backup['2.7.0'].status).toBe('recommended');

const allowedVersions = ['6.0.5-4', '6.0.4-3', '5.0.7-6', '7.0.8-5', '7.0.12-7'];
const allowedVersions = ['6.0.5-4', '6.0.4-3', '7.0.8-5', '7.0.12-7', '7.0.14-8'];

delete engineData.status;
engineData.spec.allowedVersions = allowedVersions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ test.describe('DB Cluster creation', () => {
// Test the mechanism for default number of nodes
await page.getByTestId('button-edit-preview-basic-information').click();
// Here we test that version wasn't reset to default
await expect(page.getByText('Version: 6.0.4-3')).toBeVisible();
await expect(page.getByText('Version: 6.0.9-7')).toBeVisible();

// Make sure name doesn't change when we go back to first step
expect(await page.getByTestId('text-input-db-name').inputValue()).toBe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const basicInformationStepCheck = async (
recommendedEngineVersions.psmdb
);

await page.getByRole('option').filter({ hasText: '6.0.4-3' }).click();
await page.getByRole('option').filter({ hasText: '6.0.9-7' }).click();
await page.getByTestId('text-input-db-name').fill(clusterName);
await page.getByTestId('text-input-storage-class').click();
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const FirstStep = ({ loadingDefaultsForEdition }: StepProps) => {
const setDbEngineDataForEngineType = useCallback(() => {
//TODO 1234 - edit of dbVersion field should be refactored
const newEngineData = dbEngines.find((engine) => engine.type === dbEngine);
if (newEngineData && mode === 'edit') {
if (newEngineData && mode !== 'new') {
const validVersions = filterAvailableDbVersionsForDbEngineEdition(
newEngineData,
defaultDbVersion
Expand Down

0 comments on commit f4c37cc

Please sign in to comment.