forked from cdapio/cdap
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
550a8f3
commit 9bbfffc
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
cdap-e2e-tests/src/e2e-test/features/namespaceadmin/NameSpaceAdmin.feature
This file contains 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,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 |
37 changes: 37 additions & 0 deletions
37
cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/TestRunner.java
This file contains 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,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 { | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
cdap-e2e-tests/src/e2e-test/java/io/cdap/cdap/namespaceadmin/runners/package-info.java
This file contains 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,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; |
10 changes: 10 additions & 0 deletions
10
cdap-e2e-tests/src/e2e-test/resources/pluginDataCyAttributes.properties
This file contains 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,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 |