Commit Graph

23 Commits

Author SHA1 Message Date
Megan Marsh 8558d1241f move TestUi func to sdk 2020-12-03 10:15:30 -08:00
Megan Marsh 14bdb9516c move Artifact and artifact mock to the sdk 2020-11-30 14:29:52 -08:00
Megan Marsh 001886670d move Ui definition into the packer plugin sdk. 2020-11-30 14:26:54 -08:00
Megan Marsh 6402362018 create packer-plugin-sdk directory and begin moving the relevant folders into it. 2020-11-13 10:47:36 -08:00
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables. 2019-12-16 21:23:05 -08:00
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
Megan Marsh 056fcb7cea fix tests and add a few new ones 2019-04-03 11:32:49 -07:00
Adrien Delorme e65115a7a0 contextualize post-processor 2019-04-03 15:55:55 +02:00
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Matthew Hooker 81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -07:00
Chris Bednarski 4ef3baa3ee Update test to include some interpolation configs 2015-08-04 19:30:57 -07:00
Chris Bednarski 8d6719e71f Add failing test for compress interpolation 2015-08-03 16:34:24 -07:00
Chris Bednarski 1831a09055 Fix compress crash
- Changed config from pointer to value to fix crash
- Removed acceptance flag from compress tests since they would have
caught this
2015-06-24 17:47:00 -07:00
Chris Bednarski 2d92fd8733 Added test case for gzip that expands the data and compares to what we put in 2015-06-18 19:08:13 -07:00
Chris Bednarski 801e5aaa30 Move test configs into the test func 2015-06-18 18:25:46 -07:00
Chris Bednarski d02f6644d2 Refactored test so it's more DRY and also rearranged things so the test cases and configs are at the top of the file 2015-06-18 18:21:03 -07:00
Chris Bednarski e81378ac39 Fix test case 2015-06-18 04:46:39 -07:00
Chris Bednarski b767aa7f99 Change to compression_level, fix and add tests for format detection 2015-06-18 03:55:51 -07:00
Chris Bednarski 8fdb4f77e0 WIP 2/4 tests passing, still need to re-implement ZIP and bare compression files and do some cleanup 2015-06-18 00:47:33 -07:00
Chris Bednarski ddbc145d29 Implemented acceptance test for compress 2015-06-16 16:31:09 -07:00
Chris Bednarski fe0c548619 Added acceptance test for file builder 2015-06-16 11:30:49 -07:00
John Bellone a492ca7424 Fix warnings about not utilizing test module.
Make these tests green adn them figure out how to test the actual post-processor.
2014-06-12 16:45:37 -04:00
John Bellone a4de58b5f6 [post-processor/compress] Add support for compress.
This commit adds support for a post-processor that produces a compressed
archive that can be uploaded to an OpenStack cluster through either
the Horizon web interface or Glance.
2014-06-12 16:36:37 -04:00