...

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

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

     1[
     2  {
     3    "name": "ambassador-listener-8080",
     4    "port": 8080,
     5    "chains": [
     6      {
     7        "server_names": null,
     8        "transport_protocol": "",
     9        "vhosts": [
    10          {
    11            "name": "ambassador-listener-8080-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": "ambassador-listener-8080-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": "ambassador-listener-8080-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": "ambassador-listener-8080-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": "ambassador-listener-8443",
   340    "port": 8443,
   341    "chains": [
   342      {
   343        "server_names": null,
   344        "transport_protocol": "",
   345        "vhosts": [
   346          {
   347            "name": "ambassador-listener-8443-h1.example.com",
   348            "routes": [
   349              {
   350                "scheme": "https",
   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/",
   362                "authority": "",
   363                "authorityMatch": "",
   364                "action": "ROUTE",
   365                "action_arg": " cluster_127_0_0_1_8877_default"
   366              },
   367              {
   368                "scheme": "https",
   369                "host": "h1.example.com",
   370                "path": "/ambassador/v0/check_alive",
   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": "/ambassador/v0/check_alive",
   380                "authority": "",
   381                "authorityMatch": "",
   382                "action": "ROUTE",
   383                "action_arg": " cluster_127_0_0_1_8877_default"
   384              },
   385              {
   386                "scheme": "https",
   387                "host": "h1.example.com",
   388                "path": "/ambassador/v0/check_ready",
   389                "authority": "",
   390                "authorityMatch": "",
   391                "action": "ROUTE",
   392                "action_arg": " cluster_127_0_0_1_8877_default"
   393              },
   394              {
   395                "scheme": "implicit-http",
   396                "host": "h1.example.com",
   397                "path": "/ambassador/v0/check_ready",
   398                "authority": "",
   399                "authorityMatch": "",
   400                "action": "ROUTE",
   401                "action_arg": " cluster_127_0_0_1_8877_default"
   402              },
   403              {
   404                "scheme": "https",
   405                "host": "h1.example.com",
   406                "path": "/quote/",
   407                "authority": "",
   408                "authorityMatch": "",
   409                "action": "ROUTE",
   410                "action_arg": " cluster_quote_ambassador_default"
   411              },
   412              {
   413                "scheme": "implicit-http",
   414                "host": "h1.example.com",
   415                "path": "/quote/",
   416                "authority": "",
   417                "authorityMatch": "",
   418                "action": "ROUTE",
   419                "action_arg": " cluster_quote_ambassador_default"
   420              }
   421            ]
   422          },
   423          {
   424            "name": "ambassador-listener-8443-h2.example.com",
   425            "routes": [
   426              {
   427                "scheme": "implicit-http",
   428                "host": "h2.example.com",
   429                "path": "/ambassador/v0/",
   430                "authority": "",
   431                "authorityMatch": "",
   432                "action": "REDIRECT",
   433                "action_arg": " HTTPS"
   434              },
   435              {
   436                "scheme": "https",
   437                "host": "h2.example.com",
   438                "path": "/ambassador/v0/",
   439                "authority": "",
   440                "authorityMatch": "",
   441                "action": "ROUTE",
   442                "action_arg": " cluster_127_0_0_1_8877_default"
   443              },
   444              {
   445                "scheme": "implicit-http",
   446                "host": "h2.example.com",
   447                "path": "/ambassador/v0/check_alive",
   448                "authority": "",
   449                "authorityMatch": "",
   450                "action": "REDIRECT",
   451                "action_arg": " HTTPS"
   452              },
   453              {
   454                "scheme": "https",
   455                "host": "h2.example.com",
   456                "path": "/ambassador/v0/check_alive",
   457                "authority": "",
   458                "authorityMatch": "",
   459                "action": "ROUTE",
   460                "action_arg": " cluster_127_0_0_1_8877_default"
   461              },
   462              {
   463                "scheme": "implicit-http",
   464                "host": "h2.example.com",
   465                "path": "/ambassador/v0/check_ready",
   466                "authority": "",
   467                "authorityMatch": "",
   468                "action": "REDIRECT",
   469                "action_arg": " HTTPS"
   470              },
   471              {
   472                "scheme": "https",
   473                "host": "h2.example.com",
   474                "path": "/ambassador/v0/check_ready",
   475                "authority": "",
   476                "authorityMatch": "",
   477                "action": "ROUTE",
   478                "action_arg": " cluster_127_0_0_1_8877_default"
   479              },
   480              {
   481                "scheme": "implicit-http",
   482                "host": "h2.example.com",
   483                "path": "/quote/",
   484                "authority": "",
   485                "authorityMatch": "",
   486                "action": "REDIRECT",
   487                "action_arg": " HTTPS"
   488              },
   489              {
   490                "scheme": "https",
   491                "host": "h2.example.com",
   492                "path": "/quote/",
   493                "authority": "",
   494                "authorityMatch": "",
   495                "action": "ROUTE",
   496                "action_arg": " cluster_quote_ambassador_default"
   497              }
   498            ]
   499          }
   500        ]
   501      },
   502      {
   503        "server_names": [
   504          "h1.example.com"
   505        ],
   506        "transport_protocol": "tls",
   507        "vhosts": [
   508          {
   509            "name": "ambassador-listener-8443-h1.example.com",
   510            "routes": [
   511              {
   512                "scheme": "https",
   513                "host": "h1.example.com",
   514                "path": "/ambassador/v0/",
   515                "authority": "",
   516                "authorityMatch": "",
   517                "action": "ROUTE",
   518                "action_arg": " cluster_127_0_0_1_8877_default"
   519              },
   520              {
   521                "scheme": "implicit-http",
   522                "host": "h1.example.com",
   523                "path": "/ambassador/v0/",
   524                "authority": "",
   525                "authorityMatch": "",
   526                "action": "ROUTE",
   527                "action_arg": " cluster_127_0_0_1_8877_default"
   528              },
   529              {
   530                "scheme": "https",
   531                "host": "h1.example.com",
   532                "path": "/ambassador/v0/check_alive",
   533                "authority": "",
   534                "authorityMatch": "",
   535                "action": "ROUTE",
   536                "action_arg": " cluster_127_0_0_1_8877_default"
   537              },
   538              {
   539                "scheme": "implicit-http",
   540                "host": "h1.example.com",
   541                "path": "/ambassador/v0/check_alive",
   542                "authority": "",
   543                "authorityMatch": "",
   544                "action": "ROUTE",
   545                "action_arg": " cluster_127_0_0_1_8877_default"
   546              },
   547              {
   548                "scheme": "https",
   549                "host": "h1.example.com",
   550                "path": "/ambassador/v0/check_ready",
   551                "authority": "",
   552                "authorityMatch": "",
   553                "action": "ROUTE",
   554                "action_arg": " cluster_127_0_0_1_8877_default"
   555              },
   556              {
   557                "scheme": "implicit-http",
   558                "host": "h1.example.com",
   559                "path": "/ambassador/v0/check_ready",
   560                "authority": "",
   561                "authorityMatch": "",
   562                "action": "ROUTE",
   563                "action_arg": " cluster_127_0_0_1_8877_default"
   564              },
   565              {
   566                "scheme": "https",
   567                "host": "h1.example.com",
   568                "path": "/quote/",
   569                "authority": "",
   570                "authorityMatch": "",
   571                "action": "ROUTE",
   572                "action_arg": " cluster_quote_ambassador_default"
   573              },
   574              {
   575                "scheme": "implicit-http",
   576                "host": "h1.example.com",
   577                "path": "/quote/",
   578                "authority": "",
   579                "authorityMatch": "",
   580                "action": "ROUTE",
   581                "action_arg": " cluster_quote_ambassador_default"
   582              }
   583            ]
   584          }
   585        ]
   586      },
   587      {
   588        "server_names": [
   589          "h2.example.com"
   590        ],
   591        "transport_protocol": "tls",
   592        "vhosts": [
   593          {
   594            "name": "ambassador-listener-8443-h2.example.com",
   595            "routes": [
   596              {
   597                "scheme": "implicit-http",
   598                "host": "h2.example.com",
   599                "path": "/ambassador/v0/",
   600                "authority": "",
   601                "authorityMatch": "",
   602                "action": "REDIRECT",
   603                "action_arg": " HTTPS"
   604              },
   605              {
   606                "scheme": "https",
   607                "host": "h2.example.com",
   608                "path": "/ambassador/v0/",
   609                "authority": "",
   610                "authorityMatch": "",
   611                "action": "ROUTE",
   612                "action_arg": " cluster_127_0_0_1_8877_default"
   613              },
   614              {
   615                "scheme": "implicit-http",
   616                "host": "h2.example.com",
   617                "path": "/ambassador/v0/check_alive",
   618                "authority": "",
   619                "authorityMatch": "",
   620                "action": "REDIRECT",
   621                "action_arg": " HTTPS"
   622              },
   623              {
   624                "scheme": "https",
   625                "host": "h2.example.com",
   626                "path": "/ambassador/v0/check_alive",
   627                "authority": "",
   628                "authorityMatch": "",
   629                "action": "ROUTE",
   630                "action_arg": " cluster_127_0_0_1_8877_default"
   631              },
   632              {
   633                "scheme": "implicit-http",
   634                "host": "h2.example.com",
   635                "path": "/ambassador/v0/check_ready",
   636                "authority": "",
   637                "authorityMatch": "",
   638                "action": "REDIRECT",
   639                "action_arg": " HTTPS"
   640              },
   641              {
   642                "scheme": "https",
   643                "host": "h2.example.com",
   644                "path": "/ambassador/v0/check_ready",
   645                "authority": "",
   646                "authorityMatch": "",
   647                "action": "ROUTE",
   648                "action_arg": " cluster_127_0_0_1_8877_default"
   649              },
   650              {
   651                "scheme": "implicit-http",
   652                "host": "h2.example.com",
   653                "path": "/quote/",
   654                "authority": "",
   655                "authorityMatch": "",
   656                "action": "REDIRECT",
   657                "action_arg": " HTTPS"
   658              },
   659              {
   660                "scheme": "https",
   661                "host": "h2.example.com",
   662                "path": "/quote/",
   663                "authority": "",
   664                "authorityMatch": "",
   665                "action": "ROUTE",
   666                "action_arg": " cluster_quote_ambassador_default"
   667              }
   668            ]
   669          }
   670        ]
   671      }
   672    ]
   673  }
   674]

View as plain text