Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2e name space admin features cdap #5

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are we validating the preferences we set ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we are adding only the design time scenarios we will be adding the validation steps when the requirement for creation with end to end tests is planned . The scope was to create sanity test suite to start with these features . We are in connect with google team to define the future scope which will be added as end to end scenarios in this month .
As of now the plan was to create the feature and to check if the tests are passing when the integration is done with e2e FW .

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