diff --git a/features/backend/projects/database_connections/main_tests_database_connections_sqlserver.feature b/features/backend/projects/database_connections/main_tests_database_connections_sqlserver.feature.bak similarity index 98% rename from features/backend/projects/database_connections/main_tests_database_connections_sqlserver.feature rename to features/backend/projects/database_connections/main_tests_database_connections_sqlserver.feature.bak index ec3c2530d..fbbbc202a 100644 --- a/features/backend/projects/database_connections/main_tests_database_connections_sqlserver.feature +++ b/features/backend/projects/database_connections/main_tests_database_connections_sqlserver.feature.bak @@ -1,185 +1,185 @@ -@ProcessMakerMichelangelo @RestAPI -Feature: DataBase Connections Main Tests SQL Server - Requirements: - A workspace with previous creation of process with ID=74737540052e1641ab88249082085472 ("Data Base Connections") already loaded - and workspace with the project 87648819953a85c0abc01d3080475981 ("testExecutionOfDerivationScreen") already loaded - there are zero Database Connections in the processes. - - # Microsoft SQL Server is tagged like 2 - Background: - Given that I have a valid access_token - - - # GET /api/1.0/{workspace}/project//database-connections - # Get list DataBase Connections - Scenario Outline: Get the DataBase Connections List when there are exactly zero DataBase Connections - Given I request "project//database-connections" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the response has record - - Examples: - | project | record | - | 74737540052e1641ab88249082085472 | 0 | - | 87648819953a85c0abc01d3080475981 | 0 | - - - # POST /api/1.0/{workspace}/project//database-connection/test - # Test DataBase Connection - @SqlServerDbConnection - Scenario Outline: Test database connection to test - Given POST this data: - """ - { - "dbs_type": "", - "dbs_server": "", - "dbs_database_name": "", - "dbs_username": "", - "dbs_password": "", - "dbs_port": , - "dbs_encode": "", - "dbs_description": "" - } - """ - And I request "project//database-connection/test" - Then if database-connection with id "" is active - Then the response status code should be 200 - And the response charset is "UTF-8" - And the content type is "application/json" - - Examples: - | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | - | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | - | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | - - - # POST /api/1.0/{workspace}/project//database-connection - # Create new DataBase Connection - @SqlServerDbConnection - Scenario Outline: Create a new database connection - Given database-connection with id "" is active - And POST this data: - """ - { - "dbs_type": "", - "dbs_server": "", - "dbs_database_name": "", - "dbs_username": "", - "dbs_password": "", - "dbs_port": , - "dbs_encode": "", - "dbs_description": "" - } - """ - And I request "project//database-connection" - Then the response status code should be 201 - And the response charset is "UTF-8" - And the content type is "application/json" - And the type is "object" - And store "dbs_uid" in session array as variable "dbs_uid_" - - Examples: - | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | - | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | - | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | - - - # GET /api/1.0/{workspace}/project//database-connection - # Get DataBase Connections list of each process - Scenario Outline: Get the DataBase Connections List when there are exactly one DataBase Connections in each process - Given database-connection with id "" is active - And I request "project//database-connections" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the response has record - - Examples: - | project | record | dbs_uid_number | - | 74737540052e1641ab88249082085472 | 1 | 1 | - | 87648819953a85c0abc01d3080475981 | 1 | 2 | - - - # PUT /api/1.0/{workspace}/project//database-connection - # Update a DataBase Connection - @SqlServerDbConnection - Scenario Outline: Update a database connection - Given database-connection with id "" is active - And PUT this data: - """ - { - "dbs_type": "", - "dbs_server": "", - "dbs_database_name": "", - "dbs_username": "", - "dbs_password": "", - "dbs_port": , - "dbs_encode": "", - "dbs_description": "" - } - """ - And that I want to update a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_" - And I request "project//database-connection" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - - Examples: - | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | - | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | - | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | - - - # GET /api/1.0/{workspace}/project//database-connection - # Get a single DataBase Connection and their properties - @SqlServerDbConnection - Scenario Outline: Get a single database connection and check some properties - Given database-connection with id "" is active - And that I want to get a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_" - And I request "project//database-connection" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - And that "dbs_type" is set to "" - And that "dbs_server" is set to "" - And that "dbs_database_name" is set to "" - And that "dbs_username" is set to "" - And that "dbs_password" is set to "" - And that "dbs_port" is set to "" - And that "dbs_encode" is set to "" - And that "dbs_description" is set to "" - - Examples: - | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | - | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | - | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | - - - # DELETE /api/1.0/{workspace}/project//database-connection - # Delete all DataBase Connections created in this script - Scenario Outline: Delete all Database Connection created in this script - Given database-connection with id "" is active - And that I want to delete a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_" - And I request "project//database-connection" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - - Examples: - | project | dbs_uid_number | - | 74737540052e1641ab88249082085472 | 1 | - | 87648819953a85c0abc01d3080475981 | 2 | - - - # GET /api/1.0/{workspace}/project//database-connection - # Get DataBase Connections list - Scenario Outline: Get the DataBase Connections List when there are exactly zero DataBase Connections - Given database-connection with id "" is active - And I request "project//database-connections" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the response has record - - Examples: - | project | record | dbs_uid_number | - | 74737540052e1641ab88249082085472 | 0 | 1 | +@ProcessMakerMichelangelo @RestAPI +Feature: DataBase Connections Main Tests SQL Server + Requirements: + A workspace with previous creation of process with ID=74737540052e1641ab88249082085472 ("Data Base Connections") already loaded + and workspace with the project 87648819953a85c0abc01d3080475981 ("testExecutionOfDerivationScreen") already loaded + there are zero Database Connections in the processes. + + # Microsoft SQL Server is tagged like 2 + Background: + Given that I have a valid access_token + + + # GET /api/1.0/{workspace}/project//database-connections + # Get list DataBase Connections + Scenario Outline: Get the DataBase Connections List when there are exactly zero DataBase Connections + Given I request "project//database-connections" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the response has record + + Examples: + | project | record | + | 74737540052e1641ab88249082085472 | 0 | + | 87648819953a85c0abc01d3080475981 | 0 | + + + # POST /api/1.0/{workspace}/project//database-connection/test + # Test DataBase Connection + @SqlServerDbConnection + Scenario Outline: Test database connection to test + Given POST this data: + """ + { + "dbs_type": "", + "dbs_server": "", + "dbs_database_name": "", + "dbs_username": "", + "dbs_password": "", + "dbs_port": , + "dbs_encode": "", + "dbs_description": "" + } + """ + And I request "project//database-connection/test" + Then if database-connection with id "" is active + Then the response status code should be 200 + And the response charset is "UTF-8" + And the content type is "application/json" + + Examples: + | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | + | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | + | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | + + + # POST /api/1.0/{workspace}/project//database-connection + # Create new DataBase Connection + @SqlServerDbConnection + Scenario Outline: Create a new database connection + Given database-connection with id "" is active + And POST this data: + """ + { + "dbs_type": "", + "dbs_server": "", + "dbs_database_name": "", + "dbs_username": "", + "dbs_password": "", + "dbs_port": , + "dbs_encode": "", + "dbs_description": "" + } + """ + And I request "project//database-connection" + Then the response status code should be 201 + And the response charset is "UTF-8" + And the content type is "application/json" + And the type is "object" + And store "dbs_uid" in session array as variable "dbs_uid_" + + Examples: + | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | + | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | + | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | + + + # GET /api/1.0/{workspace}/project//database-connection + # Get DataBase Connections list of each process + Scenario Outline: Get the DataBase Connections List when there are exactly one DataBase Connections in each process + Given database-connection with id "" is active + And I request "project//database-connections" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the response has record + + Examples: + | project | record | dbs_uid_number | + | 74737540052e1641ab88249082085472 | 1 | 1 | + | 87648819953a85c0abc01d3080475981 | 1 | 2 | + + + # PUT /api/1.0/{workspace}/project//database-connection + # Update a DataBase Connection + @SqlServerDbConnection + Scenario Outline: Update a database connection + Given database-connection with id "" is active + And PUT this data: + """ + { + "dbs_type": "", + "dbs_server": "", + "dbs_database_name": "", + "dbs_username": "", + "dbs_password": "", + "dbs_port": , + "dbs_encode": "", + "dbs_description": "" + } + """ + And that I want to update a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_" + And I request "project//database-connection" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "object" + + Examples: + | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | + | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | + | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | + + + # GET /api/1.0/{workspace}/project//database-connection + # Get a single DataBase Connection and their properties + @SqlServerDbConnection + Scenario Outline: Get a single database connection and check some properties + Given database-connection with id "" is active + And that I want to get a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_" + And I request "project//database-connection" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "object" + And that "dbs_type" is set to "" + And that "dbs_server" is set to "" + And that "dbs_database_name" is set to "" + And that "dbs_username" is set to "" + And that "dbs_password" is set to "" + And that "dbs_port" is set to "" + And that "dbs_encode" is set to "" + And that "dbs_description" is set to "" + + Examples: + | dbs_uid_number | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | + | 1 | 74737540052e1641ab88249082085472 | | | | | | | | | + | 2 | 87648819953a85c0abc01d3080475981 | | | | | | | | | + + + # DELETE /api/1.0/{workspace}/project//database-connection + # Delete all DataBase Connections created in this script + Scenario Outline: Delete all Database Connection created in this script + Given database-connection with id "" is active + And that I want to delete a resource with the key "dbs_uid" stored in session array as variable "dbs_uid_" + And I request "project//database-connection" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the type is "object" + + Examples: + | project | dbs_uid_number | + | 74737540052e1641ab88249082085472 | 1 | + | 87648819953a85c0abc01d3080475981 | 2 | + + + # GET /api/1.0/{workspace}/project//database-connection + # Get DataBase Connections list + Scenario Outline: Get the DataBase Connections List when there are exactly zero DataBase Connections + Given database-connection with id "" is active + And I request "project//database-connections" + Then the response status code should be 200 + And the response charset is "UTF-8" + And the response has record + + Examples: + | project | record | dbs_uid_number | + | 74737540052e1641ab88249082085472 | 0 | 1 | | 87648819953a85c0abc01d3080475981 | 0 | 2 | \ No newline at end of file