Commit Graph

28 Commits (7efe3cac3d5e728ee471bbccfd1043e06e4dcafe)

Author SHA1 Message Date
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Ali Rizvi-Santiago d4b00b722a Removed an extra '/' from the TestFileExistsLocally test in common/config_test.go
8 years ago
Ali Rizvi-Santiago efc97dbda2 Fixed TestFileExistsLocally tests in common/config_test.go so that they're actually being run. Added a non-existent-protocol:// test.
8 years ago
Ali Rizvi-Santiago 8a102a42a0 gofmt -w on common/config{,_test}.go
8 years ago
Ali Rizvi-Santiago 15079a99dc Fixed common/config_test.go tests for DownloadableURL to avoid writing to disk on the windows platform. Also added tests for relative paths/uris.
8 years ago
Ali Rizvi-Santiago 50e9cd2ca7 Initial fixes of common/config.go after rebase before refactoring of test-cases so that they don't require root to run.
8 years ago
Ali Rizvi-Santiago c17f827e1d Split up DownloadableURL() into it's individual components: SupportedURL(), DownloadableURL(), and ValidatedURL(). Updated all instances of DownloadableURL() to point to ValidatedURL(). Reverted the tests that are based on un-supported protocols.
8 years ago
Ali Rizvi-Santiago 3cf448f6ec Reverted previously removed additions of tests that check for ftp:// or nonexistent-protocol:// using DownloadableURL. DownloadableURL's responsibility is not to have inherent knowledge of protocols that are available, but to format an invalid url/path to a valid url/path.
8 years ago
Ali Rizvi-Santiago 4a1fb0d262 Grrr...gofmt -w common/*.go
8 years ago
Ali Rizvi-Santiago 5d97b105a8 Removed implementation of the ftp protocol and the usage of cheggaaa's progress-bar as suggested by @SwampDragons. Replaced some of the old smoke-tests that were based on the ftp-protocol non-existing with a "non-existent://" protocol that's guaranteed to not exist.
8 years ago
Ali Rizvi-Santiago 2f1104625d Fixed some of the unit-tests in common/ due to the changes made in {config,download}.go
8 years ago
SwampDragons fb730cf521
Merge pull request #5761 from hashicorp/fix_5713
8 years ago
Megan Marsh bdd186fa2b add tests for fileexistslocally helper function
8 years ago
Megan Marsh a04a921c2d add UNC path to test cases, so I can try to enable it in future
8 years ago
Megan Marsh 154973241f add a bunch of windows filepath tests
8 years ago
Megan Marsh a3d5d40f78 reformat TestDownloadableURL into a table test to allow adding more URLS
8 years ago
Taliesin Sisson e5510873bb Added file with correct line endings
9 years ago
Mitchell Hashimoto adb6b43dd8 common: remove unused config methods
11 years ago
Mitchell Hashimoto 34834057c3 common: add test for empty val
12 years ago
Mitchell Hashimoto ba05119a75 common: user variable conversion to non-string types works [GH-1079]
12 years ago
Mitchell Hashimoto d5981c69f2 common: config strings to slices [GH-950]
12 years ago
Mitchell Hashimoto 5fac6c79c4 fmt
12 years ago
Mitchell Hashimoto 8395d0e97a common: tests for ChooseSTring
12 years ago
Mitchell Hashimoto 7191c1f250 common: Fix URL parsing issues on Windows
12 years ago
Mitchell Hashimoto 4c6800f5a3 common: process user variables in non-string config decodes [GH-598]
12 years ago
Mitchell Hashimoto 48fb1f9dfb common: fix tests
13 years ago
Matthew Hooker 5315b19822 common/config: config filter function [GH-521]
13 years ago
Mitchell Hashimoto 5b7d8fbc74 rename builder/common to common since it is generally useful
13 years ago