quickjs-tart

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

test433 (803B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 --config
      5 </keywords>
      6 </info>
      7 
      8 #
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.1 200 OK
     13 Content-Length: 6
     14 Content-Type: text/1
     15 
     16 -foo-
     17 </data>
     18 </reply>
     19 
     20 #
     21 # Client-side
     22 <client>
     23 <file1 name="%LOGDIR/curlrc">
     24 --next
     25 header = "a: a"
     26 data = "curlrc read"
     27 </file1>
     28 <server>
     29 http
     30 </server>
     31 <setenv>
     32 XDG_CONFIG_HOME=%PWD/%LOGDIR
     33 HOME=
     34 CURL_HOME=
     35 </setenv>
     36 <name>
     37 Verify XDG_CONFIG_HOME use to find curlrc
     38 </name>
     39 <command option="no-q">
     40 %HOSTIP:%HTTPPORT/%TESTNUMBER
     41 </command>
     42 </client>
     43 
     44 #
     45 # Verify data after the test has been "shot"
     46 <verify>
     47 <protocol nonewline="yes">
     48 POST /%TESTNUMBER HTTP/1.1
     49 Host: %HOSTIP:%HTTPPORT
     50 User-Agent: curl/%VERSION
     51 Accept: */*
     52 a: a
     53 Content-Length: 11
     54 Content-Type: application/x-www-form-urlencoded
     55 
     56 curlrc read
     57 </protocol>
     58 </verify>
     59 </testcase>