github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/pgwire/hba/testdata/normalization (about)

     1  subtest empty_conf
     2  
     3  hba
     4  # nothing
     5  ----
     6  # (empty configuration)
     7  
     8  hba
     9  ----
    10  # (empty configuration)
    11  
    12  subtest end
    13  
    14  subtest unicode_normalization
    15  
    16  hba
    17  host all Ὀδυσσεύς all cert-password
    18  ----
    19  # Original configuration:
    20  # host all Ὀδυσσεύς all cert-password
    21  #
    22  # Interpreted configuration:
    23  # TYPE DATABASE USER     ADDRESS METHOD        OPTIONS
    24  host   all      ὀδυσσεύς all     cert-password
    25  
    26  subtest end
    27  
    28  subtest db_normalization
    29  
    30  hba
    31  host some foo all cert-password
    32  host some,more bar all cert-password
    33  ----
    34  # Original configuration:
    35  # host some foo all cert-password
    36  # host some,more bar all cert-password
    37  #
    38  # Interpreted configuration:
    39  # TYPE DATABASE USER ADDRESS METHOD        OPTIONS
    40  host   all      foo  all     cert-password
    41  host   all      bar  all     cert-password
    42  
    43  subtest end
    44  
    45  subtest quoted_all_host
    46  
    47  hba
    48  host all all "all" cert-password
    49  ----
    50  # Original configuration:
    51  # host all all "all" cert-password
    52  #
    53  # Interpreted configuration:
    54  # TYPE DATABASE USER ADDRESS METHOD        OPTIONS
    55  host   all      all  "all"   cert-password
    56  
    57  subtest end
    58  
    59  subtest all_in_user_list
    60  
    61  hba
    62  host all a,all,b all cert-password
    63  host all a,"all",b all cert-password
    64  ----
    65  # Original configuration:
    66  # host all a,all,b all cert-password
    67  # host all a,"all",b all cert-password
    68  #
    69  # Interpreted configuration:
    70  # TYPE DATABASE USER  ADDRESS METHOD        OPTIONS
    71  host   all      all   all     cert-password
    72  host   all      a     all     cert-password
    73  host   all      "all" all     cert-password
    74  host   all      b     all     cert-password
    75  
    76  subtest end
    77  
    78  subtest rule_expansion
    79  
    80  hba
    81  host all a,b,c all cert-password
    82  ----
    83  # Original configuration:
    84  # host all a,b,c all cert-password
    85  #
    86  # Interpreted configuration:
    87  # TYPE DATABASE USER ADDRESS METHOD        OPTIONS
    88  host   all      a    all     cert-password
    89  host   all      b    all     cert-password
    90  host   all      c    all     cert-password
    91  
    92  subtest end