2019-03-07 10:51:39 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / services / instances / proxy: Show Proxy Service Instance
|
2020-02-07 11:02:53 +00:00
|
|
|
@onlyNamespaceable
|
|
|
|
Scenario: A Proxy Service instance with a namespace
|
|
|
|
Given 1 datacenter model with the value "dc1"
|
|
|
|
And 1 instance model from yaml
|
|
|
|
---
|
|
|
|
- Service:
|
|
|
|
Kind: connect-proxy
|
|
|
|
Name: service-0-proxy
|
|
|
|
ID: service-0-proxy-with-id
|
|
|
|
Proxy:
|
|
|
|
DestinationServiceName: service-0
|
|
|
|
Expose:
|
|
|
|
Checks: false
|
|
|
|
Paths: []
|
|
|
|
Upstreams:
|
|
|
|
- DestinationType: service
|
|
|
|
DestinationName: service-1
|
|
|
|
DestinationNamespace: default
|
|
|
|
LocalBindAddress: 127.0.0.1
|
|
|
|
LocalBindPort: 1111
|
|
|
|
- DestinationType: prepared_query
|
|
|
|
DestinationName: service-group
|
|
|
|
LocalBindAddress: 127.0.0.1
|
|
|
|
LocalBindPort: 1112
|
|
|
|
---
|
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0-proxy
|
|
|
|
node: node-0
|
|
|
|
id: service-0-proxy-with-id
|
|
|
|
---
|
|
|
|
|
|
|
|
When I click upstreams on the tabs
|
|
|
|
And I see upstreamsIsSelected on the tabs
|
|
|
|
And I see 2 of the upstreams object
|
|
|
|
And I see name on the upstreams like yaml
|
|
|
|
---
|
|
|
|
- service-1 default
|
|
|
|
- service-group
|
|
|
|
---
|
|
|
|
@notNamespaceable
|
2019-11-25 18:45:10 +00:00
|
|
|
Scenario: A Proxy Service instance with no exposed checks
|
2019-03-07 10:51:39 +00:00
|
|
|
Given 1 datacenter model with the value "dc1"
|
2019-06-20 08:37:17 +00:00
|
|
|
And 1 instance model from yaml
|
2019-03-07 10:51:39 +00:00
|
|
|
---
|
|
|
|
- Service:
|
|
|
|
Kind: connect-proxy
|
|
|
|
Name: service-0-proxy
|
|
|
|
ID: service-0-proxy-with-id
|
|
|
|
Proxy:
|
|
|
|
DestinationServiceName: service-0
|
2019-11-25 18:45:10 +00:00
|
|
|
Expose:
|
|
|
|
Checks: false
|
|
|
|
Paths: []
|
2019-03-07 10:51:39 +00:00
|
|
|
Upstreams:
|
|
|
|
- DestinationType: service
|
|
|
|
DestinationName: service-1
|
2019-12-17 18:47:37 +00:00
|
|
|
DestinationNamespace: default
|
2019-03-07 10:51:39 +00:00
|
|
|
LocalBindAddress: 127.0.0.1
|
|
|
|
LocalBindPort: 1111
|
|
|
|
- DestinationType: prepared_query
|
|
|
|
DestinationName: service-group
|
|
|
|
LocalBindAddress: 127.0.0.1
|
|
|
|
LocalBindPort: 1112
|
|
|
|
---
|
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0-proxy
|
2019-06-11 09:18:50 +00:00
|
|
|
node: node-0
|
2019-03-07 10:51:39 +00:00
|
|
|
id: service-0-proxy-with-id
|
|
|
|
---
|
2020-04-08 09:56:36 +00:00
|
|
|
Then the url should be /dc1/services/service-0-proxy/instances/node-0/service-0-proxy-with-id/service-checks
|
2019-03-07 10:51:39 +00:00
|
|
|
And I see destination on the proxy like "service"
|
|
|
|
|
|
|
|
And I see serviceChecksIsSelected on the tabs
|
|
|
|
|
2019-11-25 18:45:10 +00:00
|
|
|
When I click serviceChecks on the tabs
|
|
|
|
And I don't see exposed on the serviceChecks
|
|
|
|
|
2019-03-07 10:51:39 +00:00
|
|
|
When I click upstreams on the tabs
|
|
|
|
And I see upstreamsIsSelected on the tabs
|
|
|
|
And I see 2 of the upstreams object
|
|
|
|
And I see name on the upstreams like yaml
|
|
|
|
---
|
2020-02-07 11:02:53 +00:00
|
|
|
- service-1
|
2019-03-07 10:51:39 +00:00
|
|
|
- service-group
|
|
|
|
---
|
|
|
|
And I see type on the upstreams like yaml
|
|
|
|
---
|
|
|
|
- service
|
|
|
|
- prepared_query
|
|
|
|
---
|
2019-11-25 18:45:10 +00:00
|
|
|
And I don't see exposedPaths on the tabs
|
|
|
|
|
|
|
|
Scenario: A Proxy Service instance with no automatically exposed checks but with paths
|
|
|
|
Given 1 datacenter model with the value "dc1"
|
|
|
|
And 1 instance model from yaml
|
|
|
|
---
|
|
|
|
- Service:
|
|
|
|
Kind: connect-proxy
|
|
|
|
Name: service-0-proxy
|
|
|
|
ID: service-0-proxy-with-id
|
|
|
|
Address: 10.0.0.1
|
|
|
|
Proxy:
|
|
|
|
DestinationServiceName: service-0
|
|
|
|
Expose:
|
|
|
|
Paths:
|
|
|
|
- Path: /grpc-metrics
|
|
|
|
Protocol: grpc
|
|
|
|
LocalPathPort: 8081
|
|
|
|
ListenerPort: 8080
|
|
|
|
- Path: /http-metrics
|
|
|
|
Protocol: http
|
|
|
|
LocalPathPort: 8082
|
|
|
|
ListenerPort: 8083
|
|
|
|
---
|
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0-proxy
|
|
|
|
node: node-0
|
|
|
|
id: service-0-proxy-with-id
|
|
|
|
---
|
2020-04-08 09:56:36 +00:00
|
|
|
Then the url should be /dc1/services/service-0-proxy/instances/node-0/service-0-proxy-with-id/service-checks
|
2019-11-25 18:45:10 +00:00
|
|
|
And I see serviceChecksIsSelected on the tabs
|
|
|
|
|
|
|
|
When I click serviceChecks on the tabs
|
|
|
|
And I don't see exposed on the serviceChecks
|
|
|
|
|
|
|
|
When I click exposedPaths on the tabs
|
|
|
|
And I see exposedPaths on the tabs
|
|
|
|
And I see 2 of the exposedPaths object
|
|
|
|
And I see combinedAddress on the exposedPaths like yaml
|
|
|
|
---
|
|
|
|
- 10.0.0.1:8080/grpc-metrics
|
|
|
|
- 10.0.0.1:8083/http-metrics
|
|
|
|
---
|
|
|
|
Scenario: A Proxy Service instance with only automatically exposed checks but no paths
|
|
|
|
Given 1 datacenter model with the value "dc1"
|
|
|
|
And 1 instance model from yaml
|
|
|
|
---
|
|
|
|
- Service:
|
|
|
|
Kind: connect-proxy
|
|
|
|
Name: service-0-proxy
|
|
|
|
ID: service-0-proxy-with-id
|
|
|
|
Address: 10.0.0.1
|
|
|
|
Proxy:
|
|
|
|
DestinationServiceName: service-0
|
|
|
|
Expose:
|
|
|
|
Checks: true
|
|
|
|
Paths: []
|
|
|
|
Checks:
|
|
|
|
- Name: http-check
|
|
|
|
Type: http
|
|
|
|
---
|
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0-proxy
|
|
|
|
node: node-0
|
|
|
|
id: service-0-proxy-with-id
|
|
|
|
---
|
2020-04-08 09:56:36 +00:00
|
|
|
Then the url should be /dc1/services/service-0-proxy/instances/node-0/service-0-proxy-with-id/service-checks
|
2019-11-25 18:45:10 +00:00
|
|
|
And I see serviceChecksIsSelected on the tabs
|
|
|
|
|
|
|
|
And I don't see exposedPaths on the tabs
|
2019-03-07 10:51:39 +00:00
|
|
|
|
2019-11-25 18:45:10 +00:00
|
|
|
When I click serviceChecks on the tabs
|
|
|
|
And I don't see exposed on the serviceChecks
|
2019-03-07 10:51:39 +00:00
|
|
|
|
2019-11-25 18:45:10 +00:00
|
|
|
When I click nodeChecks on the tabs
|
|
|
|
And I don't see exposed on the nodeChecks
|