...

Text file src/github.com/emissary-ingress/emissary/v3/cmd/entrypoint/testdata/hostsem-disjoint-hosts-expected.json

Documentation: github.com/emissary-ingress/emissary/v3/cmd/entrypoint/testdata

     1[
     2  {
     3    "name": "ambassador-listener-ready-127.0.0.1-8006",
     4    "port": 8006,
     5    "chains": [
     6      {
     7        "server_names": null,
     8        "transport_protocol": "",
     9        "vhosts": []
    10      }
    11    ]
    12  },
    13  {
    14    "name": "listener-8888",
    15    "port": 8888,
    16    "chains": [
    17      {
    18        "server_names": null,
    19        "transport_protocol": "",
    20        "vhosts": [
    21          {
    22            "name": "listener-8888-h1.example.com",
    23            "routes": [
    24              {
    25                "scheme": "https",
    26                "host": "h1.example.com",
    27                "path": "/ambassador/v0/",
    28                "authority": "",
    29                "authorityMatch": "",
    30                "action": "ROUTE",
    31                "action_arg": " cluster_127_0_0_1_8877_default"
    32              },
    33              {
    34                "scheme": "implicit-http",
    35                "host": "h1.example.com",
    36                "path": "/ambassador/v0/",
    37                "authority": "",
    38                "authorityMatch": "",
    39                "action": "ROUTE",
    40                "action_arg": " cluster_127_0_0_1_8877_default"
    41              },
    42              {
    43                "scheme": "https",
    44                "host": "h1.example.com",
    45                "path": "/ambassador/v0/check_alive",
    46                "authority": "",
    47                "authorityMatch": "",
    48                "action": "ROUTE",
    49                "action_arg": " cluster_127_0_0_1_8877_default"
    50              },
    51              {
    52                "scheme": "implicit-http",
    53                "host": "h1.example.com",
    54                "path": "/ambassador/v0/check_alive",
    55                "authority": "",
    56                "authorityMatch": "",
    57                "action": "ROUTE",
    58                "action_arg": " cluster_127_0_0_1_8877_default"
    59              },
    60              {
    61                "scheme": "https",
    62                "host": "h1.example.com",
    63                "path": "/ambassador/v0/check_ready",
    64                "authority": "",
    65                "authorityMatch": "",
    66                "action": "ROUTE",
    67                "action_arg": " cluster_127_0_0_1_8877_default"
    68              },
    69              {
    70                "scheme": "implicit-http",
    71                "host": "h1.example.com",
    72                "path": "/ambassador/v0/check_ready",
    73                "authority": "",
    74                "authorityMatch": "",
    75                "action": "ROUTE",
    76                "action_arg": " cluster_127_0_0_1_8877_default"
    77              },
    78              {
    79                "scheme": "https",
    80                "host": "h1.example.com",
    81                "path": "/quote/",
    82                "authority": "",
    83                "authorityMatch": "",
    84                "action": "ROUTE",
    85                "action_arg": " cluster_quote_ambassador_default"
    86              },
    87              {
    88                "scheme": "implicit-http",
    89                "host": "h1.example.com",
    90                "path": "/quote/",
    91                "authority": "",
    92                "authorityMatch": "",
    93                "action": "ROUTE",
    94                "action_arg": " cluster_quote_ambassador_default"
    95              }
    96            ]
    97          },
    98          {
    99            "name": "listener-8888-h2.example.com",
   100            "routes": [
   101              {
   102                "scheme": "implicit-http",
   103                "host": "h2.example.com",
   104                "path": "/ambassador/v0/",
   105                "authority": "",
   106                "authorityMatch": "",
   107                "action": "REDIRECT",
   108                "action_arg": " HTTPS"
   109              },
   110              {
   111                "scheme": "https",
   112                "host": "h2.example.com",
   113                "path": "/ambassador/v0/",
   114                "authority": "",
   115                "authorityMatch": "",
   116                "action": "ROUTE",
   117                "action_arg": " cluster_127_0_0_1_8877_default"
   118              },
   119              {
   120                "scheme": "implicit-http",
   121                "host": "h2.example.com",
   122                "path": "/ambassador/v0/check_alive",
   123                "authority": "",
   124                "authorityMatch": "",
   125                "action": "REDIRECT",
   126                "action_arg": " HTTPS"
   127              },
   128              {
   129                "scheme": "https",
   130                "host": "h2.example.com",
   131                "path": "/ambassador/v0/check_alive",
   132                "authority": "",
   133                "authorityMatch": "",
   134                "action": "ROUTE",
   135                "action_arg": " cluster_127_0_0_1_8877_default"
   136              },
   137              {
   138                "scheme": "implicit-http",
   139                "host": "h2.example.com",
   140                "path": "/ambassador/v0/check_ready",
   141                "authority": "",
   142                "authorityMatch": "",
   143                "action": "REDIRECT",
   144                "action_arg": " HTTPS"
   145              },
   146              {
   147                "scheme": "https",
   148                "host": "h2.example.com",
   149                "path": "/ambassador/v0/check_ready",
   150                "authority": "",
   151                "authorityMatch": "",
   152                "action": "ROUTE",
   153                "action_arg": " cluster_127_0_0_1_8877_default"
   154              },
   155              {
   156                "scheme": "implicit-http",
   157                "host": "h2.example.com",
   158                "path": "/quote/",
   159                "authority": "",
   160                "authorityMatch": "",
   161                "action": "REDIRECT",
   162                "action_arg": " HTTPS"
   163              },
   164              {
   165                "scheme": "https",
   166                "host": "h2.example.com",
   167                "path": "/quote/",
   168                "authority": "",
   169                "authorityMatch": "",
   170                "action": "ROUTE",
   171                "action_arg": " cluster_quote_ambassador_default"
   172              }
   173            ]
   174          }
   175        ]
   176      },
   177      {
   178        "server_names": [
   179          "h1.example.com"
   180        ],
   181        "transport_protocol": "tls",
   182        "vhosts": [
   183          {
   184            "name": "listener-8888-h1.example.com",
   185            "routes": [
   186              {
   187                "scheme": "https",
   188                "host": "h1.example.com",
   189                "path": "/ambassador/v0/",
   190                "authority": "",
   191                "authorityMatch": "",
   192                "action": "ROUTE",
   193                "action_arg": " cluster_127_0_0_1_8877_default"
   194              },
   195              {
   196                "scheme": "implicit-http",
   197                "host": "h1.example.com",
   198                "path": "/ambassador/v0/",
   199                "authority": "",
   200                "authorityMatch": "",
   201                "action": "ROUTE",
   202                "action_arg": " cluster_127_0_0_1_8877_default"
   203              },
   204              {
   205                "scheme": "https",
   206                "host": "h1.example.com",
   207                "path": "/ambassador/v0/check_alive",
   208                "authority": "",
   209                "authorityMatch": "",
   210                "action": "ROUTE",
   211                "action_arg": " cluster_127_0_0_1_8877_default"
   212              },
   213              {
   214                "scheme": "implicit-http",
   215                "host": "h1.example.com",
   216                "path": "/ambassador/v0/check_alive",
   217                "authority": "",
   218                "authorityMatch": "",
   219                "action": "ROUTE",
   220                "action_arg": " cluster_127_0_0_1_8877_default"
   221              },
   222              {
   223                "scheme": "https",
   224                "host": "h1.example.com",
   225                "path": "/ambassador/v0/check_ready",
   226                "authority": "",
   227                "authorityMatch": "",
   228                "action": "ROUTE",
   229                "action_arg": " cluster_127_0_0_1_8877_default"
   230              },
   231              {
   232                "scheme": "implicit-http",
   233                "host": "h1.example.com",
   234                "path": "/ambassador/v0/check_ready",
   235                "authority": "",
   236                "authorityMatch": "",
   237                "action": "ROUTE",
   238                "action_arg": " cluster_127_0_0_1_8877_default"
   239              },
   240              {
   241                "scheme": "https",
   242                "host": "h1.example.com",
   243                "path": "/quote/",
   244                "authority": "",
   245                "authorityMatch": "",
   246                "action": "ROUTE",
   247                "action_arg": " cluster_quote_ambassador_default"
   248              },
   249              {
   250                "scheme": "implicit-http",
   251                "host": "h1.example.com",
   252                "path": "/quote/",
   253                "authority": "",
   254                "authorityMatch": "",
   255                "action": "ROUTE",
   256                "action_arg": " cluster_quote_ambassador_default"
   257              }
   258            ]
   259          }
   260        ]
   261      },
   262      {
   263        "server_names": [
   264          "h2.example.com"
   265        ],
   266        "transport_protocol": "tls",
   267        "vhosts": [
   268          {
   269            "name": "listener-8888-h2.example.com",
   270            "routes": [
   271              {
   272                "scheme": "implicit-http",
   273                "host": "h2.example.com",
   274                "path": "/ambassador/v0/",
   275                "authority": "",
   276                "authorityMatch": "",
   277                "action": "REDIRECT",
   278                "action_arg": " HTTPS"
   279              },
   280              {
   281                "scheme": "https",
   282                "host": "h2.example.com",
   283                "path": "/ambassador/v0/",
   284                "authority": "",
   285                "authorityMatch": "",
   286                "action": "ROUTE",
   287                "action_arg": " cluster_127_0_0_1_8877_default"
   288              },
   289              {
   290                "scheme": "implicit-http",
   291                "host": "h2.example.com",
   292                "path": "/ambassador/v0/check_alive",
   293                "authority": "",
   294                "authorityMatch": "",
   295                "action": "REDIRECT",
   296                "action_arg": " HTTPS"
   297              },
   298              {
   299                "scheme": "https",
   300                "host": "h2.example.com",
   301                "path": "/ambassador/v0/check_alive",
   302                "authority": "",
   303                "authorityMatch": "",
   304                "action": "ROUTE",
   305                "action_arg": " cluster_127_0_0_1_8877_default"
   306              },
   307              {
   308                "scheme": "implicit-http",
   309                "host": "h2.example.com",
   310                "path": "/ambassador/v0/check_ready",
   311                "authority": "",
   312                "authorityMatch": "",
   313                "action": "REDIRECT",
   314                "action_arg": " HTTPS"
   315              },
   316              {
   317                "scheme": "https",
   318                "host": "h2.example.com",
   319                "path": "/ambassador/v0/check_ready",
   320                "authority": "",
   321                "authorityMatch": "",
   322                "action": "ROUTE",
   323                "action_arg": " cluster_127_0_0_1_8877_default"
   324              },
   325              {
   326                "scheme": "implicit-http",
   327                "host": "h2.example.com",
   328                "path": "/quote/",
   329                "authority": "",
   330                "authorityMatch": "",
   331                "action": "REDIRECT",
   332                "action_arg": " HTTPS"
   333              },
   334              {
   335                "scheme": "https",
   336                "host": "h2.example.com",
   337                "path": "/quote/",
   338                "authority": "",
   339                "authorityMatch": "",
   340                "action": "ROUTE",
   341                "action_arg": " cluster_quote_ambassador_default"
   342              }
   343            ]
   344          }
   345        ]
   346      }
   347    ]
   348  },
   349  {
   350    "name": "listener-9999",
   351    "port": 9999,
   352    "chains": [
   353      {
   354        "server_names": null,
   355        "transport_protocol": "",
   356        "vhosts": [
   357          {
   358            "name": "listener-9999-h1.example.com",
   359            "routes": [
   360              {
   361                "scheme": "implicit-http",
   362                "host": "h1.example.com",
   363                "path": "/ambassador/v0/",
   364                "authority": "",
   365                "authorityMatch": "",
   366                "action": "ROUTE",
   367                "action_arg": " cluster_127_0_0_1_8877_default"
   368              },
   369              {
   370                "scheme": "implicit-http",
   371                "host": "h1.example.com",
   372                "path": "/ambassador/v0/check_alive",
   373                "authority": "",
   374                "authorityMatch": "",
   375                "action": "ROUTE",
   376                "action_arg": " cluster_127_0_0_1_8877_default"
   377              },
   378              {
   379                "scheme": "implicit-http",
   380                "host": "h1.example.com",
   381                "path": "/ambassador/v0/check_ready",
   382                "authority": "",
   383                "authorityMatch": "",
   384                "action": "ROUTE",
   385                "action_arg": " cluster_127_0_0_1_8877_default"
   386              },
   387              {
   388                "scheme": "implicit-http",
   389                "host": "h1.example.com",
   390                "path": "/quote/",
   391                "authority": "",
   392                "authorityMatch": "",
   393                "action": "ROUTE",
   394                "action_arg": " cluster_quote_ambassador_default"
   395              }
   396            ]
   397          }
   398        ]
   399      }
   400    ]
   401  }
   402]

View as plain text