|
| 1 | +# |
| 2 | +# Copyright © 2023 Cask Data, Inc. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | +# use this file except in compliance with the License. You may obtain a copy of |
| 6 | +# the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | +# License for the specific language governing permissions and limitations under |
| 14 | +# the License. |
| 15 | +# |
| 16 | +@Namespaceadmin |
| 17 | +Feature: NameSpaceAdmin - Validate nameSpace admin design time scenarios |
| 18 | + |
| 19 | + @Namespaceadmin |
| 20 | + Scenario:Verify user is able to click on the namespace admin tab and successfully navigates to the page |
| 21 | + Given Open Datafusion Project to configure pipeline |
| 22 | + When Click on the Hamburger bar on the left panel |
| 23 | + Then Click on NameSpace Admin link from the menu |
| 24 | + Then Verify if user successfully navigated to namespace admin page |
| 25 | + |
| 26 | + @Namespaceadmin |
| 27 | + Scenario:Validate user is able to open compute profile page and create a profile for selected a provisioner |
| 28 | + Given Open Datafusion Project to configure pipeline |
| 29 | + Then Click on the Hamburger bar on the left panel |
| 30 | + Then Click on NameSpace Admin link from the menu |
| 31 | + Then Click on create profile button for "default" Namespace |
| 32 | + Then Select a provisioner: "remoteHadoopProvisioner" for the compute profile |
| 33 | + Then Verify the Create a Profile page is loaded for selected provisioner |
| 34 | + Then Enter input plugin property: "profileLabel" with value: "validProfile" |
| 35 | + Then Enter textarea plugin property: "profileDescription" with value: "validDescription" |
| 36 | + Then Enter input plugin property: "host" with value: "testHost" |
| 37 | + Then Enter input plugin property: "user" with value: "testUser" |
| 38 | + Then Enter textarea plugin property: "sshKey" with value: "testSSHKey" |
| 39 | + Then Click on: "Create" button in the properties |
| 40 | + Then Verify the created compute profile: "validProfile" is displayed in system compute profile list |
| 41 | + |
| 42 | + |
| 43 | + @Namespaceadmin |
| 44 | + Scenario: Validate user is able to create new namespace preferences and able to delete the added namespace preferences successfully |
| 45 | + Given Open Datafusion Project to configure pipeline |
| 46 | + Then Click on the Hamburger bar on the left panel |
| 47 | + Then Click on NameSpace Admin link from the menu |
| 48 | + Then Click "preferences" tab from Configuration page for "default" Namespace |
| 49 | + Then Click on edit namespace preferences to set namespace preferences |
| 50 | + Then Set namespace preferences with key: "keyValue" and value: "nameSpacePreferences1" |
| 51 | + Then Click on the Save & Close preferences button |
| 52 | + Then Click on edit namespace preferences to set namespace preferences |
| 53 | + Then Delete the preferences |
| 54 | + Then Click on the Save & Close preferences button |
| 55 | + |
| 56 | + Scenario: Validate user is able to add multiple namespace preferences inside namespace admin successfully |
| 57 | + Given Open Datafusion Project to configure pipeline |
| 58 | + Then Click on the Hamburger bar on the left panel |
| 59 | + Then Click on NameSpace Admin link from the menu |
| 60 | + Then Click "preferences" tab from Configuration page for "default" Namespace |
| 61 | + Then Click on edit namespace preferences to set namespace preferences |
| 62 | + Then Set namespace preferences with key: "keyValue" and value: "nameSpacePreferences2" |
| 63 | + Then Click on the Save & Close preferences button |
| 64 | + Then Click on edit namespace preferences to set namespace preferences |
| 65 | + Then Delete the preferences |
| 66 | + Then Delete the preferences |
| 67 | + Then Click on the Save & Close preferences button |
| 68 | + |
| 69 | + Scenario: Validate user is able reset the namespace preferences added inside namespace admin successfully |
| 70 | + Given Open Datafusion Project to configure pipeline |
| 71 | + Then Click on the Hamburger bar on the left panel |
| 72 | + Then Click on NameSpace Admin link from the menu |
| 73 | + Then Click "preferences" tab from Configuration page for "default" Namespace |
| 74 | + Then Click on edit namespace preferences to set namespace preferences |
| 75 | + Then Set namespace preferences with key: "keyValue" and value: "nameSpacePreferences1" |
| 76 | + Then Reset the preferences |
| 77 | + Then Verify the reset is successful for added preferences |
| 78 | + |
| 79 | + Scenario: To verify the validation error message with invalid cluster name |
| 80 | + Given Open Datafusion Project to configure pipeline |
| 81 | + Then Click on the Hamburger bar on the left panel |
| 82 | + Then Click on NameSpace Admin link from the menu |
| 83 | + Then Click on create profile button for "default" Namespace |
| 84 | + Then Select a provisioner: "existingDataProc" for the compute profile |
| 85 | + Then Enter input plugin property: "profileLabel" with value: "validProfile" |
| 86 | + Then Enter textarea plugin property: "profileDescription" with value: "validDescription" |
| 87 | + Then Enter input plugin property: "clusterName" with value: "invalidClusterName" |
| 88 | + Then Click on: "Create" button in the properties |
| 89 | + Then Verify that the compute profile is displaying an error message: "errorInvalidClusterName" on the footer |
| 90 | + |
| 91 | + Scenario:To verify the validation error message with invalid profile name |
| 92 | + Given Open Datafusion Project to configure pipeline |
| 93 | + Then Click on the Hamburger bar on the left panel |
| 94 | + Then Click on NameSpace Admin link from the menu |
| 95 | + Then Click on create profile button for "default" Namespace |
| 96 | + Then Select a provisioner: "existingDataProc" for the compute profile |
| 97 | + Then Enter input plugin property: "profileLabel" with value: "invalidProfile" |
| 98 | + Then Enter textarea plugin property: "profileDescription" with value: "validDescription" |
| 99 | + Then Enter input plugin property: "clusterName" with value: "validClusterName" |
| 100 | + Then Click on: "Create" button in the properties |
| 101 | + Then Verify that the compute profile is displaying an error message: "errorInvalidProfileName" on the footer |
| 102 | + |
| 103 | + Scenario:To verify the validation error message with invalid namespace name |
| 104 | + Given Open Datafusion Project to configure pipeline |
| 105 | + Then Click on the Hamburger bar on the left panel |
| 106 | + Then Click on Namespace dropdown button |
| 107 | + Then Click on the Add Namespace tab |
| 108 | + Then Enter the New Namespace Name with value: "invalidNamespaceName" |
| 109 | + Then Enter the Namespace Description with value: "validNamespaceDescription" |
| 110 | + Then Click on: "Finish" button in the properties |
| 111 | + Then Verify the failed error message: "errorInvalidNamespace" displayed on dialog box |
| 112 | + |
| 113 | + Scenario: Validate user is able to create new namespace from hamburger menu and switch to newly created namespace |
| 114 | + Given Open Datafusion Project to configure pipeline |
| 115 | + Then Click on the Hamburger bar on the left panel |
| 116 | + Then Click on Namespace dropdown button |
| 117 | + Then Click on the Add Namespace tab |
| 118 | + Then Enter the New Namespace Name with value: "validNamespaceName" |
| 119 | + Then Enter the Namespace Description with value: "validNamespaceDescription" |
| 120 | + Then Click on: "Finish" button in the properties |
| 121 | + Then Switch to the newly created Namespace |
| 122 | + Then Click on the Hamburger bar on the left panel |
| 123 | + Then Verify the namespace is switched to "validNamespaceName" successfully |
0 commit comments