Logo: Relish

  1. Sign in

Project: Console

VPN

  • @dxpcloud
  • @teardown_projects

VPN Tests for dev/staging environment.

Background
Given
I sign in to WeDeploy as a test user
Scenarios
Connecting to VPN adds vpn service
Given
I create a project with ID "qavpn1"
And
I go to the "Settings" page for "qavpn1" project
When
I enter valid VPN credentials
And
I click the "Connect VPN" button
And
I click the "Add VPN Port" button
And
I enter the following Port Forwarding settings:
Forwarding IP Forwarding Port
192.168.0.10 3306
And
I click the "Update Ports" button
Then
I should see the text "Connected to 200.195.173.178:10194"
And
I should see the Port Forwarding settings:
Forwarding IP Forwarding Port Local Hostname
192.168.0.10 3306 vpn
And
I click "Services" in the sidebar
And
I should see the service
vpn
And
I should see listed in the General Activities
Service installed vpn
And
I should not see listed in the Builds and Deployments Activities
Deployment succeeded
Deployment started
Disconnecting VPN removes vpn service
Given
I create a project with ID "qavpn2"
And
"qavpn2" is connected to a VPN
And
"qavpn2" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
And
I click "Services" in the sidebar
And
I should see the service
vpn
And
I go to the "Settings" page for "qavpn2" project
And
I should see the text "Connected to 200.195.173.178:10194"
When
I click the "Disconnect" button
Then
I should see the notification
VPN was disconnected successfully
And
I should see the button "Connect VPN"
And
I should not see the text "Connected to 200.195.173.178:10194"
And
I should not see the Port Forwarding section
And
I click "Services" in the sidebar
And
I should not see the service
vpn
And
I should see listed in the General Activities
Service deleted vpn
Service installed vpn
VPN service cannot be deleted from service menu
Given
I create a project with ID "qavpn3"
And
"qavpn3" is connected to a VPN
And
"qavpn3" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
When
I click "Services" in the sidebar
And
I click "vpn" in the Services list
And
I open the service header dropdown menu
Then
I should not see the text "Delete Service"
Cannot exceed service quota when updating port forwarding

Basic plan allows up to 3 instances.

Given
I create a project with ID "qavpn4"
And
I install these services for "qavpn4"
type id
Hosting hosting1
Hosting hosting2
Hosting hosting3
And
"qavpn4" is connected to a VPN
When
I click "Settings" in the sidebar
And
I click the "Add VPN Port" button
And
I enter the following Port Forwarding settings:
Forwarding IP Forwarding Port
192.168.0.10 3306
And
I click the "Update Ports" button
Then
I should see the error message
Unable to perform this action
Configure ports through Port Forwarding
Given
I create a project with ID "qavpn5"
And
"qavpn5" is connected to a VPN
When
I go to the "Settings" page for "qavpn5" project
And
I click the "Add VPN Port" button
And
I enter the following Port Forwarding settings:
Forwarding IP Forwarding Port
192.168.0.10 3306
192.168.0.10 3307
And
I click the "Update Ports" button
Then
I should see the notification
Forwarding ports were updated successfully
And
I refresh the page
And
I should see the Port Forwarding settings:
Forwarding IP Forwarding Port Local Hostname
192.168.0.10 3306 vpn
192.168.0.10 3307 vpn
Cannot add duplicate IP/Port combination within same project
Given
I create a project with ID "qavpn6"
And
"qavpn6" is connected to a VPN
And
"qavpn6" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
When
I go to the "Settings" page for "qavpn6" project
And
I enter the following Port Forwarding settings:
Forwarding IP Forwarding Port
192.168.0.10 3306
192.168.0.10 3306
And
I click the "Update Ports" button
Then
I should see the error message
One of the port is already configured. Please review the information and try again.
And
I refresh the page
And
I should see the Port Forwarding settings:
Forwarding IP Forwarding Port Local Hostname
192.168.0.10 3306 vpn
Add same IP/Port combination for different projects
Given
I create a project with ID "qavpn7"
And
"qavpn7" is connected to a VPN
And
"qavpn7" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
And
I create a project with ID "qavpn8"
And
"qavpn8" is connected to a VPN
When
I go to the "Settings" page for "qavpn8" project
And
I click the "Add VPN Port" button
And
I enter the following Port Forwarding settings:
Forwarding IP Forwarding Port
192.168.0.10 3306
And
I click the "Update Ports" button
And
I should see the notification
Forwarding ports were updated successfully
Add another port forwarding entry
Given
I create a project with ID "qavpn9"
And
"qavpn9" is connected to a VPN
And
"qavpn9" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
When
I go to the "Settings" page for "qavpn9" project
And
I enter the following Port Forwarding settings:
Forwarding IP Forwarding Port
192.168.0.10 3306
127.0.0.1 8091
And
I click the "Update Ports" button
Then
I should see the notification
Forwarding ports were updated successfully
And
I refresh the page
And
I should see the Port Forwarding settings:
Forwarding IP Forwarding Port Local Hostname
192.168.0.10 3306 vpn
127.0.0.1 8091 vpn
Remove a VPN port forwarding
Given
I create a project with ID "qavpn10"
And
"qavpn10" is connected to a VPN
And
"qavpn10" has the following vpn port forwarding:
Forwarding IP Forwarding Port
192.168.0.10 3306
127.0.0.1 8091
When
I go to the "Settings" page for "qavpn10" project
And
I remove the 1st row of port forwarding
And
I click the "Update Ports" button
Then
I should see the notification
Forwarding ports were updated successfully
And
I refresh the page
And
I should see the Port Forwarding settings:
Forwarding IP Forwarding Port Local Hostname
127.0.0.1 8091 vpn
  • @teardown_tester
Required fields must be filled in
Given
I create a project with ID "qavpn11"
And
I go to the "Settings" page for "qavpn11" project
When
I clear the "Server Address" input field
And
I clear the "Account Name" input field
And
I clear the "Password" input field
And
I clear the "Certificate" input field
And
I click the "Connect VPN" button
Then
I should see the validation message
Server Address is required.
Account Name is required.
Password is required.
Certificate is required.

Last published over 1 year ago by Christie Yoo.