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.245
And
I click on "Add PAYG Connection"
00:00:00.364
And
I enter "My Instance" as "description"
00:00:00.105
And
I enter "my-host.local" as "host"
00:00:00.103
And
I enter "root" as "username"
00:00:00.064
And
I click on "Create"
00:00:00.079
Then
I should see a "PAYG my-host.local created successfully" text
00:00:01.706
And
I should see a "My Instance" text in element "Info-panel-wrapper"
00:00:00.023
And
I should see a "my-host.local" text in element "Instance-panel-wrapper"
00:00:00.025
And
I should see a "root" text in element "Instance-panel-wrapper"
00:00:00.022
And
I should see a "Delete" button
00:00:00.023
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.086
And
I click on "Add PAYG Connection"
00:00:00.409
And
I enter "My Full Instance" as "description"
00:00:00.107
And
I enter "my-host-full.local" as "host"
00:00:00.116
And
I enter "21" as "port"
00:00:00.063
And
I enter "rootFull" as "username"
00:00:00.077
And
I enter "passwordFull" as "password"
00:00:00.087
And
I enter "keyFull" as "key"
00:00:00.078
And
I enter "keyPasswordFull" as "key_password"
00:00:00.110
And
I enter "my-bastion.local" as "bastion_host"
00:00:00.104
And
I enter "22" as "bastion_port"
00:00:00.059
And
I enter "b_rootFull" as "bastion_username"
00:00:00.086
And
I enter "b_passwordFull" as "bastion_password"
00:00:00.101
And
I enter "b_keyFull" as "bastion_key"
00:00:00.088
And
I enter "b_keyPasswordFull" as "bastion_key_password"
00:00:00.105
And
I click on "Create"
00:00:00.073
Then
I should see a "PAYG my-host-full.local created successfully" text
00:00:00.937
And
I should see a "My Full Instance" text in element "Info-panel-wrapper"
00:00:00.019
And
I should see a "my-host-full.local" text in element "Instance-panel-wrapper"
00:00:00.021
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.020
And
I should not see a "passwordFull" text in element "Instance-panel-wrapper"
00:00:00.020
And
I should not see a "keyFull" text in element "Instance-panel-wrapper"
00:00:00.020
And
I should not see a "keyPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.021
And
I should see a "my-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.026
And
I should see a "22" text in element "Bastion-panel-wrapper"
00:00:00.022
And
I should see a "b_rootFull" text in element "Bastion-panel-wrapper"
00:00:00.021
And
I should not see a "b_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.022
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.022
And
I should see a "Delete" button
00:00:00.019
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.086
Then
I should see a "my-host.local" link
00:00:00.012
And
I should see a "My Instance" text
00:00:00.071
And
I should see a "my-host-full.local" link
00:00:00.013
And
I should see a "My Full Instance" text
00:00:00.069
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.078
And
I follow "my-host-full.local"
00:00:00.427
And
I click on "Edit Information"
00:00:00.076
And
I enter "My new Full Instance" as "description"
00:00:00.127
And
I click on "Save" in "Information" modal
00:00:01.183
Then
I should see a "PAYG properties updated successfully" text
00:00:00.080
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.083
And
I follow "my-host-full.local"
00:00:00.439
And
I click on "Edit Instance"
00:00:00.073
And
I enter "221" as "port"
00:00:00.065
And
I enter "NewRootFull" as "username"
00:00:00.108
And
I enter "NewPasswordFull" as "password"
00:00:00.094
And
I enter "newKeyFull" as "key"
00:00:00.099
And
I enter "newKeyPasswordFull" as "key_password"
00:00:00.103
And
I click on "Save" in "Instance SSH connection" modal
00:00:00.745
Then
I should see a "PAYG properties updated successfully" text
00:00:00.076
And
I should see a "221" text in element "Instance-panel-wrapper"
00:00:00.021
And
I should see a "NewRootFull" text in element "Instance-panel-wrapper"
00:00:00.022
And
I should not see a "NewPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.021
And
I should not see a "newKeyFull" text in element "Instance-panel-wrapper"
00:00:00.020
And
I should not see a "newKeyPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.021
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.083
And
I follow "my-host-full.local"
00:00:00.411
And
I click on "Edit Bastion"
00:00:00.073
And
I enter "my-new-bastion.local" as "bastion_host"
00:00:00.168
And
I enter "222" as "bastion_port"
00:00:00.063
And
I enter "b_new_rootFull" as "bastion_username"
00:00:00.120
And
I enter "b_new_passwordFull" as "bastion_password"
00:00:00.101
And
I enter "b_new_keyFull" as "bastion_key"
00:00:00.103
And
I enter "b_new_keyPasswordFull" as "bastion_key_password"
00:00:00.111
And
I click on "Save" in "Bastion SSH connection" modal
00:00:01.339
Then
I should see a "PAYG properties updated successfully" text
00:00:00.073
And
I should see a "my-new-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.021
And
I should see a "222" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should see a "b_new_rootFull" text in element "Bastion-panel-wrapper"
00:00:00.021
And
I should not see a "b_new_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.021
And
I should not see a "b_new_keyFull" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should not see a "b_new_keyPasswordFull" text in element "Bastion-panel-wrapper"
00:00:00.054
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.082
And
I follow "my-host.local"
00:00:00.417
And
I click on "Delete"
00:00:00.079
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.114
Then
I should not see a "my-host.local" link
00:00:00.006
And
I should not see a "my-host.local" text
00:00:00.228
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.091
And
I follow "my-host-full.local"
00:00:00.355
And
I click on "Delete"
00:00:00.069
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.105
Then
I should not see a "my-bastion.local" link
00:00:00.009
And
I should not see a "my-host.local" text
00:00:00.073