Megan Marsh
7ef8b290e8
Apply suggestions from code review
...
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-12-16 15:14:49 -08:00
Megan Marsh
3fd8066a95
Apply suggestions from code review
...
Co-authored-by: Sylvia Moss <moss@hashicorp.com>
2020-12-16 15:14:48 -08:00
Megan Marsh
8650f7990c
add more docs
2020-12-16 15:14:48 -08:00
Megan Marsh
185614f886
more package docs
2020-12-16 15:14:47 -08:00
Megan Marsh
3a66391e30
more package docs
2020-12-16 15:14:46 -08:00
Megan Marsh
c5e6e84806
remove iochan package from sdk, switch to using its descendent, mitchellh/iochan
2020-12-16 15:14:46 -08:00
Megan Marsh
608b62f699
more godoc tweaks
2020-12-16 15:14:45 -08:00
Megan Marsh
e5a95c7017
regenerate code to add extra line to prevent bad godoc synopsis string loading
2020-12-16 15:14:44 -08:00
Megan Marsh
6a672f3948
docs
2020-12-16 15:14:44 -08:00
Megan Marsh
5f34bbd56e
add extra line before package declaration so this line does not become the synopsis of a package for godoc
2020-12-16 15:14:43 -08:00
Adrien Delorme
72c1912b60
allow to discover & start packer-plugin-* muliplugin binaries ( #10277 )
...
This add :
* discovery of `packer-plugin-*` binaries from the known folders and ask them to describe themselves
* tests
For testing: in go we create a bash script that in turn calls back to Go. I could not make the tests to work on windows and then would like to postpone testing this for when we know more about the finite layout of this feature. That is mainly: how things are going to work with init, versioning and such.
2020-12-15 10:58:09 +01:00
Sylvia Moss
b7ebcd78db
add method to set multi-plugin version ( #10386 )
2020-12-14 17:08:38 +01:00
Megan Marsh
2c62c9bff1
fix var naming and docs in acctest package
2020-12-11 15:23:12 -08:00
Megan Marsh
7f1456fc50
add godoc for acctest package
2020-12-11 15:15:25 -08:00
Megan Marsh
2805a59dbd
remove unused tools, add some docs
2020-12-11 15:15:08 -08:00
Megan Marsh
575f8ab8e8
add readme to plugin-sdk subdir
2020-12-11 14:02:41 -08:00
Megan Marsh
a6b6819b1d
add makefile and go.mod file to sdk subdir. this'll make it easier to extract when we're ready. TODO: readme
2020-12-11 13:51:10 -08:00
Adrien Delorme
e89db37717
add aws multiplugin binary canary code ( #10272 )
...
This creates a new plumbing to allow to have binaries that can define any plugin on any type.
2020-12-10 09:22:09 +01:00
Megan Marsh
39ab646236
move plugin and rpc code into sdk; other minor tweaks ( #10359 )
2020-12-09 12:39:54 +01:00
Megan Marsh
48a0172670
better error handling and messaging in provisioner acc test framework
2020-12-08 09:59:04 -08:00
Megan Marsh
2797c686e0
Update packer-plugin-sdk/acctest/provisioneracc/provisioners.go
...
Co-authored-by: Sylvia Moss <moss@hashicorp.com>
2020-12-08 08:24:26 -08:00
Megan Marsh
6ecdd3ca16
small tweaks
2020-12-07 15:45:16 -08:00
Megan Marsh
76177b50ce
Refactor provisioner acceptance tests to shell directly out to Packer rather than import the core. Modify test case formatting to more closely reflect the builder test cases.
2020-12-07 15:45:16 -08:00
Megan Marsh
bc7dae2dff
fix ansible acceptance tests not to import packer core; add override to Builder acctest TestCase so you can supply your own provisionerstore.
2020-12-07 15:45:16 -08:00
Megan Marsh
823ff34434
remove noop ui, replace in adapter and ansible tests with sdk's TestUi
2020-12-07 15:45:16 -08:00
Megan Marsh
352f064b55
fix docker acceptance tests. Turns out they were broken on the main branch too; needed to move noop progress bar into the sdk to be used in the builder testui.
2020-12-03 16:04:49 -08:00
Megan Marsh
8f51a8bfae
move provisioner acceptance tests into sdk alongside builder acceptance tests. Reorganize slightly to make sure no import cycles of doom get formed
2020-12-03 14:22:18 -08:00
Megan Marsh
becf7723e6
move builder/testing to acctest inside sdk
2020-12-03 11:57:06 -08:00
Megan Marsh
afc798c30a
Modify vmware_vmx acceptance tests to use builderT framework
...
Modify builderT framework to enable use of shell and file provisioners
2020-12-03 11:25:02 -08:00
Megan Marsh
3681e2a7ee
fix pathing
2020-12-03 10:39:21 -08:00
Megan Marsh
5576bb5caa
move packer config constants next to the packer config
2020-12-03 10:17:35 -08:00
Megan Marsh
8558d1241f
move TestUi func to sdk
2020-12-03 10:15:30 -08:00
Megan Marsh
16bab1daf1
delete unused code with confusing name collision
2020-12-03 10:15:30 -08:00
Megan Marsh
863e20ad65
move builder/testing framework into sdk; it imports the core but I think we just need to accept that. It doesn't expose the core directly to the SDK.
2020-12-02 09:46:42 -08:00
Megan Marsh
39354f64e5
move helper/communicator dir into packer-plugin-sdk
...
fix imports; fix website and generated partials
2020-12-02 08:41:32 -08:00
Megan Marsh
307f56f560
move postprocessor to sdk, fix generation code
2020-12-02 08:41:31 -08:00
Megan Marsh
b4bc3f1c7b
move provisioner interface into sdk
2020-12-02 08:41:31 -08:00
Megan Marsh
faa3832537
extract builder interface to sdk
2020-12-02 08:41:31 -08:00
Megan Marsh
edbd483917
fix go-getter imports
2020-12-01 10:59:08 -08:00
Megan Marsh
0eff73293a
fix imports, vendoring, and linting
2020-11-30 14:30:30 -08:00
Megan Marsh
d5971ca25e
fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK
2020-11-30 14:30:30 -08:00
Megan Marsh
56a45b04ab
Move hook and communicator definitions to packer-plugin-sdk
2020-11-30 14:30:30 -08:00
Megan Marsh
a6fdeca099
move logsecretfilter into packer sdk
2020-11-30 14:30:30 -08:00
Megan Marsh
14bdb9516c
move Artifact and artifact mock to the sdk
2020-11-30 14:29:52 -08:00
Megan Marsh
c70870cb83
move multierror and multierrorappend into sdk
2020-11-30 14:29:06 -08:00
Megan Marsh
001886670d
move Ui definition into the packer plugin sdk.
2020-11-30 14:26:54 -08:00
Megan Marsh
ea1ac530b0
move hcl2template kv types into the config/custom_types with trilean definitions
2020-11-18 15:46:59 -08:00
Megan Marsh
f8f1ebf0c7
move version and useragent definitions into sdk
2020-11-18 11:42:02 -08:00
Megan Marsh
9e47696dff
move helper/config to bundle with the other template definitions
2020-11-18 10:34:59 -08:00
Megan Marsh
007337989e
move communicator helpers into communicator dir
2020-11-18 10:24:25 -08:00