quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test2032 (2238B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP Basic auth
      7 HTTP NTLM auth
      8 NTLM
      9 flaky
     10 timing-dependent
     11 </keywords>
     12 </info>
     13 # Server-side
     14 <reply>
     15 
     16 <!-- Basic auth -->
     17 <data100>
     18 HTTP/1.1 401 Need Basic or NTLM auth
     19 Server: Microsoft-IIS/5.0
     20 Content-Type: text/html; charset=iso-8859-1
     21 Content-Length: 29
     22 WWW-Authenticate: NTLM
     23 WWW-Authenticate: Basic realm="testrealm"
     24 
     25 This is a bad password page!
     26 </data100>
     27 
     28 <!-- NTLM auth -->
     29 <data200>
     30 HTTP/1.1 401 Need Basic or NTLM auth (2)
     31 Server: Microsoft-IIS/5.0
     32 Content-Type: text/html; charset=iso-8859-1
     33 Content-Length: 27
     34 WWW-Authenticate: NTLM
     35 WWW-Authenticate: Basic realm="testrealm"
     36 
     37 This is not the real page!
     38 </data200>
     39 
     40 <data1201>
     41 HTTP/1.1 401 NTLM intermediate (2)
     42 Server: Microsoft-IIS/5.0
     43 Content-Type: text/html; charset=iso-8859-1
     44 Content-Length: 33
     45 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
     46 
     47 This is still not the real page!
     48 </data1201>
     49 
     50 <data1202>
     51 HTTP/1.1 200 Things are fine in server land
     52 Server: Microsoft-IIS/5.0
     53 Content-Type: text/html; charset=iso-8859-1
     54 Content-Length: 32
     55 
     56 Finally, this is the real page!
     57 </data1202>
     58 
     59 <datacheck>
     60 Data connection 0: 228
     61 Data connection 1: 228
     62 Data connection 2: 402
     63 </datacheck>
     64 
     65 </reply>
     66 
     67 # Client-side
     68 <client>
     69 <features>
     70 NTLM
     71 SSL
     72 !SSPI
     73 </features>
     74 <server>
     75 http
     76 </server>
     77 <tool>
     78 lib2032
     79 </tool>
     80 
     81 <name>
     82 NTLM connection mapping
     83 </name>
     84 <command>
     85 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     86 </command>
     87 </client>
     88 
     89 # Verify data after the test has been "shot"
     90 <verify>
     91 <protocol>
     92 GET /%TESTNUMBER0100 HTTP/1.1
     93 Host: %HOSTIP:%HTTPPORT
     94 Authorization: Basic %b64[testuser:testpass]b64%
     95 Accept: */*
     96 
     97 GET /%TESTNUMBER0100 HTTP/1.1
     98 Host: %HOSTIP:%HTTPPORT
     99 Authorization: Basic %b64[testuser:testpass]b64%
    100 Accept: */*
    101 
    102 GET /%TESTNUMBER0200 HTTP/1.1
    103 Host: %HOSTIP:%HTTPPORT
    104 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    105 Accept: */*
    106 
    107 GET /%TESTNUMBER0200 HTTP/1.1
    108 Host: %HOSTIP:%HTTPPORT
    109 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
    110 Accept: */*
    111 
    112 </protocol>
    113 </verify>
    114 </testcase>