...

Text file src/github.com/emissary-ingress/emissary/v3/cmd/entrypoint/testdata/hostsem-basic-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": "ambassador-listener-8080",
    15    "port": 8080,
    16    "chains": [
    17      {
    18        "server_names": null,
    19        "transport_protocol": "",
    20        "vhosts": [
    21          {
    22            "name": "ambassador-listener-8080-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": "ambassador-listener-8080-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": "ambassador-listener-8080-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": "ambassador-listener-8080-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": "ambassador-listener-8443",
   351    "port": 8443,
   352    "chains": [
   353      {
   354        "server_names": null,
   355        "transport_protocol": "",
   356        "vhosts": [
   357          {
   358            "name": "ambassador-listener-8443-h1.example.com",
   359            "routes": [
   360              {
   361                "scheme": "https",
   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/",
   373                "authority": "",
   374                "authorityMatch": "",
   375                "action": "ROUTE",
   376                "action_arg": " cluster_127_0_0_1_8877_default"
   377              },
   378              {
   379                "scheme": "https",
   380                "host": "h1.example.com",
   381                "path": "/ambassador/v0/check_alive",
   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": "/ambassador/v0/check_alive",
   391                "authority": "",
   392                "authorityMatch": "",
   393                "action": "ROUTE",
   394                "action_arg": " cluster_127_0_0_1_8877_default"
   395              },
   396              {
   397                "scheme": "https",
   398                "host": "h1.example.com",
   399                "path": "/ambassador/v0/check_ready",
   400                "authority": "",
   401                "authorityMatch": "",
   402                "action": "ROUTE",
   403                "action_arg": " cluster_127_0_0_1_8877_default"
   404              },
   405              {
   406                "scheme": "implicit-http",
   407                "host": "h1.example.com",
   408                "path": "/ambassador/v0/check_ready",
   409                "authority": "",
   410                "authorityMatch": "",
   411                "action": "ROUTE",
   412                "action_arg": " cluster_127_0_0_1_8877_default"
   413              },
   414              {
   415                "scheme": "https",
   416                "host": "h1.example.com",
   417                "path": "/quote/",
   418                "authority": "",
   419                "authorityMatch": "",
   420                "action": "ROUTE",
   421                "action_arg": " cluster_quote_ambassador_default"
   422              },
   423              {
   424                "scheme": "implicit-http",
   425                "host": "h1.example.com",
   426                "path": "/quote/",
   427                "authority": "",
   428                "authorityMatch": "",
   429                "action": "ROUTE",
   430                "action_arg": " cluster_quote_ambassador_default"
   431              }
   432            ]
   433          },
   434          {
   435            "name": "ambassador-listener-8443-h2.example.com",
   436            "routes": [
   437              {
   438                "scheme": "implicit-http",
   439                "host": "h2.example.com",
   440                "path": "/ambassador/v0/",
   441                "authority": "",
   442                "authorityMatch": "",
   443                "action": "REDIRECT",
   444                "action_arg": " HTTPS"
   445              },
   446              {
   447                "scheme": "https",
   448                "host": "h2.example.com",
   449                "path": "/ambassador/v0/",
   450                "authority": "",
   451                "authorityMatch": "",
   452                "action": "ROUTE",
   453                "action_arg": " cluster_127_0_0_1_8877_default"
   454              },
   455              {
   456                "scheme": "implicit-http",
   457                "host": "h2.example.com",
   458                "path": "/ambassador/v0/check_alive",
   459                "authority": "",
   460                "authorityMatch": "",
   461                "action": "REDIRECT",
   462                "action_arg": " HTTPS"
   463              },
   464              {
   465                "scheme": "https",
   466                "host": "h2.example.com",
   467                "path": "/ambassador/v0/check_alive",
   468                "authority": "",
   469                "authorityMatch": "",
   470                "action": "ROUTE",
   471                "action_arg": " cluster_127_0_0_1_8877_default"
   472              },
   473              {
   474                "scheme": "implicit-http",
   475                "host": "h2.example.com",
   476                "path": "/ambassador/v0/check_ready",
   477                "authority": "",
   478                "authorityMatch": "",
   479                "action": "REDIRECT",
   480                "action_arg": " HTTPS"
   481              },
   482              {
   483                "scheme": "https",
   484                "host": "h2.example.com",
   485                "path": "/ambassador/v0/check_ready",
   486                "authority": "",
   487                "authorityMatch": "",
   488                "action": "ROUTE",
   489                "action_arg": " cluster_127_0_0_1_8877_default"
   490              },
   491              {
   492                "scheme": "implicit-http",
   493                "host": "h2.example.com",
   494                "path": "/quote/",
   495                "authority": "",
   496                "authorityMatch": "",
   497                "action": "REDIRECT",
   498                "action_arg": " HTTPS"
   499              },
   500              {
   501                "scheme": "https",
   502                "host": "h2.example.com",
   503                "path": "/quote/",
   504                "authority": "",
   505                "authorityMatch": "",
   506                "action": "ROUTE",
   507                "action_arg": " cluster_quote_ambassador_default"
   508              }
   509            ]
   510          }
   511        ]
   512      },
   513      {
   514        "server_names": [
   515          "h1.example.com"
   516        ],
   517        "transport_protocol": "tls",
   518        "vhosts": [
   519          {
   520            "name": "ambassador-listener-8443-h1.example.com",
   521            "routes": [
   522              {
   523                "scheme": "https",
   524                "host": "h1.example.com",
   525                "path": "/ambassador/v0/",
   526                "authority": "",
   527                "authorityMatch": "",
   528                "action": "ROUTE",
   529                "action_arg": " cluster_127_0_0_1_8877_default"
   530              },
   531              {
   532                "scheme": "implicit-http",
   533                "host": "h1.example.com",
   534                "path": "/ambassador/v0/",
   535                "authority": "",
   536                "authorityMatch": "",
   537                "action": "ROUTE",
   538                "action_arg": " cluster_127_0_0_1_8877_default"
   539              },
   540              {
   541                "scheme": "https",
   542                "host": "h1.example.com",
   543                "path": "/ambassador/v0/check_alive",
   544                "authority": "",
   545                "authorityMatch": "",
   546                "action": "ROUTE",
   547                "action_arg": " cluster_127_0_0_1_8877_default"
   548              },
   549              {
   550                "scheme": "implicit-http",
   551                "host": "h1.example.com",
   552                "path": "/ambassador/v0/check_alive",
   553                "authority": "",
   554                "authorityMatch": "",
   555                "action": "ROUTE",
   556                "action_arg": " cluster_127_0_0_1_8877_default"
   557              },
   558              {
   559                "scheme": "https",
   560                "host": "h1.example.com",
   561                "path": "/ambassador/v0/check_ready",
   562                "authority": "",
   563                "authorityMatch": "",
   564                "action": "ROUTE",
   565                "action_arg": " cluster_127_0_0_1_8877_default"
   566              },
   567              {
   568                "scheme": "implicit-http",
   569                "host": "h1.example.com",
   570                "path": "/ambassador/v0/check_ready",
   571                "authority": "",
   572                "authorityMatch": "",
   573                "action": "ROUTE",
   574                "action_arg": " cluster_127_0_0_1_8877_default"
   575              },
   576              {
   577                "scheme": "https",
   578                "host": "h1.example.com",
   579                "path": "/quote/",
   580                "authority": "",
   581                "authorityMatch": "",
   582                "action": "ROUTE",
   583                "action_arg": " cluster_quote_ambassador_default"
   584              },
   585              {
   586                "scheme": "implicit-http",
   587                "host": "h1.example.com",
   588                "path": "/quote/",
   589                "authority": "",
   590                "authorityMatch": "",
   591                "action": "ROUTE",
   592                "action_arg": " cluster_quote_ambassador_default"
   593              }
   594            ]
   595          }
   596        ]
   597      },
   598      {
   599        "server_names": [
   600          "h2.example.com"
   601        ],
   602        "transport_protocol": "tls",
   603        "vhosts": [
   604          {
   605            "name": "ambassador-listener-8443-h2.example.com",
   606            "routes": [
   607              {
   608                "scheme": "implicit-http",
   609                "host": "h2.example.com",
   610                "path": "/ambassador/v0/",
   611                "authority": "",
   612                "authorityMatch": "",
   613                "action": "REDIRECT",
   614                "action_arg": " HTTPS"
   615              },
   616              {
   617                "scheme": "https",
   618                "host": "h2.example.com",
   619                "path": "/ambassador/v0/",
   620                "authority": "",
   621                "authorityMatch": "",
   622                "action": "ROUTE",
   623                "action_arg": " cluster_127_0_0_1_8877_default"
   624              },
   625              {
   626                "scheme": "implicit-http",
   627                "host": "h2.example.com",
   628                "path": "/ambassador/v0/check_alive",
   629                "authority": "",
   630                "authorityMatch": "",
   631                "action": "REDIRECT",
   632                "action_arg": " HTTPS"
   633              },
   634              {
   635                "scheme": "https",
   636                "host": "h2.example.com",
   637                "path": "/ambassador/v0/check_alive",
   638                "authority": "",
   639                "authorityMatch": "",
   640                "action": "ROUTE",
   641                "action_arg": " cluster_127_0_0_1_8877_default"
   642              },
   643              {
   644                "scheme": "implicit-http",
   645                "host": "h2.example.com",
   646                "path": "/ambassador/v0/check_ready",
   647                "authority": "",
   648                "authorityMatch": "",
   649                "action": "REDIRECT",
   650                "action_arg": " HTTPS"
   651              },
   652              {
   653                "scheme": "https",
   654                "host": "h2.example.com",
   655                "path": "/ambassador/v0/check_ready",
   656                "authority": "",
   657                "authorityMatch": "",
   658                "action": "ROUTE",
   659                "action_arg": " cluster_127_0_0_1_8877_default"
   660              },
   661              {
   662                "scheme": "implicit-http",
   663                "host": "h2.example.com",
   664                "path": "/quote/",
   665                "authority": "",
   666                "authorityMatch": "",
   667                "action": "REDIRECT",
   668                "action_arg": " HTTPS"
   669              },
   670              {
   671                "scheme": "https",
   672                "host": "h2.example.com",
   673                "path": "/quote/",
   674                "authority": "",
   675                "authorityMatch": "",
   676                "action": "ROUTE",
   677                "action_arg": " cluster_quote_ambassador_default"
   678              }
   679            ]
   680          }
   681        ]
   682      }
   683    ]
   684  }
   685]

View as plain text