github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/pvl/interp_data_for_test.go (about)

     1  // Copyright 2016 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  //go:build !production
     5  // +build !production
     6  
     7  package pvl
     8  
     9  var sig1 = "g6Rib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgDF5p5xwkO9EIez5YMoECuOUAXvCPRctPH+sUNyTD23sKp3BheWxvYWTFAvJ7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMGM1ZTY5ZTcxYzI0M2JkMTA4N2IzZTU4MzI4MTAyYjhlNTAwNWVmMDhmNDVjYjRmMWZlYjE0MzcyNGMzZGI3YjBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMGM1ZTY5ZTcxYzI0M2JkMTA4N2IzZTU4MzI4MTAyYjhlNTAwNWVmMDhmNDVjYjRmMWZlYjE0MzcyNGMzZGI3YjBhIiwidWlkIjoiYmFhZDNkNDY0NWEzMDQ3NmQyZmE5N2U4MzY0NjY2MTkiLCJ1c2VybmFtZSI6InRlc3RlcnJhbHBoIn0sInNlcnZpY2UiOnsibmFtZSI6InR3aXR0ZXIiLCJ1c2VybmFtZSI6InRlc3RlcnJhbHBoIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjQifSwiY3RpbWUiOjE0NDg5ODgxNTUsImV4cGlyZV9pbiI6NTA0NTc2MDAwLCJtZXJrbGVfcm9vdCI6eyJjdGltZSI6MTQ0ODk4ODEzNywiaGFzaCI6IjAwMjhkNTY2NDczNmM4NGEzMGFmZDZmZmI4M2M4NGYzNjk2YjVlZTNlMmUzYjMyNmMyODY1ZTViYWIzYzAyYzFjY2U5ZGI2YTM3ZjU1ZWU1YmNiNmNlNzAzODY1ZmViZTA2M2U4YWFhZGE0ZWM5ZWJlNjI5OTIzYTA3OWRhYmUzIiwic2Vxbm8iOjMyODE4OX0sInByZXYiOiIwMzlhMzhiZTVhMjAzZWU0ODk3NDQ4NDMyMTMxNmFkMTJhOGI4ODQyNjZhN2UwMmM5MzI3N2YyYTEzNGY0ZDBlIiwic2Vxbm8iOjYsInRhZyI6InNpZ25hdHVyZSJ9o3NpZ8RAVRhCtS9bupx1LdKkuXreFzRQyOyKTslTDpb0rGbx07XSZh7/vj1AZw3eLJnJsrc9DujP0gdgYjlz4i2DNLacAahzaWdfdHlwZSCjdGFnzQICp3ZlcnNpb24B"
    10  
    11  var info1 = ProofInfo{
    12  	ArmoredSig:     sig1,
    13  	Username:       "kronk",
    14  	RemoteUsername: "kronkinator",
    15  	Hostname:       "kronk.example.com",
    16  	Protocol:       "http:",
    17  	APIURL:         "https://rooter.example.com/proofs/kronkinator/5.htjsxt",
    18  }
    19  
    20  var infoBadDomain = ProofInfo{
    21  	ArmoredSig:     sig1,
    22  	Username:       "kronk",
    23  	RemoteUsername: "kronkinator",
    24  	Hostname:       "kronk.example.com/foo", // Path in domain
    25  	Protocol:       "http:",
    26  	APIURL:         "https://rooter.example.com/proofs/kronkinator/5.htjsxt",
    27  }
    28  
    29  var infoBadProto = ProofInfo{
    30  	ArmoredSig:     sig1,
    31  	Username:       "kronk",
    32  	RemoteUsername: "kronkinator",
    33  	Hostname:       "kronk.example.com",
    34  	Protocol:       "spdy:", // Bad protocol.
    35  	APIURL:         "https://rooter.example.com/proofs/kronkinator/5.htjsxt",
    36  }
    37  
    38  var infoBadSig = ProofInfo{
    39  	ArmoredSig:     sig1 + "w",
    40  	Username:       "kronk",
    41  	RemoteUsername: "kronkinator",
    42  	Hostname:       "kronk.example.com",
    43  	Protocol:       "http:",
    44  	APIURL:         "https://rooter.example.com/proofs/kronkinator/5.htjsxt",
    45  }
    46  
    47  var html1 = `
    48  <html>
    49  <head>
    50  <title>proof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ZTVhMjAzZWU0ODk3NDQ4NDMyMTMxNmFkMTJhOGI4ODQyNjZhN2UwMmM5MzI3N2YyYTEzNGY0ZDBlIiwic2Vxbm8iOjYsInRhZyI6InNpZ25hdHVyZSJ9o3NpZ8RAVRhCtS9bupx1LdKkuXreFzRQyOyKTslTDpb0rGbx07XSZh7/vj1AZw3eLJnJsrc9DujP0gdgYjlz4i2DNLacAahzaWdfdHlwZSCjdGFnzQICp3ZlcnNpb24B
    56  	</div>
    57  	<div class="twit" data-x="y">
    58  	evil.com
    59  	</div>
    60  	<div class="twit">
    61  	short 9JHQ8ZNOFRORQUpmH0jLbNbFClOccMEghH5l
    62  	</div>
    63  </body>
    64  </html>
    65  `
    66  
    67  var html2 = `
    68  <html>
    69  <head>
    70  <title>proofer</title>
    71  </head>
    72  <body>
    73  	<div class="a">
    74  		<div class="b">
    75  			<!-- cow -->
    76  			a
    77  			<!-- bunga -->
    78  		</div>
    79  	</div>
    80  	<div class="moo" data-x="y">
    81  	evil.com
    82  	</div>
    83  </body>
    84  </html>
    85  `
    86  
    87  var json1 = ` {
    88    "data": [
    89      {
    90  	}, {
    91        "type": "useless",
    92        "data": "junk"
    93      }, {
    94        "type": "useful",
    95        "poster": "kronk",
    96        "data": "goodproof",
    97        "extra": [1,2,3]
    98      }, {
    99        "type": "useless"
   100      }, {
   101        "type": "useful",
   102        "poster": "eve",
   103        "data": "evil.com",
   104        "extra": [[4],5,6]
   105      }
   106    ]
   107  }`