Skip to content

Commit

Permalink
Fixing e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatgulati committed Aug 3, 2023
1 parent 315c44c commit 7907e40
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ Feature: ServiceNow Multi Source - Design time validation scenarios
And Click on the Validate button
Then Verify mandatory property error for below listed properties:
| referenceName |
| clientId |
| clientSecret |
| restApiEndpoint |
| user |
| password |

@TS-SN-MULTI-DSGN-ERROR-02
Scenario: Verify validation message for invalid table name
Expand All @@ -41,7 +36,7 @@ Feature: ServiceNow Multi Source - Design time validation scenarios
| INVALID_TABLE |
And fill Credentials section for pipeline user
And Click on the Validate button
Then Verify that the Plugin is displaying an error message: "invalid.property.tablename" on the header
Then Verify that the Plugin Property: "tableNames" is displaying an in-line error message: "invalid.property.tablename"

@TS-SN-MULTI-DSGN-ERROR-03
Scenario: Verify validation message for Start date and End date in invalid format
Expand Down
2 changes: 1 addition & 1 deletion src/e2e-test/features/servicenowsink/DesignTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@ServiceNow
@SNSink
@Smoke
@Regression
@RegressionSkip
Feature: ServiceNow Sink - Design time scenarios

@TS-SN-DSGN-SINK-01 @BQ_SOURCE_TEST_RECEIVING_SLIP_LINE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@ServiceNow
@SNSink
@Smoke
@Regression
@RegressionSkip
Feature: ServiceNow Sink - Design time validation scenarios

@TS-SN-DSGN-SINK-ERROR-01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@ServiceNow
@SNSink
@Smoke
@@Regression
@@RegressionSkip
Feature: ServiceNow Sink - Design time validation scenarios (macro)

@TS-SN-DSGN-SINK-MACRO-01 @BQ_SOURCE_TEST_RECEIVING_SLIP_LINE
Expand Down
2 changes: 1 addition & 1 deletion src/e2e-test/features/servicenowsink/RunTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@ServiceNow
@SNSink
@Smoke
@Regression
@RegressionSkip
Feature: ServiceNow Sink - Run time scenarios

@TS-SN-RNTM-SINK-01 @BQ_SOURCE_TEST_RECEIVING_SLIP_LINE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@ServiceNow
@SNSink
@Smoke
@Regression
@RegressionSkip
Feature: ServiceNow Sink - Run time scenarios (macro)

@TS-SN-RNTM-SINK-MACRO-01 @BQ_SOURCE_TEST_RECEIVING_SLIP_LINE @BQ_SINK_CLEANUP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ Feature: ServiceNow Source - Design time validation scenarios
And Click on the Validate button
Then Verify mandatory property error for below listed properties:
| referenceName |
| clientId |
| clientSecret |
| restApiEndpoint |
| user |
| password |

@TS-SN-DSGN-ERROR-02
Scenario: Verify invalid credentials validation messages
Expand Down
18 changes: 9 additions & 9 deletions src/e2e-test/resources/pluginParameters.properties
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ UPDATE=update
pagesize=200

##ExpectedSchemaJSONs
schema.table.receiving.slip.line=[{"key":"cost","value":"string"},{"key":"quantity","value":"string"},\
{"key":"purchase_line","value":"string"},{"key":"sys_mod_count","value":"string"},\
{"key":"received","value":"string"},{"key":"requested_for","value":"string"},\
{"key":"sys_updated_on","value":"string"},{"key":"sys_tags","value":"string"},{"key":"number","value":"string"},\
schema.table.receiving.slip.line=[{"key":"quantity","value":"int"},{"key":"cost","value":"string"}\
{"key":"purchase_line","value":"string"},{"key":"sys_mod_count","value":"int"},\
{"key":"received","value":"datetime"},{"key":"requested_for","value":"string"},\
{"key":"sys_updated_on","value":"datetime"},{"key":"sys_tags","value":"string"},{"key":"number","value":"string"},\
{"key":"sys_id","value":"string"},{"key":"received_by","value":"string"},{"key":"sys_updated_by","value":"string"},\
{"key":"receiving_slip","value":"string"},{"key":"sys_created_on","value":"string"},\
{"key":"receiving_slip","value":"string"},{"key":"sys_created_on","value":"datetime"},\
{"key":"sys_domain","value":"string"},{"key":"sys_created_by","value":"string"}]

schema.table.asset.covered=[{"key":"added","value":"string"},{"key":"contract","value":"string"},\
{"key":"sys_mod_count","value":"string"},{"key":"sys_updated_on","value":"string"},\
schema.table.asset.covered=[{"key":"added","value":"date"},{"key":"contract","value":"string"},\
{"key":"sys_mod_count","value":"int"},{"key":"sys_updated_on","value":"string"},\
{"key":"sys_domain_path","value":"string"},{"key":"sys_tags","value":"string"},\
{"key":"sys_id","value":"string"},{"key":"sys_updated_by","value":"string"},{"key":"removed","value":"string"},\
{"key":"sys_created_on","value":"string"},{"key":"sys_domain","value":"string"},{"key":"asset","value":"string"},\
{"key":"sys_id","value":"string"},{"key":"sys_updated_by","value":"string"},{"key":"removed","value":"date"},\
{"key":"sys_created_on","value":"datetime"},{"key":"sys_domain","value":"string"},{"key":"asset","value":"string"},\
{"key":"sys_created_by","value":"string"}]

schema.table.condition=[{"key":"condition_check","value":"string"},{"key":"sys_mod_count","value":"string"},\
Expand Down

0 comments on commit 7907e40

Please sign in to comment.