quickjs-tart

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

test436 (808B)


      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/.config/curlrc">
     24 --next
     25 header = "a: a"
     26 data = "curlrc read"
     27 </file1>
     28 <server>
     29 http
     30 </server>
     31 <setenv>
     32 CURL_HOME=%PWD/%LOGDIR
     33 XDG_CONFIG_HOME=
     34 </setenv>
     35 <name>
     36 Find .curlrc in .config/curlrc via CURL_HOME
     37 </name>
     38 <command option="no-q">
     39 %HOSTIP:%HTTPPORT/%TESTNUMBER
     40 </command>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <protocol nonewline="yes">
     47 POST /%TESTNUMBER HTTP/1.1
     48 Host: %HOSTIP:%HTTPPORT
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 a: a
     52 Content-Length: 11
     53 Content-Type: application/x-www-form-urlencoded
     54 
     55 curlrc read
     56 </protocol>
     57 </verify>
     58 </testcase>