Commit Graph

53 Commits (2cdc052d7c2920068d0ebca61e6c55698ec96192)

Author SHA1 Message Date
Wilken Rivera d72173ac1a Revert "Merge pull request #9040 from hashicorp/powershell-exit-code-fix-4916"
6 years ago
Wilken Rivera 2e326ef334 Switch back to call operator as opposed to dot sourcing
6 years ago
Wilken Rivera 35df3914d2 provisioner/powershell: Update default execute command to handle script errors
6 years ago
Sylvia Moss 1c30a71d09
Replace file shared state by statebag (#9238)
6 years ago
Matt Kotsenas fe55494207
Add `debug_mode` to PowerShell provisioner (#8996)
6 years ago
Wilken Rivera 11db6014fa provisioner/powershell: Update remote clean up logic
6 years ago
Megan Marsh bdcc95f989
fix execution policy parser to not interfere with legit integers, and add tests (#8997)
6 years ago
Megan Marsh 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Megan Marsh 0ca7c9f397 fix tests
6 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
7 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Paul Meyer ec14ab4875 Add unit test to find issue #7655
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme c7ce4d598e change Provisioner to be passed a context for cancellation
7 years ago
Adrien Delorme a77ce59e36 Update provisioner_test.go
7 years ago
Matt Dainty 19bd28cd72 Fix/add tests
7 years ago
Matt Dainty 412119c27e Fix powershell provisioner tests
8 years ago
Megan Marsh 1d1729a5ff fix powershell tests to use new command
8 years ago
Megan Marsh a0edaf6c46 Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
DanHam b738f41efa
Remove tmp files created by provisioner/powershell tests
8 years ago
DanHam ccf687dac6
Fix tests
8 years ago
Josh Soref 24b4c36fc9 spelling: function
8 years ago
Megan Marsh f3a538db46 fix tests
8 years ago
Megan Marsh 3faf73b5f3 change backslashes to forward slashes in powershell provisioner; was breaking with cygwin
8 years ago
DanHam aaf7102b9a
Tests for escape of chars special to PowerShell in user supplied data
8 years ago
DanHam a7b118ed94
Fix tests post changes. Add test for upload func.
8 years ago
Megan Marsh addedbb680 Revert "Merge pull request #5515 from DanHam/dot-source-env-vars"
8 years ago
Megan Marsh 79fe900378 Revert "Merge pull request #5376 from DanHam/ps-escapes"
8 years ago
DanHam b67c64fd66 Tests for escape of chars special to PowerShell in user supplied data
8 years ago
DanHam 4b89fc1c00
Fix tests post changes. Add test for upload func.
9 years ago
DanHam fa5fd602aa Fix tests post changes
9 years ago
Megan Marsh b05c673a14 Update powershell provisioner test with new default
9 years ago
Megan Marsh 89b058604d update tests for pull 5272
9 years ago
Luke Farnell d9a5b69403 clean up ineffectual assignments
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
DanHam c88fafdf38 provisioner/powershell: align, fix and compact env var test
9 years ago
DanHam 80ebcea5e1
Mirror cleaner test code back from windows-shell to powershell
9 years ago
DanHam be0196492f
Tests for env variables values starting with or containing an equals sign
9 years ago
Taliesin Sisson f38d787b0e Powershell uses UTF16Le for encodedCommand
10 years ago
Taliesin Sisson e36051d394 Pattern for infrastructure changed to quote filename and execute file with ampersand as everything is run in powershell now
10 years ago
Taliesin Sisson d61513bf77 Encode powershell using utf8
10 years ago
Taliesin Sisson 17597b48e1 Base64 encode powershell to avoid any necessary escaping
10 years ago
Taliesin Sisson 5d5809b27e Make hiding of progress backward compatible with old versions of powershell
10 years ago
Taliesin Sisson e8c2b49be8 Use correct quotation of variables
10 years ago
Taliesin Sisson 4b394c8563 Write output will put ouput from function, so we don't want to be getting line from output of function
10 years ago
Taliesin Sisson cd6213eb55 Seems like we do need to escape the double quote
10 years ago
Taliesin Sisson 15137310a7 Must escape string formatting for string fmt
10 years ago
Taliesin Sisson 5285a819dd Quoting of powershell commands and associated tests
10 years ago
Taliesin Sisson 3051ea6633 Quote powershell so that it does not try to interpret command to be run
10 years ago