File tree Expand file tree Collapse file tree
cdap-e2e-tests/src/e2e-test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ And Click on Hub button
22+ And 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+ And Click on Hub button
29+ And Enter the text in search tab "invalidMessage"
30+ Then Verify that search displaying an error message: "invalid-message" on the header
Original file line number Diff line number Diff line change 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
20+ When Open Datafusion Project to configure pipeline
21+ And Click on Hub button
22+ And Click on "Plugins" option
23+ And Enter the text in search tab "Anaplan"
24+ And Click on "Anaplan plugins" plugin
25+ And Deploy the plugin
26+ And Select dropdown : "Filter" with option value: "Artifacts"
27+ And Enter the text in search tab in control center "Anaplan"
28+ Then Verify user can click on the delete icon of the plugin and plugin gets deleted successfully
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 1+ invalid-message =No entities found
Original file line number Diff line number Diff line change 1+ Filter =filter-dropdown
2+ Artifcats =Artifacts-input
Original file line number Diff line number Diff line change @@ -3,3 +3,8 @@ clientUrl=http://localhost:11011
33serverUrl =https://placeholder.com/api
44# command to generate token: gcloud auth print-access-token
55serverAccessToken =placeholder
6+ expectedPluginName =Anaplan
7+ expectedElement =HUB
8+ invalidMessage =sfts
9+ Artifacts =Artifacts-input
10+
You can’t perform that action at this time.
0 commit comments