Skip to content

Commit

Permalink
review comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldash171 committed Oct 9, 2023
1 parent 550a8f3 commit 9bbfffc
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
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
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 {

}
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;
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

0 comments on commit 9bbfffc

Please sign in to comment.