tests/test-archive.t
changeset 37011 16203c6079e7
parent 36880 40193f977a8b
child 37012 5890e5872f36
equal deleted inserted replaced
37010:143219fc2620 37011:16203c6079e7
   124   $ test_archtype gz tar.gz tar.bz2 zip
   124   $ test_archtype gz tar.gz tar.bz2 zip
   125   % gz allowed should give 200
   125   % gz allowed should give 200
   126   200 Script output follows
   126   200 Script output follows
   127   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.gz
   127   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.gz
   128   content-type: application/x-gzip
   128   content-type: application/x-gzip
   129   date: * (glob)
   129   date: $HTTP_DATE$
   130   etag: W/"*" (glob)
   130   etag: W/"*" (glob)
   131   server: * (glob)
   131   server: * (glob)
   132   transfer-encoding: chunked
   132   transfer-encoding: chunked
   133   
   133   
   134   body: size=408, sha1=8fa06531bddecc365a9f5edb0f88b65974bfe505
   134   body: size=408, sha1=8fa06531bddecc365a9f5edb0f88b65974bfe505
   135   % tar.bz2 and zip disallowed should both give 403
   135   % tar.bz2 and zip disallowed should both give 403
   136   403 Archive type not allowed: bz2
   136   403 Archive type not allowed: bz2
   137   content-type: text/html; charset=ascii
   137   content-type: text/html; charset=ascii
   138   date: * (glob)
   138   date: $HTTP_DATE$
   139   etag: W/"*" (glob)
   139   etag: W/"*" (glob)
   140   server: * (glob)
   140   server: * (glob)
   141   transfer-encoding: chunked
   141   transfer-encoding: chunked
   142   
   142   
   143   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   143   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   144   403 Archive type not allowed: zip
   144   403 Archive type not allowed: zip
   145   content-type: text/html; charset=ascii
   145   content-type: text/html; charset=ascii
   146   date: * (glob)
   146   date: $HTTP_DATE$
   147   etag: W/"*" (glob)
   147   etag: W/"*" (glob)
   148   server: * (glob)
   148   server: * (glob)
   149   transfer-encoding: chunked
   149   transfer-encoding: chunked
   150   
   150   
   151   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   151   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   152   $ test_archtype bz2 tar.bz2 zip tar.gz
   152   $ test_archtype bz2 tar.bz2 zip tar.gz
   153   % bz2 allowed should give 200
   153   % bz2 allowed should give 200
   154   200 Script output follows
   154   200 Script output follows
   155   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.bz2
   155   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.bz2
   156   content-type: application/x-bzip2
   156   content-type: application/x-bzip2
   157   date: * (glob)
   157   date: $HTTP_DATE$
   158   etag: W/"*" (glob)
   158   etag: W/"*" (glob)
   159   server: * (glob)
   159   server: * (glob)
   160   transfer-encoding: chunked
   160   transfer-encoding: chunked
   161   
   161   
   162   body: size=426, sha1=8d87f5aba6e14f1bfea6c232985982c278b2fb0b
   162   body: size=426, sha1=8d87f5aba6e14f1bfea6c232985982c278b2fb0b
   163   % zip and tar.gz disallowed should both give 403
   163   % zip and tar.gz disallowed should both give 403
   164   403 Archive type not allowed: zip
   164   403 Archive type not allowed: zip
   165   content-type: text/html; charset=ascii
   165   content-type: text/html; charset=ascii
   166   date: * (glob)
   166   date: $HTTP_DATE$
   167   etag: W/"*" (glob)
   167   etag: W/"*" (glob)
   168   server: * (glob)
   168   server: * (glob)
   169   transfer-encoding: chunked
   169   transfer-encoding: chunked
   170   
   170   
   171   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   171   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   172   403 Archive type not allowed: gz
   172   403 Archive type not allowed: gz
   173   content-type: text/html; charset=ascii
   173   content-type: text/html; charset=ascii
   174   date: * (glob)
   174   date: $HTTP_DATE$
   175   etag: W/"*" (glob)
   175   etag: W/"*" (glob)
   176   server: * (glob)
   176   server: * (glob)
   177   transfer-encoding: chunked
   177   transfer-encoding: chunked
   178   
   178   
   179   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   179   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   180   $ test_archtype zip zip tar.gz tar.bz2
   180   $ test_archtype zip zip tar.gz tar.bz2
   181   % zip allowed should give 200
   181   % zip allowed should give 200
   182   200 Script output follows
   182   200 Script output follows
   183   content-disposition: attachment; filename=test-archive-1701ef1f1510.zip
   183   content-disposition: attachment; filename=test-archive-1701ef1f1510.zip
   184   content-type: application/zip
   184   content-type: application/zip
   185   date: * (glob)
   185   date: $HTTP_DATE$
   186   etag: W/"*" (glob)
   186   etag: W/"*" (glob)
   187   server: * (glob)
   187   server: * (glob)
   188   transfer-encoding: chunked
   188   transfer-encoding: chunked
   189   
   189   
   190   body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650
   190   body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650
   191   % tar.gz and tar.bz2 disallowed should both give 403
   191   % tar.gz and tar.bz2 disallowed should both give 403
   192   403 Archive type not allowed: gz
   192   403 Archive type not allowed: gz
   193   content-type: text/html; charset=ascii
   193   content-type: text/html; charset=ascii
   194   date: * (glob)
   194   date: $HTTP_DATE$
   195   etag: W/"*" (glob)
   195   etag: W/"*" (glob)
   196   server: * (glob)
   196   server: * (glob)
   197   transfer-encoding: chunked
   197   transfer-encoding: chunked
   198   
   198   
   199   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   199   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   200   403 Archive type not allowed: bz2
   200   403 Archive type not allowed: bz2
   201   content-type: text/html; charset=ascii
   201   content-type: text/html; charset=ascii
   202   date: * (glob)
   202   date: $HTTP_DATE$
   203   etag: W/"*" (glob)
   203   etag: W/"*" (glob)
   204   server: * (glob)
   204   server: * (glob)
   205   transfer-encoding: chunked
   205   transfer-encoding: chunked
   206   
   206   
   207   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   207   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   211   $ test_archtype_deprecated gz tar.gz tar.bz2 zip
   211   $ test_archtype_deprecated gz tar.gz tar.bz2 zip
   212   % gz allowed should give 200
   212   % gz allowed should give 200
   213   200 Script output follows
   213   200 Script output follows
   214   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.gz
   214   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.gz
   215   content-type: application/x-gzip
   215   content-type: application/x-gzip
   216   date: * (glob)
   216   date: $HTTP_DATE$
   217   etag: W/"*" (glob)
   217   etag: W/"*" (glob)
   218   server: * (glob)
   218   server: * (glob)
   219   transfer-encoding: chunked
   219   transfer-encoding: chunked
   220   
   220   
   221   body: size=408, sha1=8fa06531bddecc365a9f5edb0f88b65974bfe505
   221   body: size=408, sha1=8fa06531bddecc365a9f5edb0f88b65974bfe505
   222   % tar.bz2 and zip disallowed should both give 403
   222   % tar.bz2 and zip disallowed should both give 403
   223   403 Archive type not allowed: bz2
   223   403 Archive type not allowed: bz2
   224   content-type: text/html; charset=ascii
   224   content-type: text/html; charset=ascii
   225   date: * (glob)
   225   date: $HTTP_DATE$
   226   etag: W/"*" (glob)
   226   etag: W/"*" (glob)
   227   server: * (glob)
   227   server: * (glob)
   228   transfer-encoding: chunked
   228   transfer-encoding: chunked
   229   
   229   
   230   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   230   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   231   403 Archive type not allowed: zip
   231   403 Archive type not allowed: zip
   232   content-type: text/html; charset=ascii
   232   content-type: text/html; charset=ascii
   233   date: * (glob)
   233   date: $HTTP_DATE$
   234   etag: W/"*" (glob)
   234   etag: W/"*" (glob)
   235   server: * (glob)
   235   server: * (glob)
   236   transfer-encoding: chunked
   236   transfer-encoding: chunked
   237   
   237   
   238   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   238   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   239   $ test_archtype_deprecated bz2 tar.bz2 zip tar.gz
   239   $ test_archtype_deprecated bz2 tar.bz2 zip tar.gz
   240   % bz2 allowed should give 200
   240   % bz2 allowed should give 200
   241   200 Script output follows
   241   200 Script output follows
   242   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.bz2
   242   content-disposition: attachment; filename=test-archive-1701ef1f1510.tar.bz2
   243   content-type: application/x-bzip2
   243   content-type: application/x-bzip2
   244   date: * (glob)
   244   date: $HTTP_DATE$
   245   etag: W/"*" (glob)
   245   etag: W/"*" (glob)
   246   server: * (glob)
   246   server: * (glob)
   247   transfer-encoding: chunked
   247   transfer-encoding: chunked
   248   
   248   
   249   body: size=426, sha1=8d87f5aba6e14f1bfea6c232985982c278b2fb0b
   249   body: size=426, sha1=8d87f5aba6e14f1bfea6c232985982c278b2fb0b
   250   % zip and tar.gz disallowed should both give 403
   250   % zip and tar.gz disallowed should both give 403
   251   403 Archive type not allowed: zip
   251   403 Archive type not allowed: zip
   252   content-type: text/html; charset=ascii
   252   content-type: text/html; charset=ascii
   253   date: * (glob)
   253   date: $HTTP_DATE$
   254   etag: W/"*" (glob)
   254   etag: W/"*" (glob)
   255   server: * (glob)
   255   server: * (glob)
   256   transfer-encoding: chunked
   256   transfer-encoding: chunked
   257   
   257   
   258   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   258   body: size=1451, sha1=cbfa5574b337348bfd0564cc534474d002e7d6c7
   259   403 Archive type not allowed: gz
   259   403 Archive type not allowed: gz
   260   content-type: text/html; charset=ascii
   260   content-type: text/html; charset=ascii
   261   date: * (glob)
   261   date: $HTTP_DATE$
   262   etag: W/"*" (glob)
   262   etag: W/"*" (glob)
   263   server: * (glob)
   263   server: * (glob)
   264   transfer-encoding: chunked
   264   transfer-encoding: chunked
   265   
   265   
   266   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   266   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   267   $ test_archtype_deprecated zip zip tar.gz tar.bz2
   267   $ test_archtype_deprecated zip zip tar.gz tar.bz2
   268   % zip allowed should give 200
   268   % zip allowed should give 200
   269   200 Script output follows
   269   200 Script output follows
   270   content-disposition: attachment; filename=test-archive-1701ef1f1510.zip
   270   content-disposition: attachment; filename=test-archive-1701ef1f1510.zip
   271   content-type: application/zip
   271   content-type: application/zip
   272   date: * (glob)
   272   date: $HTTP_DATE$
   273   etag: W/"*" (glob)
   273   etag: W/"*" (glob)
   274   server: * (glob)
   274   server: * (glob)
   275   transfer-encoding: chunked
   275   transfer-encoding: chunked
   276   
   276   
   277   body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650
   277   body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650
   278   % tar.gz and tar.bz2 disallowed should both give 403
   278   % tar.gz and tar.bz2 disallowed should both give 403
   279   403 Archive type not allowed: gz
   279   403 Archive type not allowed: gz
   280   content-type: text/html; charset=ascii
   280   content-type: text/html; charset=ascii
   281   date: * (glob)
   281   date: $HTTP_DATE$
   282   etag: W/"*" (glob)
   282   etag: W/"*" (glob)
   283   server: * (glob)
   283   server: * (glob)
   284   transfer-encoding: chunked
   284   transfer-encoding: chunked
   285   
   285   
   286   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   286   body: size=1450, sha1=71f0b12d59f85fdcfe8ff493e2dc66863f2f7734
   287   403 Archive type not allowed: bz2
   287   403 Archive type not allowed: bz2
   288   content-type: text/html; charset=ascii
   288   content-type: text/html; charset=ascii
   289   date: * (glob)
   289   date: $HTTP_DATE$
   290   etag: W/"*" (glob)
   290   etag: W/"*" (glob)
   291   server: * (glob)
   291   server: * (glob)
   292   transfer-encoding: chunked
   292   transfer-encoding: chunked
   293   
   293   
   294   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352
   294   body: size=1451, sha1=4c5cf0f574446c44feb7f88f4e0e2a56bd92c352