You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/e2e/helpers/api/api-database.ts
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,17 @@ export async function addNewStandaloneDatabaseApi(databaseParameters: AddNewData
22
22
})
23
23
.set('Accept','application/json');
24
24
25
-
awaitt.expect(awaitresponse.status).eql(201,'The creation of new standalone database request failed');
26
-
awaitt.expect(awaitresponse.body.name).eql(databaseParameters.databaseName,`Database Name is not equal to ${databaseParameters.databaseName} in response`);
25
+
awaitt
26
+
.expect(response.status).eql(201,'The creation of new standalone database request failed')
27
+
.expect(awaitresponse.body.name).eql(databaseParameters.databaseName,`Database Name is not equal to ${databaseParameters.databaseName} in response`);
27
28
}
28
29
29
30
/**
30
31
* Add a new Standalone databases through api using host and port
31
32
* @param databasesParameters The databases parameters array
awaitt.expect(awaitresponse.status).eql(201,'The creation of new oss cluster database request failed');
51
-
awaitt.expect(awaitresponse.body.name).eql(databaseParameters.ossClusterDatabaseName,`Database Name is not equal to ${databaseParameters.ossClusterDatabaseName} in response`);
51
+
awaitt.expect(awaitresponse.status).eql(201,'The creation of new oss cluster database request failed')
52
+
.expect(awaitresponse.body.name).eql(databaseParameters.ossClusterDatabaseName,`Database Name is not equal to ${databaseParameters.ossClusterDatabaseName} in response`);
52
53
}
53
54
54
55
/**
@@ -206,7 +207,7 @@ export async function getClusterNodesApi(databaseParameters: OSSClusterParameter
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databaseParameters.databaseName??'').exists).ok('The existence of the database',{timeout: 10000});
//Wait for database to be exist in the list of Autodiscover databases and select it
65
-
awaitt.expect(autoDiscoverREDatabases.databaseNames.withExactText(databaseParameters.databaseName??'').exists).ok('The existence of the database',{timeout: 10000});
// Wait for database to be exist in the list of Autodiscover databases and select it
67
+
.expect(autoDiscoverREDatabases.databaseNames.withExactText(databaseParameters.databaseName??'').exists).ok('The database not displayed',{timeout: 10000})
awaitt.expect(myRedisDatabasePage.databaseInfoMessage.exists).ok('Check that info message exists',{timeout: 10000});
84
-
//Wait for database to be exist
85
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databaseParameters.ossClusterDatabaseName).exists).ok('The existence of the database',{timeout: 10000});
.expect(myRedisDatabasePage.databaseInfoMessage.exists).ok('Info message not exists',{timeout: 10000})
87
+
// Wait for database to be exist
88
+
.expect(myRedisDatabasePage.dbNameList.withExactText(databaseParameters.ossClusterDatabaseName).exists).ok('The database not displayed',{timeout: 10000});
86
89
}
87
90
88
91
/**
@@ -91,19 +94,21 @@ export async function addOSSClusterDatabase(databaseParameters: OSSClusterParame
91
94
* @param cloudAPISecretKey The Cloud API Secret Key
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databaseParameters.databaseName??'').exists).ok('The existence of the database',{timeout: 5000});
195
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databaseParameters.databaseName??'').exists).ok('The database not displayed',{timeout: 5000});
0 commit comments