github.com/rposudnevskiy/consul@v1.4.5/ui-v2/tests/acceptance/dc/services/show.feature (about)

     1  @setupApplicationTest
     2  Feature: dc / services / show: Show Service
     3    Scenario: Given a service with an external source, the logo is displayed
     4      Given 1 datacenter model with the value "dc1"
     5      And 1 node models
     6      And 1 service model from yaml
     7      ---
     8      - Service:
     9          Tags: ['Tag1', 'Tag2']
    10          Meta:
    11            external-source: consul
    12      ---
    13      When I visit the service page for yaml
    14      ---
    15        dc: dc1
    16        service: service-0
    17      ---
    18      Then I see externalSource like "consul"
    19    Scenario: Given a service with an 'unsupported' external source, there is no logo
    20      Given 1 datacenter model with the value "dc1"
    21      And 1 node models
    22      And 1 service model from yaml
    23      ---
    24      - Service:
    25          Tags: ['Tag1', 'Tag2']
    26          Meta:
    27            external-source: 'not-supported'
    28      ---
    29      When I visit the service page for yaml
    30      ---
    31        dc: dc1
    32        service: service-0
    33      ---
    34      Then I don't see externalSource
    35    Scenario: Given various services with various tags, all tags are displayed
    36      Given 1 datacenter model with the value "dc1"
    37      And 3 node models
    38      And 1 service model from yaml
    39      ---
    40      - Service:
    41          Tags: ['Tag1', 'Tag2']
    42      - Service:
    43          Tags: ['Tag3', 'Tag1']
    44      - Service:
    45          Tags: ['Tag2', 'Tag3']
    46      ---
    47      When I visit the service page for yaml
    48      ---
    49        dc: dc1
    50        service: service-0
    51      ---
    52      Then I see the text "Tag1" in "[data-test-tags] span:nth-child(1)"
    53      Then I see the text "Tag2" in "[data-test-tags] span:nth-child(2)"
    54      Then I see the text "Tag3" in "[data-test-tags] span:nth-child(3)"
    55    Scenario: Given various services the various ports on their nodes are displayed
    56      Given 1 datacenter model with the value "dc1"
    57      And 3 node models
    58      And 1 service model from yaml
    59      ---
    60      - Checks:
    61          - Status: passing
    62        Service:
    63          ID: passing-service-8080
    64          Port: 8080
    65          Address: 1.1.1.1
    66        Node:
    67          Address: 1.2.2.2
    68      - Service:
    69          ID: service-8000
    70          Port: 8000
    71          Address: 2.2.2.2
    72        Node:
    73          Address: 2.3.3.3
    74      - Service:
    75          ID: service-8888
    76          Port: 8888
    77          Address: 3.3.3.3
    78        Node:
    79          Address: 3.4.4.4
    80      ---
    81      When I visit the service page for yaml
    82      ---
    83        dc: dc1
    84        service: service-0
    85      ---
    86      Then I see address on the healthy like yaml
    87      ---
    88        - "1.1.1.1:8080"
    89      ---
    90      Then I see address on the unhealthy like yaml
    91      ---
    92        - "2.2.2.2:8000"
    93        - "3.3.3.3:8888"
    94      ---
    95      Then I see id on the healthy like yaml
    96      ---
    97        - "passing-service-8080"
    98      ---
    99      Then I see id on the unhealthy like yaml
   100      ---
   101        - "service-8000"
   102        - "service-8888"
   103      ---