-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtests.hurl
More file actions
184 lines (148 loc) · 4.45 KB
/
Copy pathtests.hurl
File metadata and controls
184 lines (148 loc) · 4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
POST {{host}}/v1/csv?id=title&value=rating
content-type: text/csv
```
title,year,director/firstName,director/LastName,actors,rating,imdb
Rocky,1976,John G.,Avildsen,Sylvester Stallone/Talia Shire/Carl Weathers/Burt Young,"8,1",http://www.imdb.com/title/tt0075148/
Rocky 2,1979,Sylvester,Stallone,Sylvester Stallone/Talia Shire/Carl Weathers/Burt Young/Burgess Meredith/Tony Burton/Frank Stallone/Stu Nahan,"7,2",http://www.imdb.com/title/tt0079817/
Rocky 3,1982,Sylvester,Stallone,Sylvester Stallone/Talia Shire/Carl Weathers/Burt Young/Burgess Meredith/Mister T./Hulk Hogan/Tony Burton,"6,7",http://www.imdb.com/title/tt0084602/
Last Action Hero,1993,John,McTierman,Arnold Schwarzenegger/Austin O'Brien/Charles Dance/Bridget Wilson-Sampras,"6,2",http://www.imdb.com/title/tt0107362/
```
HTTP 200
Content-type: application/gzip
##########################################
POST {{host}}/v1/fields/csv?indent=true
content-type: text/csv
```
title,year,director/firstName,director/LastName,actors,rating,imdb
Rocky,1976,John G.,Avildsen,Sylvester Stallone/Talia Shire/Carl Weathers/Burt Young,"8,1",http://www.imdb.com/title/tt0075148/
Rocky 2,1979,Sylvester,Stallone,Sylvester Stallone/Talia Shire/Carl Weathers/Burt Young/Burgess Meredith/Tony Burton/Frank Stallone/Stu Nahan,"7,2",http://www.imdb.com/title/tt0079817/
Rocky 3,1982,Sylvester,Stallone,Sylvester Stallone/Talia Shire/Carl Weathers/Burt Young/Burgess Meredith/Mister T./Hulk Hogan/Tony Burton,"6,7",http://www.imdb.com/title/tt0084602/
Last Action Hero,1993,John,McTierman,Arnold Schwarzenegger/Austin O'Brien/Charles Dance/Bridget Wilson-Sampras,"6,2",http://www.imdb.com/title/tt0107362/
```
HTTP 200
[{
"value": "title"
},
{
"value": "year"
},
{
"value": "director/firstName"
},
{
"value": "director/LastName"
},
{
"value": "actors"
},
{
"value": "rating"
},
{
"value": "imdb"
}]
##########################################
POST {{host}}/v1/fields/json?indent=true
content-type: application/json
[
{"title": "Rocky", "actors": ["Sylvester Stallone", "Talia Shire", "Carl Weathers", "Burt Young"]},
{"title": "Rocky 2", "actors": ["Sylvester Stallone", "Talia Shire", "Carl Weathers", "Burt Young", "Burgess Meredith", "Tony Burton", "Frank Stallone", "Stu Nahan"]}
]
HTTP 200
[{
"value": "title"
},
{
"value": "actors"
}]
##########################################
POST {{host}}/v1/fields/jsonl?indent=true
content-type: application/jsonl
```
{"title": "Rocky", "actors": ["Sylvester Stallone", "Talia Shire", "Carl Weathers", "Burt Young"]}
```
HTTP 200
[{
"value": "title"
},
{
"value": "actors"
}]
##########################################
POST {{host}}/v1/csv?id=id&value=content
content-type: text/csv
```
id,content
1,
2,Not empty
```
HTTP 200
Content-type: application/gzip
##########################################
POST {{host}}/v1/tar-tei2json
content-type: application/x-tar
file,example-tei.tar.gz;
HTTP 200
Content-type: application/gzip
##########################################
POST {{host}}/v1/tar-tei2xml
content-type: application/x-tar
file,example-tei.tar.gz;
HTTP 200
Content-type: application/gzip
##########################################
POST {{host}}/v1/no-convert
content-type: application/gzip
file,example-tei.tar.gz;
HTTP 200
Content-type: application/gzip
[Asserts]
sha256 == hex,8725be350c86b8e7ded291b42b01fdb94255dfa4cfc152c6743df8e334e59782;
##########################################
POST {{host}}/v1/tar-txt2json
content-type: application/gzip
file,texts.tar.gz;
HTTP 200
Content-type: application/gzip
[Asserts]
bytes count >= 475
bytes count <= 495
bytes startsWith hex,1f8b0800;
bytes endsWith hex,00140000;
##########################################
POST {{host}}/v1/txt
content-type: text/plain
```
Ici je mets un texte quelconque.
Sur plusieurs lignes.
Avec des paragraphes séparés.
```
HTTP 200
Content-type: application/gzip
[Asserts]
bytes count >= 370
bytes count <= 475
bytes startsWith hex,1f8b0800;
bytes endsWith hex,000c0000;
##########################################
POST {{host}}/v1/jsonl?id=title&value=year
Content-Type: application/jsonl
```
{"title":"Rocky","year":1976}
{"title":"Rocky 2","year":1979}
{"title":"Rocky 3","year":1982}
```
HTTP 200
Content-type: application/gzip
##########################################
POST {{host}}/v1/json?id=title&value=year
Content-Type: application/json
```
[
{"title":"Rocky","year":1976},
{"title":"Rocky 2","year":1979},
{"title":"Rocky 3","year":1982}
]
```
HTTP 200
Content-type: application/gzip