2022-03-27 08:31:58 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
IPNS
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2023-10-18 08:28:06 +08:00
|
|
|
<data nocheck="yes">
|
2022-03-27 08:31:58 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 21
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/plain
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
Hello curl from IPNS
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2022-03-27 08:31:58 +08:00
|
|
|
IPNS
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2023-10-18 08:28:06 +08:00
|
|
|
--ipfs-gateway http://%HOSTIP:%HTTPPORT ipns://bafybeidecnvkrygux6uoukouzps5ofkeevoqland7kopseiod6pzqvjg7u
|
2022-03-27 08:31:58 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol crlf="yes">
|
2023-10-18 08:28:06 +08:00
|
|
|
GET /ipns/bafybeidecnvkrygux6uoukouzps5ofkeevoqland7kopseiod6pzqvjg7u HTTP/1.1
|
2022-03-27 08:31:58 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
User-Agent: curl/%VERSION
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|