Skip to content

Commit 84d2ce1

Browse files
committed
rest/client: new api tests and accessories
1 parent 5d50a6c commit 84d2ce1

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

library/a.out

Whitespace-only changes.

web/rest/brand/features/provider/carrierServer/getCarrierServerStatus.feature

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Feature: Create carrier servers
1111
And I send a "POST" request to "/carrier_servers" with body:
1212
"""
1313
{
14-
"ip": "127.0.0.3",
15-
"hostname": "newhost.net",
14+
"hostname": "127.0.0.3",
1615
"port": 5060,
1716
"uriScheme": 2,
1817
"transport": 1,

web/rest/brand/features/provider/carrierServer/postCarrierServer.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Create carrier servers
3434
And the JSON should be equal to:
3535
"""
3636
{
37-
"ip": null,
37+
"ip": "127.0.0.2",
3838
"hostname": "127.0.0.3",
3939
"port": 5060,
4040
"uriScheme": 2,
@@ -63,7 +63,7 @@ Feature: Create carrier servers
6363
And the JSON should be like:
6464
"""
6565
{
66-
"ip": null,
66+
"ip": "127.0.0.2",
6767
"hostname": "127.0.0.3",
6868
"port": 5060,
6969
"uriScheme": 2,

web/rest/brand/features/provider/carrierServer/putCarrierServer.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feature: Update carrier servers
1212
"""
1313
{
1414
"ip": "127.1.0.1",
15-
"hostname": "hostname.net",
15+
"hostname": "127.0.0.1",
1616
"port": 5060,
1717
"uriScheme": 2,
1818
"transport": 2,
@@ -34,7 +34,7 @@ Feature: Update carrier servers
3434
And the JSON should be equal to:
3535
"""
3636
{
37-
"ip": null,
37+
"ip": "127.1.0.1",
3838
"hostname": "127.0.0.1",
3939
"port": 5060,
4040
"uriScheme": 2,

web/rest/client/features/provider/survivalDevice/getSurvivalDevices.feature

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Feature: Retrieve survival devices
1616
[
1717
{
1818
"name": "survival test 1",
19-
"proxy": "23123",
19+
"proxy": "survival1.test.com",
2020
"description": "new survival device 1",
2121
"id": 1
2222
}
@@ -34,8 +34,8 @@ Feature: Retrieve survival devices
3434
"""
3535
{
3636
"name": "survival test 1",
37-
"proxy": "23123",
38-
"outboundProxy": "43322",
37+
"proxy": "survival1.test.com",
38+
"outboundProxy": "192.168.1.100:5060",
3939
"udpPort": 5060,
4040
"tcpPort": 5060,
4141
"tlsPort": 5061,

web/rest/client/features/provider/survivalDevice/postSurvivalDevice.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Feature: Create a survival device
1212
"""
1313
{
1414
"name": "Survival Test 1",
15-
"proxy": "23123",
16-
"outboundProxy": "43322",
15+
"proxy": "survival1.test.com",
16+
"outboundProxy": "192.168.1.100:5060",
1717
"udpPort": 5060,
1818
"tcpPort": 5060,
1919
"tlsPort": 5061,
@@ -28,8 +28,8 @@ Feature: Create a survival device
2828
"""
2929
{
3030
"name": "Survival Test 1",
31-
"proxy": "23123",
32-
"outboundProxy": "43322",
31+
"proxy": "survival1.test.com",
32+
"outboundProxy": "192.168.1.100:5060",
3333
"udpPort": 5060,
3434
"tcpPort": 5060,
3535
"tlsPort": 5061,

web/rest/client/features/provider/survivalDevice/putSurvivalDevice.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Feature: Update survival devices
1212
"""
1313
{
1414
"name": "Survival Test 1-1",
15-
"proxy": "55555",
16-
"outboundProxy": "66666",
15+
"proxy": "survival1.test.com",
16+
"outboundProxy": "192.168.1.100:5060",
1717
"udpPort": 5065,
1818
"tcpPort": 5065,
1919
"tlsPort": 5066,
@@ -28,8 +28,8 @@ Feature: Update survival devices
2828
"""
2929
{
3030
"name": "Survival Test 1-1",
31-
"proxy": "55555",
32-
"outboundProxy": "66666",
31+
"proxy": "survival1.test.com",
32+
"outboundProxy": "192.168.1.100:5060",
3333
"udpPort": 5065,
3434
"tcpPort": 5065,
3535
"tlsPort": 5066,

0 commit comments

Comments
 (0)