comparison dav.t @ 1535:144c6ce732e4

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 02 Dec 2019 14:56:37 +0300
parents 6efe4dbf713b
children 0ce1c9516764
comparison
equal deleted inserted replaced
1534:96fb3513345b 1535:144c6ce732e4
144 Connection: close 144 Connection: close
145 145
146 EOF 146 EOF
147 147
148 like($r, qr/204 No Content/, 'copy file escaped'); 148 like($r, qr/204 No Content/, 'copy file escaped');
149
150 is(-s $t->testdir() . '/file-moved escape', 10, 'file copied unescaped'); 149 is(-s $t->testdir() . '/file-moved escape', 10, 'file copied unescaped');
151 150
152 $t->write_file('file.exist', join '', (1 .. 42)); 151 $t->write_file('file.exist', join '', (1 .. 42));
153 152
154 $r = http(<<EOF); 153 $r = http(<<EOF);
158 Connection: close 157 Connection: close
159 158
160 EOF 159 EOF
161 160
162 like($r, qr/204 No Content/, 'copy file overwrite'); 161 like($r, qr/204 No Content/, 'copy file overwrite');
163
164 TODO: {
165 local $TODO = 'not yet' unless $t->has_version('1.15.3');
166
167 is(-s $t->testdir() . '/file.exist', 10, 'target file truncated'); 162 is(-s $t->testdir() . '/file.exist', 10, 'target file truncated');
168
169 }
170 163
171 $r = http(<<EOF . '0123456789'); 164 $r = http(<<EOF . '0123456789');
172 PUT /i/alias HTTP/1.1 165 PUT /i/alias HTTP/1.1
173 Host: localhost 166 Host: localhost
174 Connection: close 167 Connection: close