...

Text file src/github.com/datawire/ambassador/v2/cmd/entrypoint/testdata/hostsem-disjoint-hosts-expected.json

Documentation: github.com/datawire/ambassador/v2/cmd/entrypoint/testdata

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

View as plain text