pulumi/pkg/resource/testdata
joeduffy 3d3f778c3d Fix asset bugs; write more tests
This change fixes a couple bugs with assets:

* We weren't recursing into subdirectories in the new "path as
  archive" feature, which meant we missed most of the files.

* We need to make paths relative to the root of the archive
  directory itself, otherwise paths end up redundantly including
  the asset's root folder path.

* We need to clean the file paths before adding them to the
  archive asset map, otherwise they are inconsistent between the
  path, tar, tgz, and zip cases.

* Ignore directories when traversing zips, since they aren't
  included in the other formats.

* Tolerate io.EOF errors when reading the ZIP contents into blobs.

* Add test cases for the four different archive kinds.

This fixes pulumi/pulumi-aws#50.
2017-10-24 09:00:11 -07:00
..
test_dir Fix asset bugs; write more tests 2017-10-24 09:00:11 -07:00
Fox.txt Fix asset bugs; write more tests 2017-10-24 09:00:11 -07:00
test_dir.tar Fix asset bugs; write more tests 2017-10-24 09:00:11 -07:00
test_dir.tgz Fix asset bugs; write more tests 2017-10-24 09:00:11 -07:00
test_dir.zip Fix asset bugs; write more tests 2017-10-24 09:00:11 -07:00