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.201
And
I click on "Add PAYG Connection"
00:00:00.340
And
I enter "My Instance" as "description"
00:00:00.093
And
I enter "my-host.local" as "host"
00:00:00.093
And
I enter "root" as "username"
00:00:00.054
And
I click on "Create"
00:00:00.061
Then
I should see a "PAYG my-host.local created successfully" text
00:00:00.661
And
I should see a "My Instance" text in element "Info-panel-wrapper"
00:00:00.020
And
I should see a "my-host.local" text in element "Instance-panel-wrapper"
00:00:00.022
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.019
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.069
And
I click on "Add PAYG Connection"
00:00:00.438
And
I enter "My Full Instance" as "description"
00:00:00.096
And
I enter "my-host-full.local" as "host"
00:00:00.099
And
I enter "21" as "port"
00:00:00.050
And
I enter "rootFull" as "username"
00:00:00.065
And
I enter "passwordFull" as "password"
00:00:00.073
And
I enter "keyFull" as "key"
00:00:00.068
And
I enter "keyPasswordFull" as "key_password"
00:00:00.089
And
I enter "my-bastion.local" as "bastion_host"
00:00:00.088
And
I enter "22" as "bastion_port"
00:00:00.050
And
I enter "b_rootFull" as "bastion_username"
00:00:00.072
And
I enter "b_passwordFull" as "bastion_password"
00:00:00.084
And
I enter "b_keyFull" as "bastion_key"
00:00:00.082
And
I enter "b_keyPasswordFull" as "bastion_key_password"
00:00:00.095
And
I click on "Create"
00:00:00.058
Then
I should see a "PAYG my-host-full.local created successfully" text
00:00:00.909
And
I should see a "My Full Instance" text in element "Info-panel-wrapper"
00:00:00.016
And
I should see a "my-host-full.local" text in element "Instance-panel-wrapper"
00:00:00.018
And
I should see a "21" text in element "Instance-panel-wrapper"
00:00:00.018
And
I should see a "rootFull" text in element "Instance-panel-wrapper"
00:00:00.018
And
I should not see a "passwordFull" text in element "Instance-panel-wrapper"
00:00:00.017
And
I should not see a "keyFull" text in element "Instance-panel-wrapper"
00:00:00.017
And
I should not see a "keyPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.017
And
I should see a "my-bastion.local" text in element "Bastion-panel-wrapper"
00:00:00.020
And
I should see a "22" text in element "Bastion-panel-wrapper"
00:00:00.019
And
I should see a "b_rootFull" text in element "Bastion-panel-wrapper"
00:00:00.017
And
I should not see a "b_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.018
And
I should not see a "b_keyFull" text in element "Bastion-panel-wrapper"
00:00:00.017
And
I should not see a "b_keyPasswordFull" text in element "Bastion-panel-wrapper"
00:00:00.017
And
I should see a "Delete" button
00:00:00.015
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.065
Then
I should see a "my-host.local" link
00:00:00.014
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.011
And
I should see a "My Full Instance" text
00:00:00.066
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.065
And
I follow "my-host-full.local"
00:00:00.498
And
I click on "Edit Information"
00:00:00.065
And
I enter "My new Full Instance" as "description"
00:00:00.115
And
I click on "Save" in "Information" modal
00:00:00.485
Then
I should see a "PAYG properties updated successfully" text
00:00:00.068
And
I should see a "My new Full Instance" text in element "Info-panel-wrapper"
00:00:00.015
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.067
And
I follow "my-host-full.local"
00:00:00.447
And
I click on "Edit Instance"
00:00:00.065
And
I enter "221" as "port"
00:00:00.056
And
I enter "NewRootFull" as "username"
00:00:00.093
And
I enter "NewPasswordFull" as "password"
00:00:00.082
And
I enter "newKeyFull" as "key"
00:00:00.075
And
I enter "newKeyPasswordFull" as "key_password"
00:00:00.087
And
I click on "Save" in "Instance SSH connection" modal
00:00:00.768
Then
I should see a "PAYG properties updated successfully" text
00:00:00.071
And
I should see a "221" text in element "Instance-panel-wrapper"
00:00:00.018
And
I should see a "NewRootFull" text in element "Instance-panel-wrapper"
00:00:00.017
And
I should not see a "NewPasswordFull" text in element "Instance-panel-wrapper"
00:00:00.018
And
I should not see a "newKeyFull" text in element "Instance-panel-wrapper"
00:00:00.017
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.064
And
I follow "my-host-full.local"
00:00:00.377
And
I click on "Edit Bastion"
00:00:00.063
And
I enter "my-new-bastion.local" as "bastion_host"
00:00:00.131
And
I enter "222" as "bastion_port"
00:00:00.052
And
I enter "b_new_rootFull" as "bastion_username"
00:00:00.099
And
I enter "b_new_passwordFull" as "bastion_password"
00:00:00.084
And
I enter "b_new_keyFull" as "bastion_key"
00:00:00.084
And
I enter "b_new_keyPasswordFull" as "bastion_key_password"
00:00:00.094
And
I click on "Save" in "Bastion SSH connection" modal
00:00:00.642
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.017
And
I should see a "222" text in element "Bastion-panel-wrapper"
00:00:00.017
And
I should see a "b_new_rootFull" text in element "Bastion-panel-wrapper"
00:00:00.018
And
I should not see a "b_new_passwordFull" text in element "Bastion-panel-wrapper"
00:00:00.017
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.018
When
I follow the left menu "Admin > Setup Wizard > PAYG Connections"
00:00:00.071
And
I follow "my-host.local"
00:00:00.362
And
I click on "Delete"
00:00:00.068
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.096
Then
I should not see a "my-host.local" link
00:00:00.004
And
I should not see a "my-host.local" text
00:00:00.217
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.502
And
I click on "Delete"
00:00:00.057
And
I click on "Delete" in "Delete PAYG Connection" modal
00:00:00.082
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.070