8
8
import {
9
9
commonUrl ,
10
10
ossClusterRedisGears ,
11
- ossStandaloneRedisGears ,
11
+ ossStandaloneRedisGears
12
12
} from '../../../helpers/conf' ;
13
13
import { rte } from '../../../helpers/constants' ;
14
14
import { DatabaseAPIRequests } from '../../../helpers/api/api-database' ;
@@ -21,7 +21,6 @@ const triggersAndFunctionsLibrariesPage = new TriggersAndFunctionsLibrariesPage(
21
21
const triggersAndFunctionsFunctionsPage = new TriggersAndFunctionsFunctionsPage ( ) ;
22
22
23
23
const libraryName = Common . generateWord ( 5 ) ;
24
- const streamKeyName = Common . generateWord ( 5 ) ;
25
24
26
25
const filePathes = {
27
26
upload : path . join ( '..' , '..' , '..' , 'test-data' , 'triggers-and-functions' , 'library.txt' ) ,
@@ -60,30 +59,6 @@ test('Verify that function can be invoked', async t => {
60
59
await t . expect ( await triggersAndFunctionsFunctionsPage . Cli . getExecutedCommandTextByIndex ( ) ) . eql ( expectedCommand ) ;
61
60
await t . click ( triggersAndFunctionsFunctionsPage . Cli . cliCollapseButton ) ;
62
61
} ) ;
63
-
64
- test . after ( async ( ) => {
65
- await browserPage . deleteKeyByNameFromList ( streamKeyName ) ;
66
- await browserPage . Cli . sendCommandInCli ( `TFUNCTION DELETE ${ libraryName } ` ) ;
67
- await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneRedisGears ) ;
68
- } ) ( 'Verify that user can open a Stream key from function' , async t => {
69
- const command1 = `#!js api_version=1.0 name=${ libraryName } ` ;
70
- const command2 = `redis.registerStreamTrigger('${ LIBRARIES_LIST [ 3 ] . name } ', 'name', function(){});` ;
71
-
72
- await browserPage . addStreamKey ( streamKeyName , 'keyField' , 'keyValue' ) ;
73
- await t . click ( browserPage . NavigationPanel . triggeredFunctionsButton ) ;
74
- await t . click ( triggersAndFunctionsFunctionsPage . librariesLink ) ;
75
- await t . click ( triggersAndFunctionsLibrariesPage . addLibraryButton ) ;
76
- await triggersAndFunctionsLibrariesPage . sendTextToMonaco ( MonacoEditorInputs . Code , command1 , command2 ) ;
77
- await t . click ( triggersAndFunctionsLibrariesPage . addLibrarySubmitButton ) ;
78
- await t . click ( triggersAndFunctionsLibrariesPage . functionsLink ) ;
79
- await t . click ( triggersAndFunctionsFunctionsPage . getFunctionsNameSelector ( LIBRARIES_LIST [ 3 ] . name ) ) ;
80
- await t . click ( triggersAndFunctionsFunctionsPage . invokeButton ) ;
81
- await t . typeText ( triggersAndFunctionsFunctionsPage . keyNameStreamFunctions , `${ streamKeyName } *` ) ;
82
- await t . click ( triggersAndFunctionsFunctionsPage . findKeyButton ) ;
83
- await t . expect ( await browserPage . isKeyIsDisplayedInTheList ( streamKeyName ) ) . ok ( 'The stream key is not opened' ) ;
84
- await t . expect ( browserPage . keyDetailsBadge . exists ) . ok ( 'The key details is not opened' ) ;
85
- } ) ;
86
-
87
62
test . before ( async ( ) => {
88
63
await databaseHelper . acceptLicenseTermsAndAddOSSClusterDatabase ( ossClusterRedisGears ) ;
89
64
} ) . after ( async ( ) => {
0 commit comments