From 210d61de60239c0436f1bb61ae28a875b37f6806 Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Sat, 12 May 2018 22:16:10 +0200 Subject: [PATCH 1/7] Initial version Vertica tests --- .../base/database/test_vertica_sql_command.sl | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 test/io/cloudslang/base/database/test_vertica_sql_command.sl diff --git a/test/io/cloudslang/base/database/test_vertica_sql_command.sl b/test/io/cloudslang/base/database/test_vertica_sql_command.sl new file mode 100644 index 0000000000..d9d10ad220 --- /dev/null +++ b/test/io/cloudslang/base/database/test_vertica_sql_command.sl @@ -0,0 +1,111 @@ +namespace: io.cloudslang.base.database + +imports: + db: io.cloudslang.base.database + strings: io.cloudslang.base.strings + prt: io.cloudslang.base.print + +flow: + name: test_vertica_sql_command + + inputs: + - db_server_name + - db_port: + required: false + default: "5433" + - username + - password: + sensitive: true + - database_name + + outputs: + - return_result + - output_text + + workflow: + - sql_create_table: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'CREATE TABLE TestCsTickStore (ts TIMESTAMP, symbol VARCHAR(8), bid FLOAT);' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_insert_row + - FAILURE: print_fail + + - sql_insert_row: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: "INSERT INTO TestCsTickStore VALUES ('2018-01-01 03:00:00', 'XYZ', 10.0);" + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_select_count + - FAILURE: print_fail + + - sql_select_count: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'SELECT COUNT(*) FROM TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_drop_table + - FAILURE: print_fail + + - sql_drop_table: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'DROP TABLE TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: print_finish + - FAILURE: print_fail + + + - print_finish: + do: + prt.print_text: + - text: ${'\t* Succcess ' + output_text } + navigate: + - SUCCESS: SUCCESS + + - on_failure: + - print_fail: + do: + prt.print_text: + - text: ${'\t* Failed ' + return_result } + From a15531a9d9d57f763500dcc8a60a207a4a59b049 Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Sat, 12 May 2018 22:17:07 +0200 Subject: [PATCH 2/7] Initial version for Vertica --- content/io/cloudslang/base/database/sql_command.sl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/io/cloudslang/base/database/sql_command.sl b/content/io/cloudslang/base/database/sql_command.sl index a9a4181327..2465eeb5b3 100644 --- a/content/io/cloudslang/base/database/sql_command.sl +++ b/content/io/cloudslang/base/database/sql_command.sl @@ -17,12 +17,13 @@ #! #! @input db_server_name: The hostname or ip address of the database server. #! @input db_type: The type of database to connect to. -#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL' and 'Custom'. +#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL', 'Vertica' and 'Custom'. #! @input username: The username to use when connecting to the database. #! @input password: The password to use when connecting to the database. #! @input instance: The name instance (for MSSQL Server). Leave it blank for default instance. #! @input db_port: The port to connect to. -#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432'. +#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432', +#! Vertica: '5433'. #! @input database_name: The name of the database. #! @input authentication_type: The type of authentication used to access the database (applicable only to MSSQL type). #! Valid: 'sql', 'windows' @@ -174,7 +175,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-database:0.0.4' + gav: 'io.cloudslang.content:cs-database:0.0.5-SNAPSHOT' class_name: io.cloudslang.content.database.actions.SQLCommand method_name: execute From 39e9fd650917d893469e2dc5ec4a8c37ae11e66f Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Wed, 16 May 2018 10:58:55 +0200 Subject: [PATCH 3/7] Initial version for Vertica --- .../cloudslang/base/database/sql_command.sl | 2 +- .../io/cloudslang/base/database/sql_query.sl | 9 +- .../base/database/sql_query_all_rows.sl | 9 +- .../base/database/sql_query_tabular.sl | 9 +- .../cloudslang/base/database/test_vertica.sl | 161 ++++++++++++++++++ .../base/database/test_vertica_sql_command.sl | 30 +--- 6 files changed, 186 insertions(+), 34 deletions(-) create mode 100644 test/io/cloudslang/base/database/test_vertica.sl diff --git a/content/io/cloudslang/base/database/sql_command.sl b/content/io/cloudslang/base/database/sql_command.sl index 2465eeb5b3..3a643af29a 100644 --- a/content/io/cloudslang/base/database/sql_command.sl +++ b/content/io/cloudslang/base/database/sql_command.sl @@ -56,7 +56,7 @@ #! Example: 'db.pooling.enable=true' #! @input result_set_type: The result set type. See JDBC folder description for more details. #! Valid values: 'TYPE_FORWARD_ONLY', 'TYPE_SCROLL_INSENSITIVE', 'TYPE_SCROLL_SENSITIVE'. -#! Default value: 'TYPE_SCROLL_INSENSITIVE' except DB2 which is overridden to 'TYPE_FORWARD_ONLY' +#! Default value: 'TYPE_SCROLL_INSENSITIVE' except or DB2 and Vertica which is overridden to 'TYPE_FORWARD_ONLY' #! @input result_set_concurrency: The result set concurrency. See JDBC folder description for more details. #! Valid values: 'CONCUR_READ_ONLY', 'CONCUR_UPDATABLE' #! Default value: 'CONCUR_READ_ONLY' diff --git a/content/io/cloudslang/base/database/sql_query.sl b/content/io/cloudslang/base/database/sql_query.sl index f1e1797303..a6429106e3 100644 --- a/content/io/cloudslang/base/database/sql_query.sl +++ b/content/io/cloudslang/base/database/sql_query.sl @@ -17,12 +17,13 @@ #! #! @input db_server_name: The hostname or ip address of the database server. #! @input db_type: The type of database to connect to. -#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL' and 'Custom'. +#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL', Vertica and 'Custom'. #! @input username: The username to use when connecting to the database. #! @input password: The password to use when connecting to the database. #! @input instance: The name instance (for MSSQL Server). Leave it blank for default instance. #! @input db_port: The port to connect to. -#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432'. +#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432', +#! Vertica: '5433'. #! @input database_name: The name of the database. #! @input authentication_type: The type of authentication used to access the database (applicable only to MSSQL type). #! Default: 'sql' @@ -61,7 +62,7 @@ #! Example: 'db.pooling.enable=true' #! @input result_set_type: The result set type. See JDBC folder description for more details. #! Valid values: 'TYPE_FORWARD_ONLY', 'TYPE_SCROLL_INSENSITIVE', 'TYPE_SCROLL_SENSITIVE'. -#! Default value: 'TYPE_SCROLL_INSENSITIVE' except DB2 which is overridden to 'TYPE_FORWARD_ONLY' +#! Default value: 'TYPE_SCROLL_INSENSITIVE' except for DB2 and Vertica which is overridden to 'TYPE_FORWARD_ONLY' #! @input result_set_concurrency: The result set concurrency. See JDBC folder description for more details. #! Valid values: 'CONCUR_READ_ONLY', 'CONCUR_UPDATABLE' #! Default value: 'CONCUR_READ_ONLY' @@ -202,7 +203,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-database:0.0.4' + gav: 'io.cloudslang.content:cs-database:0.0.5-SNAPSHOT' class_name: io.cloudslang.content.database.actions.SQLQuery method_name: execute diff --git a/content/io/cloudslang/base/database/sql_query_all_rows.sl b/content/io/cloudslang/base/database/sql_query_all_rows.sl index 3f36e16440..042a2268ed 100644 --- a/content/io/cloudslang/base/database/sql_query_all_rows.sl +++ b/content/io/cloudslang/base/database/sql_query_all_rows.sl @@ -17,12 +17,13 @@ #! #! @input db_server_name: The hostname or ip address of the database server. #! @input db_type: The type of database to connect to. -#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL' and 'Custom'. +#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL', 'Vertica' and 'Custom'. #! @input username: The username to use when connecting to the database. #! @input password: The password to use when connecting to the database. #! @input instance: The name instance (for MSSQL Server). Leave it blank for default instance. #! @input db_port: The port to connect to. -#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432'. +#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432', +#! Vertica: '5433'. #! @input database_name: The name of the database. #! @input authentication_type: The type of authentication used to access the database (applicable only to MSSQL type). #! Default: 'sql' @@ -62,7 +63,7 @@ #! Example: 'db.pooling.enable=true' #! @input result_set_type: The result set type. See JDBC folder description for more details. #! Valid values: 'TYPE_FORWARD_ONLY', 'TYPE_SCROLL_INSENSITIVE', 'TYPE_SCROLL_SENSITIVE'. -#! Default value: 'TYPE_SCROLL_INSENSITIVE' except DB2 which is overridden to 'TYPE_FORWARD_ONLY' +#! Default value: 'TYPE_SCROLL_INSENSITIVE' except or DB2 and Vertica which is overridden to 'TYPE_FORWARD_ONLY' #! @input result_set_concurrency: The result set concurrency. See JDBC folder description for more details. #! Valid values: 'CONCUR_READ_ONLY', 'CONCUR_UPDATABLE' #! Default value: 'CONCUR_READ_ONLY' @@ -196,7 +197,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-database:0.0.4' + gav: 'io.cloudslang.content:cs-database:0.0.5-SNAPSHOT' class_name: io.cloudslang.content.database.actions.SQLQueryAllRows method_name: execute diff --git a/content/io/cloudslang/base/database/sql_query_tabular.sl b/content/io/cloudslang/base/database/sql_query_tabular.sl index 1b994679f3..b4f1a20eab 100644 --- a/content/io/cloudslang/base/database/sql_query_tabular.sl +++ b/content/io/cloudslang/base/database/sql_query_tabular.sl @@ -17,12 +17,13 @@ #! #! @input db_server_name: The hostname or ip address of the database server. #! @input db_type: The type of database to connect to. -#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL' and 'Custom'. +#! Valid: 'Oracle', 'MSSQL', 'Sybase', 'Netcool', 'DB2', 'PostgreSQL', Vertica and 'Custom'. #! @input username: The username to use when connecting to the database. #! @input password: The password to use when connecting to the database. #! @input instance: The name instance (for MSSQL Server). Leave it blank for default instance. #! @input db_port: The port to connect to. -#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432'. +#! Default: Oracle: '1521', MSSQL: '1433', Sybase: '5000', Netcool: '4100', DB2: '50000', PostgreSQL: '5432', +#! Vertica: '5433'. #! @input database_name: The name of the database. #! @input authentication_type: The type of authentication used to access the database (applicable only to MSSQL type). #! Default: 'sql' @@ -58,7 +59,7 @@ #! Example: 'db.pooling.enable=true' #! @input result_set_type: The result set type. See JDBC folder description for more details. #! Valid values: 'TYPE_FORWARD_ONLY', 'TYPE_SCROLL_INSENSITIVE', 'TYPE_SCROLL_SENSITIVE'. -#! Default value: 'TYPE_SCROLL_INSENSITIVE' except DB2 which is overridden to 'TYPE_FORWARD_ONLY' +#! Default value: 'TYPE_SCROLL_INSENSITIVE' except or DB2 and Vertica which is overridden to 'TYPE_FORWARD_ONLY' #! @input result_set_concurrency: The result set concurrency. See JDBC folder description for more details. #! Valid values: 'CONCUR_READ_ONLY', 'CONCUR_UPDATABLE' #! Default value: 'CONCUR_READ_ONLY' @@ -178,7 +179,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-database:0.0.4' + gav: 'io.cloudslang.content:cs-database:0.0.5-SNAPSHOT' class_name: io.cloudslang.content.database.actions.SQLQueryTabular method_name: execute diff --git a/test/io/cloudslang/base/database/test_vertica.sl b/test/io/cloudslang/base/database/test_vertica.sl new file mode 100644 index 0000000000..4efe038b57 --- /dev/null +++ b/test/io/cloudslang/base/database/test_vertica.sl @@ -0,0 +1,161 @@ +namespace: io.cloudslang.base.database + +imports: + db: io.cloudslang.base.database + strings: io.cloudslang.base.strings + +flow: + name: test_vertica + + inputs: + - db_server_name + - db_port: + required: false + default: "5433" + - username + - password: + sensitive: true + - database_name + + outputs: + - return_result + - output_text + + workflow: + - sql_create_table: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'CREATE TABLE TestCsTickStore (ts TIMESTAMP, symbol VARCHAR(8), bid FLOAT);' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_insert_row + - FAILURE: CREATE_STACK_FAILURE + + - sql_insert_row: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: "INSERT INTO TestCsTickStore VALUES ('2018-01-01 03:00:00', 'XYZ', 10.0);" + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_select_count + - FAILURE: CREATE_STACK_FAILURE + + - sql_select_count: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'SELECT COUNT(*) FROM TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_query_all + - FAILURE: CREATE_STACK_FAILURE + + - sql_query_all: + do: + io.cloudslang.base.database.sql_query_all_rows: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'SELECT * FROM TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_query_tabular + - FAILURE: CREATE_STACK_FAILURE + + + - sql_query_tabular: + do: + io.cloudslang.base.database.sql_query_tabular: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'SELECT * FROM TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_query + - FAILURE: CREATE_STACK_FAILURE + + + - sql_query: + do: + io.cloudslang.base.database.sql_query: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - key: key + - command: 'SELECT * FROM TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + - rows_left: ${rows_left} + - column_names: ${column_names} + + navigate: + - HAS_MORE: sql_drop_table + - NO_MORE: sql_drop_table + - FAILURE: CREATE_STACK_FAILURE + + + - sql_drop_table: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'DROP TABLE TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: SUCCESS + - FAILURE: CREATE_STACK_FAILURE + + results: + - SUCCESS + - CREATE_STACK_FAILURE diff --git a/test/io/cloudslang/base/database/test_vertica_sql_command.sl b/test/io/cloudslang/base/database/test_vertica_sql_command.sl index d9d10ad220..38847de084 100644 --- a/test/io/cloudslang/base/database/test_vertica_sql_command.sl +++ b/test/io/cloudslang/base/database/test_vertica_sql_command.sl @@ -3,7 +3,6 @@ namespace: io.cloudslang.base.database imports: db: io.cloudslang.base.database strings: io.cloudslang.base.strings - prt: io.cloudslang.base.print flow: name: test_vertica_sql_command @@ -39,7 +38,7 @@ flow: - return_result: ${return_result} navigate: - SUCCESS: sql_insert_row - - FAILURE: print_fail + - FAILURE: CREATE_STACK_FAILURE - sql_insert_row: do: @@ -57,7 +56,7 @@ flow: - return_result: ${return_result} navigate: - SUCCESS: sql_select_count - - FAILURE: print_fail + - FAILURE: CREATE_STACK_FAILURE - sql_select_count: do: @@ -75,7 +74,7 @@ flow: - return_result: ${return_result} navigate: - SUCCESS: sql_drop_table - - FAILURE: print_fail + - FAILURE: CREATE_STACK_FAILURE - sql_drop_table: do: @@ -92,20 +91,9 @@ flow: - output_text: ${output_text} - return_result: ${return_result} navigate: - - SUCCESS: print_finish - - FAILURE: print_fail - - - - print_finish: - do: - prt.print_text: - - text: ${'\t* Succcess ' + output_text } - navigate: - - SUCCESS: SUCCESS - - - on_failure: - - print_fail: - do: - prt.print_text: - - text: ${'\t* Failed ' + return_result } - + - SUCCESS: SUCCESS + - FAILURE: CREATE_STACK_FAILURE + + results: + - SUCCESS + - CREATE_STACK_FAILURE From 6642fc9ecc7d61c2ed52dd38e70ddae181de1bae Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Wed, 16 May 2018 11:08:26 +0200 Subject: [PATCH 4/7] remove test_vertica_sql_command.sl --- .../base/database/test_vertica_sql_command.sl | 99 ------------------- 1 file changed, 99 deletions(-) delete mode 100644 test/io/cloudslang/base/database/test_vertica_sql_command.sl diff --git a/test/io/cloudslang/base/database/test_vertica_sql_command.sl b/test/io/cloudslang/base/database/test_vertica_sql_command.sl deleted file mode 100644 index 38847de084..0000000000 --- a/test/io/cloudslang/base/database/test_vertica_sql_command.sl +++ /dev/null @@ -1,99 +0,0 @@ -namespace: io.cloudslang.base.database - -imports: - db: io.cloudslang.base.database - strings: io.cloudslang.base.strings - -flow: - name: test_vertica_sql_command - - inputs: - - db_server_name - - db_port: - required: false - default: "5433" - - username - - password: - sensitive: true - - database_name - - outputs: - - return_result - - output_text - - workflow: - - sql_create_table: - do: - io.cloudslang.base.database.sql_command: - - db_server_name: ${db_server_name} - - db_port: ${db_port} - - db_type: Vertica - - username: ${username} - - password: ${password} - - database_name: ${database_name} - - command: 'CREATE TABLE TestCsTickStore (ts TIMESTAMP, symbol VARCHAR(8), bid FLOAT);' - - trust_all_roots: 'true' - publish: - - output_text: ${output_text} - - return_result: ${return_result} - navigate: - - SUCCESS: sql_insert_row - - FAILURE: CREATE_STACK_FAILURE - - - sql_insert_row: - do: - io.cloudslang.base.database.sql_command: - - db_server_name: ${db_server_name} - - db_port: ${db_port} - - db_type: Vertica - - username: ${username} - - password: ${password} - - database_name: ${database_name} - - command: "INSERT INTO TestCsTickStore VALUES ('2018-01-01 03:00:00', 'XYZ', 10.0);" - - trust_all_roots: 'true' - publish: - - output_text: ${output_text} - - return_result: ${return_result} - navigate: - - SUCCESS: sql_select_count - - FAILURE: CREATE_STACK_FAILURE - - - sql_select_count: - do: - io.cloudslang.base.database.sql_command: - - db_server_name: ${db_server_name} - - db_port: ${db_port} - - db_type: Vertica - - username: ${username} - - password: ${password} - - database_name: ${database_name} - - command: 'SELECT COUNT(*) FROM TestCsTickStore;' - - trust_all_roots: 'true' - publish: - - output_text: ${output_text} - - return_result: ${return_result} - navigate: - - SUCCESS: sql_drop_table - - FAILURE: CREATE_STACK_FAILURE - - - sql_drop_table: - do: - io.cloudslang.base.database.sql_command: - - db_server_name: ${db_server_name} - - db_port: ${db_port} - - db_type: Vertica - - username: ${username} - - password: ${password} - - database_name: ${database_name} - - command: 'DROP TABLE TestCsTickStore;' - - trust_all_roots: 'true' - publish: - - output_text: ${output_text} - - return_result: ${return_result} - navigate: - - SUCCESS: SUCCESS - - FAILURE: CREATE_STACK_FAILURE - - results: - - SUCCESS - - CREATE_STACK_FAILURE From ee96046aa0ea9f54656af27d2895fd66637121a4 Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Wed, 16 May 2018 11:12:19 +0200 Subject: [PATCH 5/7] Initial version for Vertica --- .../cloudslang/base/database/test_vertica.inputs.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/io/cloudslang/base/database/test_vertica.inputs.yaml diff --git a/test/io/cloudslang/base/database/test_vertica.inputs.yaml b/test/io/cloudslang/base/database/test_vertica.inputs.yaml new file mode 100644 index 0000000000..b90fa706c5 --- /dev/null +++ b/test/io/cloudslang/base/database/test_vertica.inputs.yaml @@ -0,0 +1,11 @@ +testVertica: + testSuites: [vertica] + testFlowPath: io.cloudslang.base.database.test_vertica + inputs: + - db_server_name: + - username: + - password: + - database_name: + outputs: + - return_result: "Command completed successfully" + result: SUCCESS From 26ccc97f6d20d15476627790989e31bf7e146071 Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Thu, 17 May 2018 23:27:18 +0200 Subject: [PATCH 6/7] Initial version for Vertica --- .../base/database/test_vertica.inputs.yaml | 8 ++++---- .../cloudslang/base/database/test_vertica.sl | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/test/io/cloudslang/base/database/test_vertica.inputs.yaml b/test/io/cloudslang/base/database/test_vertica.inputs.yaml index b90fa706c5..876f04d254 100644 --- a/test/io/cloudslang/base/database/test_vertica.inputs.yaml +++ b/test/io/cloudslang/base/database/test_vertica.inputs.yaml @@ -2,10 +2,10 @@ testVertica: testSuites: [vertica] testFlowPath: io.cloudslang.base.database.test_vertica inputs: - - db_server_name: - - username: - - password: - - database_name: + - db_server_name: + - username: + - password: + - database_name: outputs: - return_result: "Command completed successfully" result: SUCCESS diff --git a/test/io/cloudslang/base/database/test_vertica.sl b/test/io/cloudslang/base/database/test_vertica.sl index 4efe038b57..783db2dc5d 100644 --- a/test/io/cloudslang/base/database/test_vertica.sl +++ b/test/io/cloudslang/base/database/test_vertica.sl @@ -22,6 +22,25 @@ flow: - output_text workflow: + + - clean_up_old_table_ignore_errors: + do: + io.cloudslang.base.database.sql_command: + - db_server_name: ${db_server_name} + - db_port: ${db_port} + - db_type: Vertica + - username: ${username} + - password: ${password} + - database_name: ${database_name} + - command: 'DROP TABLE TestCsTickStore;' + - trust_all_roots: 'true' + publish: + - output_text: ${output_text} + - return_result: ${return_result} + navigate: + - SUCCESS: sql_create_table + - FAILURE: sql_create_table + - sql_create_table: do: io.cloudslang.base.database.sql_command: From bad0b641a4e8e174b9685b6a5c7349a88517cd20 Mon Sep 17 00:00:00 2001 From: Stefan Bergstein Date: Sun, 24 Jun 2018 11:39:28 +0200 Subject: [PATCH 7/7] Added copyright text --- .../base/database/test_vertica.inputs.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/io/cloudslang/base/database/test_vertica.inputs.yaml b/test/io/cloudslang/base/database/test_vertica.inputs.yaml index 876f04d254..f7ea914289 100644 --- a/test/io/cloudslang/base/database/test_vertica.inputs.yaml +++ b/test/io/cloudslang/base/database/test_vertica.inputs.yaml @@ -1,3 +1,19 @@ + +# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## + testVertica: testSuites: [vertica] testFlowPath: io.cloudslang.base.database.test_vertica