Feature: 0107 - Pay as you go
Description: In order to use payg
As admin user
I want to list available ssh connections and add or remove them
File name: srv_payg_ssh_connection.feature
Relative path: secondary/srv_payg_ssh_connection.feature
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.229
And
I click on "Add PAYG Connection"
00:00:00.363
And
I enter "My Instance" as "description"
00:00:00.101
And
I enter "my-host.local" as "host"
00:00:00.097
And
I enter "root" as "username"
00:00:00.062
And
I click on "Create"
00:00:00.071
Then
I should see a "PAYG my-host.local created successfully" text
00:00:00.600
And
I should see a "My Instance" text in element "Info-panel-wrapper"
00:00:00.021
And
I should see a "my-host.local" text in element "Instance-panel-wrapper"
00:00:00.024
And
I should see a "root" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should see a "Delete" button
00:00:00.022
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.075
And
I click on "Add PAYG Connection"
00:00:00.416
And
I enter "My Full Instance" as "description"
00:00:00.100
And
I enter "my-host-full.local" as "host"
00:00:00.107
And
I enter "21" as "port"
00:00:00.055
And
I enter "rootFull" as "username"
00:00:00.070
And
I enter "passwordFull" as "password"
00:00:00.082
And
I enter "keyFull" as "key"
00:00:00.074
And
I enter "keyPasswordFull" as "key_password"
00:00:00.097
And
I enter "my-bastion.local" as "bastion_host"
00:00:00.099
And
I enter "22" as "bastion_port"
00:00:00.057
And
I enter "b_rootFull" as "bastion_username"
00:00:00.082
And
I enter "b_passwordFull" as "bastion_password"
00:00:00.091
And
I enter "b_keyFull" as "bastion_key"
00:00:00.085
And
I enter "b_keyPasswordFull" as "bastion_key_password"
00:00:00.103
And
I click on "Create"
00:00:00.058
Then
I should see a "PAYG my-host-full.local created successfully" text
00:00:01.014
And
I should see a "My Full Instance" text in element "Info-panel-wrapper"
00:00:00.018
And
I should see a "my-host-full.local" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should see a "21" text in element "Instance-panel-wrapper"
00:00:00.020
And
I should see a "rootFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should not see a "passwordFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should not see a "keyFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should not see a "keyPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should see a "my-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.022
And
I should see a "22" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should see a "b_rootFull" text in element "Bastion-panel-wrapper"
00:00:00.019
And
I should not see a "b_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.019
And
I should not see a "b_keyFull" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should not see a "b_keyPasswordFull" text in element "Bastion-panel-wrapper"
00:00:00.019
And
I should see a "Delete" button
00:00:00.018
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.077
Then
I should see a "my-host.local" link
00:00:00.016
And
I should see a "My Instance" text
00:00:00.070
And
I should see a "my-host-full.local" link
00:00:00.012
And
I should see a "My Full Instance" text
00:00:00.072
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.074
And
I follow "my-host-full.local"
00:00:00.539
And
I click on "Edit Information"
00:00:00.074
And
I enter "My new Full Instance" as "description"
00:00:00.113
And
I click on "Save" in "Information" modal
00:00:00.563
Then
I should see a "PAYG properties updated successfully" text
00:00:00.076
And
I should see a "My new Full Instance" text in element "Info-panel-wrapper"
00:00:00.018
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.076
And
I follow "my-host-full.local"
00:00:00.471
And
I click on "Edit Instance"
00:00:00.070
And
I enter "221" as "port"
00:00:00.060
And
I enter "NewRootFull" as "username"
00:00:00.102
And
I enter "NewPasswordFull" as "password"
00:00:00.092
And
I enter "newKeyFull" as "key"
00:00:00.081
And
I enter "newKeyPasswordFull" as "key_password"
00:00:00.095
And
I click on "Save" in "Instance SSH connection" modal
00:00:00.699
Then
I should see a "PAYG properties updated successfully" text
00:00:00.073
And
I should see a "221" text in element "Instance-panel-wrapper"
00:00:00.020
And
I should see a "NewRootFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should not see a "NewPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should not see a "newKeyFull" text in element "Instance-panel-wrapper"
00:00:00.019
And
I should not see a "newKeyPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.018
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.076
And
I follow "my-host-full.local"
00:00:00.401
And
I click on "Edit Bastion"
00:00:00.070
And
I enter "my-new-bastion.local" as "bastion_host"
00:00:00.141
And
I enter "222" as "bastion_port"
00:00:00.064
And
I enter "b_new_rootFull" as "bastion_username"
00:00:00.109
And
I enter "b_new_passwordFull" as "bastion_password"
00:00:00.094
And
I enter "b_new_keyFull" as "bastion_key"
00:00:00.093
And
I enter "b_new_keyPasswordFull" as "bastion_key_password"
00:00:00.102
And
I click on "Save" in "Bastion SSH connection" modal
00:00:00.457
Then
I should see a "PAYG properties updated successfully" text
00:00:00.074
And
I should see a "my-new-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should see a "222" text in element "Bastion-panel-wrapper"
00:00:00.019
And
I should see a "b_new_rootFull" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should not see a "b_new_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.018
And
I should not see a "b_new_keyFull" text in element "Bastion-panel-wrapper"
00:00:00.018
And
I should not see a "b_new_keyPasswordFull" text in element "Bastion-panel-wrapper"
00:00:00.020
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.075
And
I follow "my-host.local"
00:00:00.406
And
I click on "Delete"
00:00:00.074
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.106
Then
I should not see a "my-host.local" link
00:00:00.005
And
I should not see a "my-host.local" text
00:00:00.223
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.077
And
I follow "my-host-full.local"
00:00:00.400
And
I click on "Delete"
00:00:00.064
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.096
Then
I should not see a "my-bastion.local" link
00:00:00.008
And
I should not see a "my-host.local" text
00:00:00.071