@ProcessMakerMichelangelo @RestAPI Feature: DataBase Connections Negative Tests Background: Given that I have a valid access_token Scenario Outline: Test database connection to test Given POST this data: """ { "dbs_type": "", "dbs_server": "", "dbs_database_name": "", "dbs_username": "", "dbs_password": "", "dbs_port": 3306, "dbs_encode": "", "dbs_description": "" } """ And I request "project//database-connection" Then the response status code should be And the response status message should have the following text "" Examples: | test_description | project | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | error_code | error_message | | Field required dbs_type | 74737540052e1641ab88249082085472 | | | | | | | | mysql connection | 400 | dbs_type | | Field required dbs_server | 74737540052e1641ab88249082085472 | | | | | | | | mysql connection | 400 | dbs_server | | Field required dbs_database_name | 74737540052e1641ab88249082085472 | | | | | | | | mysql connection | 400 | dbs_database_name | | Field required dbs_encode | 74737540052e1641ab88249082085472 | | | | | | | | mysql connection | 400 | dbs_encode | | Field required project | | | | | | | | | mysql connection | 400 | prj_uid | Scenario Outline: Test database connection to test with parameter wrong port 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/74737540052e1641ab88249082085472/database-connection" Then the response status code should be 400 And the response status message should have the following text "port" Examples: | dbs_type | dbs_server | dbs_database_name | dbs_username | dbs_password | dbs_port | dbs_encode | dbs_description | | | | | | | | | | | | | | | | | | |