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
@@ -51,6 +51,23 @@ export async function addNewOSSClusterDatabaseApi(databaseParameters: OSSCluster
51
51
awaitt.expect(awaitresponse.body.name).eql(databaseParameters.ossClusterDatabaseName,`Database Name is not equal to ${databaseParameters.ossClusterDatabaseName} in response`);
52
52
}
53
53
54
+
/**
55
+
* Add a Sentinel database via autodiscover through api
56
+
* @param databaseParameters The database parameters
//Verify that database found on the list search by name
49
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).ok('The database with alias is found',{timeout: 10000});
50
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with alias is found',{timeout: 10000});
51
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[2].databaseName).exists).notOk('The database with other alias is not found',{timeout: 10000});
52
-
});
53
-
test
54
-
.meta({rte: rte.standalone})('Verify that user can search DB by host on the List of databases',asynct=>{
//Verify that database found on the list search by host
59
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).ok('The database with host is found',{timeout: 10000});
60
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with host is found',{timeout: 10000});
61
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(ossClusterConfig.ossClusterDatabaseName).exists).notOk('The database with other host is not found',{timeout: 10000});
62
-
});
63
-
test
64
-
.meta({rte: rte.standalone})('Verify that user can search DB by port on the List of databases',asynct=>{
//Verify that database found on the list search by port
69
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).ok('The database with port is found',{timeout: 10000});
70
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with port is found',{timeout: 10000});
71
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(ossClusterConfig.ossClusterDatabaseName).exists).notOk('The database with other port is not found',{timeout: 10000});
72
-
});
73
-
test
74
-
.meta({rte: rte.standalone})('Verify that user can search DB by Connection Type on the List of databases',asynct=>{
//Verify that database found on the list search by connection type
79
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).ok('The database with connection type is found',{timeout: 10000});
80
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with connection type is found',{timeout: 10000});
81
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(ossClusterConfig.ossClusterDatabaseName).exists).notOk('The database with other connection type is not found',{timeout: 10000});
82
-
});
83
-
test
84
-
.meta({rte: rte.standalone})('Verify that user can search DB by Last Connection on the List of databases',asynct=>{
85
-
constsearchedDBFirst='less than a minute ago';
86
-
constsearchedDBSecond='1 minute ago';
87
-
constsearchTimeout=60*1000;// 60 sec to wait for changing Last Connection time
//Verify that database added < 1min ago found on the list search by Last Connection
93
-
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with Last Connection is found',{timeout: 10000});
94
-
//Verify that database added > 1min ago found on the list search by Last Connection
//Verify that database found on the list search by name
52
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).ok('The database with alias not found',{timeout: 10000});
53
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with alias not found',{timeout: 10000});
54
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[2].databaseName).exists).notOk('The database with other alias is found',{timeout: 10000});
55
+
});
56
+
test('Verify that user can search DB by host on the List of databases',asynct=>{
//Verify that database found on the list search by host
61
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).ok('The database with host not found',{timeout: 10000});
62
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with host not found',{timeout: 10000});
63
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(ossSentinelConfig.name).exists).notOk('The database with other host is found',{timeout: 10000});
64
+
});
65
+
test('Verify that user can search DB by port on the List of databases',asynct=>{
//Verify that database found on the list search by port
70
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).notOk('The database with port is found',{timeout: 10000});
71
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).notOk('The database with port is found',{timeout: 10000});
72
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(ossSentinelConfig.name).exists).ok('The database with other port is not found',{timeout: 10000});
73
+
});
74
+
// Unskip after fixing https://redislabs.atlassian.net/browse/RI-3300
75
+
test.skip('Verify that user can search DB by Connection Type on the List of databases',asynct=>{
//Verify that database found on the list search by connection type
80
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(ossClusterConfig.ossClusterDatabaseName).exists).ok('The database with connection type not found',{timeout: 10000});
81
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[0].databaseName).exists).notOk('The database with other connection type found',{timeout: 10000});
82
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).notOk('The database with other connection type found',{timeout: 10000});
83
+
});
84
+
test('Verify that user can search DB by Last Connection on the List of databases',asynct=>{
85
+
constsearchedDBFirst='less than a minute ago';
86
+
constsearchedDBSecond='1 minute ago';
87
+
constsearchTimeout=60*1000;// 60 sec to wait for changing Last Connection time
//Verify that database added < 1min ago found on the list search by Last Connection
93
+
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(databasesForSearch[1].databaseName).exists).ok('The database with Last Connection not found',{timeout: 10000});
94
+
//Verify that database added > 1min ago found on the list search by Last Connection
0 commit comments