forked from cdapio/cdap
-
Notifications
You must be signed in to change notification settings - Fork 3
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
rahuldash171
wants to merge
1
commit into
develop
Choose a base branch
from
e2eNameSpaceAdmin
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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 .