Skip to content

Commit 5457eec

Browse files
committed
Features for hub
1 parent 6eb7ee0 commit 5457eec

7 files changed

Lines changed: 129 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright © 2023 Cask Data, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4+
# use this file except in compliance with the License. You may obtain a copy of
5+
# the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+
# License for the specific language governing permissions and limitations under
13+
# the License.
14+
15+
@Hub
16+
Feature: Hub - Design time scenarios
17+
18+
@TS-HUB-DESIGN-01
19+
Scenario: Verify that the user is able to successfully navigate to the Hub page
20+
When Open Datafusion Project to configure pipeline
21+
Then Click on Hub Menu
22+
Then Verify that user is navigated to hub page successfully
23+
Then Click on close button
24+
25+
@TS-HUB-DESIGN-02
26+
Scenario: Verify that the user is getting an error message for an invalid search
27+
When Open Datafusion Project to configure pipeline
28+
Then Click on Hub Menu
29+
Then Enter the text in search tab "invalidMessage"
30+
Then Verify that user is getting an error message: "invalid.message_hub"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright © 2023 Cask Data, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4+
# use this file except in compliance with the License. You may obtain a copy of
5+
# the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+
# License for the specific language governing permissions and limitations under
13+
# the License.
14+
15+
@Hub
16+
Feature: Hub - Run time scenarios
17+
18+
@TS-HUB-RNTM-01
19+
Scenario: Verify that the user is able to deploy a plugin from Hub and then delete it successfully
20+
When Open Datafusion Project to configure pipeline
21+
Then Click on Hub Menu
22+
Then Click on "Plugins" option
23+
Then Enter the text in search tab "Anaplan"
24+
Then Click on "Anaplan plugins" plugin
25+
Then Deploy the plugin
26+
Then Click on "Go to homepage" button
27+
Then Verify that "Anaplan" plugin is successfully deployed
28+
Then Enter the text in search tab "anaplan" in control center
29+
Then Select dropdown : "Filter" with option value: "Artifacts" in control center
30+
Then Click on delete button to delete the plugin
31+
Then Verify that plugin is successfully deleted
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright © 2023 Cask Data, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
17+
package io.cdap.cdap.hub;
18+
19+
import io.cucumber.junit.Cucumber;
20+
import io.cucumber.junit.CucumberOptions;
21+
import org.junit.runner.RunWith;
22+
23+
/**
24+
* Test Runner to execute Hub related test cases.
25+
*/
26+
@RunWith(Cucumber.class)
27+
@CucumberOptions(
28+
features = {"src/e2e-test/features"},
29+
glue = {},
30+
tags = {"@Hub"},
31+
plugin = {"pretty", "html:target/cucumber-html-report/hub",
32+
"json:target/cucumber-reports/cucumber-hub.json",
33+
"junit:target/cucumber-reports/cucumber-hub.xml"}
34+
)
35+
public class TestRunner {
36+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright © 2023 Cask Data, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
17+
/**
18+
* Package contains the runners for Hub features.
19+
*/
20+
package io.cdap.cdap.hub;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
invalid.message_hub=No entities found
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Filter=filter-dropdown
2+
Artifcats=Artifacts-input
3+
Anaplan=anaplan-plugins

cdap-e2e-tests/src/e2e-test/resources/pluginParameters.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ clientUrl=http://localhost:11011
33
serverUrl=https://placeholder.com/api
44
# command to generate token: gcloud auth print-access-token
55
serverAccessToken=placeholder
6+
7+
## HUB-PROPERTIES-START
8+
expectedPluginName=Anaplan
9+
expectedElement=HUB
10+
invalidMessage_hub=sfts
11+
Artifacts=Artifacts-input
12+
## HUB-PROPERTIES-END
13+

0 commit comments

Comments
 (0)