diff --git a/cdap-e2e-tests/src/e2e-test/features/namespaceadmin/NameSpaceAdmin.feature b/cdap-e2e-tests/src/e2e-test/features/namespaceadmin/NameSpaceAdmin.feature new file mode 100644 index 000000000000..23a0aec66d80 --- /dev/null +++ b/cdap-e2e-tests/src/e2e-test/features/namespaceadmin/NameSpaceAdmin.feature @@ -0,0 +1,20 @@ +@Namespaceadmin +Feature: NameSpaceAdmin - Validate system admin page flow + + @Namespaceadmin + Scenario:Validate user is able to create new namespace preferences inside namespace admin + Given Open Datafusion Project to configure pipeline + Then Click on the Hamburger bar on the left panel + Then Click on NameSpace Admin link from the menu + Then Click "preferences" tab from Configuration page for "default" Namespace + Then Click on edit namespace preferences to set namespace preferences + Then Set system preferences with key: "keyValue" and value: "systemPreferences1" + Then Click on the Save & Close preferences button + + Scenario:Validate user is able to open compute profile page and select a provisioner + Given Open Datafusion Project to configure pipeline + Then Click on the Hamburger bar on the left panel + Then Click on NameSpace Admin link from the menu + Then Click on create profile button for "default" Namespace + Then Select a provisioner: "existingDataProc" for the compute profile + Then Click on close button of compute profile properties page \ No newline at end of file diff --git a/cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/TestRunner.java b/cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/TestRunner.java new file mode 100644 index 000000000000..321ada71a714 --- /dev/null +++ b/cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/TestRunner.java @@ -0,0 +1,37 @@ +/* + * Copyright © 2023 Cask Data, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package io.cdap.cdap.namespaceadmin.runners; + +import io.cucumber.junit.Cucumber; +import io.cucumber.junit.CucumberOptions; +import org.junit.runner.RunWith; + +/** + * Test Runner to execute nameSpace admin related test cases. + */ +@RunWith(Cucumber.class) +@CucumberOptions( + features = {"src/e2e-test/features"}, + glue = {"io.cdap.cdap.namespaceadmin.stepsdesign", "stepsdesign"}, + tags = {"@Namespaceadmin"}, + plugin = {"pretty", "html:target/cucumber-html-report/namespaceadmin", + "json:target/cucumber-reports/cucumber-namespaceadmin.json", + "junit:target/cucumber-reports/cucumber-namespaceadmin.xml"} +) +public class TestRunner { + +} \ No newline at end of file diff --git a/cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/package-info.java b/cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/package-info.java new file mode 100644 index 000000000000..b01dfbe1433b --- /dev/null +++ b/cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/package-info.java @@ -0,0 +1,20 @@ +/* + * Copyright © 2023 Cask Data, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +/** + * Package contains the runners for tethering features. + */ +package io.cdap.cdap.namespaceadmin.runners; diff --git a/cdap-e2e-tests/src/e2e-test/resources/pluginDataCyAttributes.properties b/cdap-e2e-tests/src/e2e-test/resources/pluginDataCyAttributes.properties new file mode 100644 index 000000000000..f46b82da3c7c --- /dev/null +++ b/cdap-e2e-tests/src/e2e-test/resources/pluginDataCyAttributes.properties @@ -0,0 +1,10 @@ +systemPreferences=system-prefs-accordion +keyValue=key-value-pair- +existingDataProc=provisioner-gcp-existing-dataproc +gcpDataProc=provisioner-gcp-dataproc +remoteHadoopProvisioner=provisioner-remote-hadoop +create=profile-create-btn +finish=wizard-finish-btn +next=wizard-next-btn +previous=wizard-previous-btn +amazonEMRProvisioner=provisioner-aws-emr \ No newline at end of file