This repository was archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
e2e test scenarios DateTransform #15
Open
Swati10-11
wants to merge
1
commit into
data-integrations:develop
Choose a base branch
from
Swati10-11:e2e-tests
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
src/e2e-test/features/datetransformplugin/DateTransformErrorScenarios.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| @DateTransform | ||
| Feature:DateTransform - Verify DateTransform Plugin Error scenarios | ||
|
|
||
| @BQ_SOURCE_DATETRANSFORM_TEST | ||
| Scenario:Verify DateTransform plugin validation errors for mandatory fields | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Select plugin: "BigQuery" from the plugins list as: "Source" | ||
| When Expand Plugin group in the LHS plugins list: "Transform" | ||
| When Select plugin: "Date Transform" from the plugins list as: "Transform" | ||
| Then Connect plugins: "BigQuery" and "DateTransform" to establish connection | ||
| Then Navigate to the properties page of plugin: "BigQuery" | ||
| Then Replace input plugin property: "projectId" with value: "projectId" | ||
| Then Enter input plugin property: "datasetProjectId" with value: "projectId" | ||
| Then Enter input plugin property: "referenceName" with value: "BQReferenceName" | ||
| Then Enter input plugin property: "dataset" with value: "dataset" | ||
| Then Enter input plugin property: "table" with value: "bqSourceTable" | ||
| Then Click on the Get Schema button | ||
| Then Capture the generated Output Schema | ||
| Then Validate "BigQuery" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Navigate to the properties page of plugin: "DateTransform" | ||
| Then Click on the Validate button | ||
| Then Verify mandatory property error for below listed properties: | ||
| | sourceField | | ||
| | targetField | | ||
|
|
||
| @BQ_SOURCE_DATETRANSFORM_TEST | ||
| Scenario:Verify DateTransform plugin error for invalid Source Field Name | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Select plugin: "BigQuery" from the plugins list as: "Source" | ||
| When Expand Plugin group in the LHS plugins list: "Transform" | ||
| When Select plugin: "Date Transform" from the plugins list as: "Transform" | ||
| Then Connect plugins: "BigQuery" and "DateTransform" to establish connection | ||
| Then Navigate to the properties page of plugin: "BigQuery" | ||
| Then Replace input plugin property: "projectId" with value: "projectId" | ||
| Then Enter input plugin property: "datasetProjectId" with value: "projectId" | ||
| Then Enter input plugin property: "referenceName" with value: "BQReferenceName" | ||
| Then Enter input plugin property: "dataset" with value: "dataset" | ||
| Then Enter input plugin property: "table" with value: "bqSourceTable" | ||
| Then Click on the Get Schema button | ||
| Then Capture the generated Output Schema | ||
| Then Validate "BigQuery" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Navigate to the properties page of plugin: "DateTransform" | ||
| Then Enter input plugin property: "sourceFieldName" with value: "dateTransform.IncorrectFieldName" | ||
| Then Enter input plugin property: "targetFieldName" with value: "dateTransform.TargetFieldName" | ||
| Then Click on the Validate button | ||
| Then Verify that the Plugin is displaying an error message: "errorMessageDateTransformInvalidSourceFieldName" on the header | ||
|
|
||
| @BQ_SOURCE_DATETRANSFORM_TEST | ||
| Scenario:Verify DateTransform plugin error for invalid Target Field Name | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Select plugin: "BigQuery" from the plugins list as: "Source" | ||
| When Expand Plugin group in the LHS plugins list: "Transform" | ||
| When Select plugin: "Date Transform" from the plugins list as: "Transform" | ||
| Then Connect plugins: "BigQuery" and "DateTransform" to establish connection | ||
| Then Navigate to the properties page of plugin: "BigQuery" | ||
| Then Replace input plugin property: "projectId" with value: "projectId" | ||
| Then Enter input plugin property: "datasetProjectId" with value: "projectId" | ||
| Then Enter input plugin property: "referenceName" with value: "BQReferenceName" | ||
| Then Enter input plugin property: "dataset" with value: "dataset" | ||
| Then Enter input plugin property: "table" with value: "bqSourceTable" | ||
| Then Click on the Get Schema button | ||
| Then Capture the generated Output Schema | ||
| Then Validate "BigQuery" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Navigate to the properties page of plugin: "DateTransform" | ||
| Then Enter input plugin property: "sourceFieldName" with value: "dateTransform.SourceFieldName" | ||
| Then Enter input plugin property: "targetFieldName" with value: "dateTransform.IncorrectFieldName" | ||
| Then Click on the Validate button | ||
| Then Verify that the Plugin is displaying an error message: "errorMessageDateTransformInvalidTargetFieldName" on the header | ||
|
|
||
| @BQ_SOURCE_DATETRANSFORM_TEST | ||
| Scenario:Verify DateTransform plugin error for Source and Target field must have same number of fields | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Select plugin: "BigQuery" from the plugins list as: "Source" | ||
| When Expand Plugin group in the LHS plugins list: "Transform" | ||
| When Select plugin: "Date Transform" from the plugins list as: "Transform" | ||
| Then Connect plugins: "BigQuery" and "DateTransform" to establish connection | ||
| Then Navigate to the properties page of plugin: "BigQuery" | ||
| Then Replace input plugin property: "projectId" with value: "projectId" | ||
| Then Enter input plugin property: "datasetProjectId" with value: "projectId" | ||
| Then Enter input plugin property: "referenceName" with value: "BQReferenceName" | ||
| Then Enter input plugin property: "dataset" with value: "dataset" | ||
| Then Enter input plugin property: "table" with value: "bqSourceTable" | ||
| Then Click on the Get Schema button | ||
| Then Capture the generated Output Schema | ||
| Then Validate "BigQuery" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Navigate to the properties page of plugin: "DateTransform" | ||
| Then Enter input plugin property: "sourceFieldName" with value: "dateTransform.SourceFieldNames" | ||
| Then Enter input plugin property: "targetFieldName" with value: "dateTransform.TargetFieldName" | ||
| Then Click on the Validate button | ||
| Then Verify that the Plugin is displaying an error message: "errorMessageDateTransformMustHaveSameNumberOfFields" on the header | ||
|
|
||
| @BQ_SOURCE_DATETRANSFORM_TEST | ||
| Scenario:Verify DateTransform plugin error for No Input Schema available | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Expand Plugin group in the LHS plugins list: "Transform" | ||
| When Select plugin: "Date Transform" from the plugins list as: "Transform" | ||
| Then Navigate to the properties page of plugin: "DateTransform" | ||
| Then Enter input plugin property: "sourceFieldName" with value: "dateTransform.SourceFieldName" | ||
| Then Enter input plugin property: "targetFieldName" with value: "dateTransform.TargetFieldName" | ||
| Then Click on the Validate button | ||
| Then Verify that the Plugin is displaying an error message: "errorMessageDateTransformForInputSchema" on the header |
65 changes: 65 additions & 0 deletions
65
src/e2e-test/features/datetransformplugin/DateTransformMacros.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| @DateTransform | ||
| Feature:DateTransform - Verification of DateTransform pipeline with BigQuery as source and target using macros | ||
|
|
||
| @BQ_SINK_TEST @BQ_SOURCE_DATETRANSFORM_TEST @PLUGIN-1224 | ||
| Scenario: To verify data is getting transferred from BigQuery to BigQuery successfully with DateTransform plugin properties as macro arguments | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Select plugin: "BigQuery" from the plugins list as: "Source" | ||
| When Expand Plugin group in the LHS plugins list: "Transform" | ||
| When Select plugin: "Date Transform" from the plugins list as: "Transform" | ||
| Then Connect plugins: "BigQuery" and "DateTransform" to establish connection | ||
| Then Navigate to the properties page of plugin: "BigQuery" | ||
| Then Replace input plugin property: "projectId" with value: "projectId" | ||
| Then Enter input plugin property: "datasetProjectId" with value: "projectId" | ||
| Then Enter input plugin property: "referenceName" with value: "BQReferenceName" | ||
| Then Enter input plugin property: "dataset" with value: "dataset" | ||
| Then Enter input plugin property: "table" with value: "bqSourceTable" | ||
| Then Click on the Get Schema button | ||
| Then Capture the generated Output Schema | ||
| Then Validate "BigQuery" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Navigate to the properties page of plugin: "DateTransform" | ||
| Then Click on the Macro button of Property: "SourceFieldName" and set the value to: "dateTransform.SourceFieldName" | ||
| Then Click on the Macro button of Property: "SourceFieldDateFormat" and set the value to: "dateTransform.SourceFieldDateFormat" | ||
| Then Click on the Macro button of Property: "TargetFieldName" and set the value to: "dateTransform.TargetFieldName" | ||
| Then Click on the Macro button of Property: "TargetFieldDateFormat" and set the value to: "dateTransform.TargetFieldDateFormat" | ||
| Then Validate "Date Transform" plugin properties | ||
| Then Close the Plugin Properties page | ||
| When Expand Plugin group in the LHS plugins list: "Sink" | ||
| When Select plugin: "BigQuery" from the plugins list as: "Sink" | ||
| Then Connect plugins: "DateTransform" and "BigQuery2" to establish connection | ||
| Then Navigate to the properties page of plugin: "BigQuery2" | ||
| Then Replace input plugin property: "projectId" with value: "projectId" | ||
| Then Enter input plugin property: "datasetProjectId" with value: "projectId" | ||
| Then Enter input plugin property: "referenceName" with value: "BQReferenceName" | ||
| Then Enter input plugin property: "dataset" with value: "dataset" | ||
| Then Enter input plugin property: "table" with value: "bqTargetTable" | ||
| Then Validate "BigQuery2" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Save the pipeline | ||
| Then Preview and run the pipeline | ||
| Then Enter runtime argument value "SourceFieldName" for key "dateTransform.SourceFieldName" | ||
| Then Enter runtime argument value "SourceFieldDateFormat" for key "dateTransform.SourceFieldDateFormat" | ||
| Then Enter runtime argument value "TargetFieldName" for key "dateTransform.TargetFieldName" | ||
| Then Enter runtime argument value "TargetFieldDateFormat" for key "dateTransform.TargetFieldDateFormat" | ||
| Then Run the preview of pipeline with runtime arguments | ||
| Then Wait till pipeline preview is in running state | ||
| Then Open and capture pipeline preview logs | ||
| Then Verify the preview run status of pipeline in the logs is "succeeded" | ||
| Then Close the pipeline logs | ||
| Then Click on the Preview Data link on the Sink plugin node: "BigQueryTable" | ||
| Then Verify sink plugin's Preview Data for Input Records table and the Input Schema matches the Output Schema of Source plugin | ||
| Then Close the preview data | ||
| Then Deploy the pipeline | ||
| Then Run the Pipeline in Runtime | ||
| Then Enter runtime argument value "SourceFieldName" for key "dateTransform.SourceFieldName" | ||
| Then Enter runtime argument value "SourceFieldDateFormat" for key "dateTransform.SourceFieldDateFormat" | ||
| Then Enter runtime argument value "TargetFieldName" for key "dateTransform.TargetFieldName" | ||
| Then Enter runtime argument value "TargetFieldDateFormat" for key "dateTransform.TargetFieldDateFormat" | ||
| Then Run the Pipeline in Runtime with runtime arguments | ||
| Then Wait till pipeline is in running state | ||
| Then Open and capture logs | ||
| Then Verify the pipeline status is "Succeeded" | ||
| Then Close the pipeline logs | ||
| Then Validate OUT record count is equal to IN record count | ||
| Then Validate dateFormat "dateTransform.TargetFieldDateFormat" of the fields "dateTransform.TargetFieldName" in target BQ table "bqTargetTable" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is guava version bumped?