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.236
And
I click on "Add PAYG Connection"
00:00:00.556
And
I enter "My Instance" as "description"
00:00:00.101
And
I enter "my-host.local" as "host"
00:00:00.099
And
I enter "root" as "username"
00:00:00.063
And
I click on "Create"
00:00:00.069
Then
I should see a "PAYG my-host.local created successfully" text
00:00:01.056
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.023
And
I should see a "root" text in element "Instance-panel-wrapper"
00:00:00.020
And
I should see a "Delete" button
00:00:00.021
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.083
And
I click on "Add PAYG Connection"
00:00:00.403
And
I enter "My Full Instance" as "description"
00:00:00.105
And
I enter "my-host-full.local" as "host"
00:00:00.105
And
I enter "21" as "port"
00:00:00.059
And
I enter "rootFull" as "username"
00:00:00.071
And
I enter "passwordFull" as "password"
00:00:00.083
And
I enter "keyFull" as "key"
00:00:00.077
And
I enter "keyPasswordFull" as "key_password"
00:00:00.102
And
I enter "my-bastion.local" as "bastion_host"
00:00:00.100
And
I enter "22" as "bastion_port"
00:00:00.056
And
I enter "b_rootFull" as "bastion_username"
00:00:00.082
And
I enter "b_passwordFull" as "bastion_password"
00:00:00.093
And
I enter "b_keyFull" as "bastion_key"
00:00:00.090
And
I enter "b_keyPasswordFull" as "bastion_key_password"
00:00:00.128
And
I click on "Create"
00:00:00.066
Then
I should see a "PAYG my-host-full.local created successfully" text
00:00:00.694
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.021
And
I should not see a "passwordFull" text in element "Instance-panel-wrapper"
00:00:00.021
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.020
And
I should see a "my-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.025
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.020
And
I should not see a "b_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.021
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.021
And
I should see a "Delete" button
00:00:00.020
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.076
Then
I should see a "my-host.local" link
00:00:00.013
And
I should see a "My Instance" text
00:00:00.076
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.068
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.073
And
I follow "my-host-full.local"
00:00:00.417
And
I click on "Edit Information"
00:00:00.073
And
I enter "My new Full Instance" as "description"
00:00:00.117
And
I click on "Save" in "Information" modal
00:00:00.839
Then
I should see a "PAYG properties updated successfully" text
00:00:00.073
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.080
And
I follow "my-host-full.local"
00:00:00.431
And
I click on "Edit Instance"
00:00:00.072
And
I enter "221" as "port"
00:00:00.064
And
I enter "NewRootFull" as "username"
00:00:00.102
And
I enter "NewPasswordFull" as "password"
00:00:00.090
And
I enter "newKeyFull" as "key"
00:00:00.085
And
I enter "newKeyPasswordFull" as "key_password"
00:00:00.097
And
I click on "Save" in "Instance SSH connection" modal
00:00:00.777
Then
I should see a "PAYG properties updated successfully" text
00:00:00.078
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.026
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.079
And
I follow "my-host-full.local"
00:00:00.408
And
I click on "Edit Bastion"
00:00:00.070
And
I enter "my-new-bastion.local" as "bastion_host"
00:00:00.143
And
I enter "222" as "bastion_port"
00:00:00.059
And
I enter "b_new_rootFull" as "bastion_username"
00:00:00.107
And
I enter "b_new_passwordFull" as "bastion_password"
00:00:00.093
And
I enter "b_new_keyFull" as "bastion_key"
00:00:00.095
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.520
Then
I should see a "PAYG properties updated successfully" text
00:00:00.075
And
I should see a "my-new-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.019
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.019
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.019
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.079
And
I follow "my-host.local"
00:00:00.494
And
I click on "Delete"
00:00:00.074
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.099
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.226
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.529
And
I click on "Delete"
00:00:00.068
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.088
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.074