mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-02 03:56:07 -04:00
Use terraform in CLI to create QEMU cluster (#172)
* Use terraform in CLI to create QEMU cluster * Dont allow qemu creation on os/arch other than linux/amd64 * Allow usage of --name flag for QEMU resources Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
2b32b79026
commit
804c173d52
41 changed files with 1066 additions and 182 deletions
|
@ -40,6 +40,10 @@ func TestValidateConfig(t *testing.T) {
|
|||
wantOutput: true,
|
||||
wantErr: true,
|
||||
},
|
||||
"Azure config with all required fields is valid": {
|
||||
cnf: defaultConfigWithExpectedMeasurements(t, config.Default(), cloudprovider.Azure),
|
||||
provider: cloudprovider.Azure,
|
||||
},
|
||||
"default GCP config is not valid": {
|
||||
cnf: func() *config.Config {
|
||||
cnf := config.Default()
|
||||
|
@ -52,7 +56,11 @@ func TestValidateConfig(t *testing.T) {
|
|||
wantOutput: true,
|
||||
wantErr: true,
|
||||
},
|
||||
"default QEMU config is valid": {
|
||||
"GCP config with all required fields is valid": {
|
||||
cnf: defaultConfigWithExpectedMeasurements(t, config.Default(), cloudprovider.GCP),
|
||||
provider: cloudprovider.GCP,
|
||||
},
|
||||
"default QEMU config is not valid": {
|
||||
cnf: func() *config.Config {
|
||||
cnf := config.Default()
|
||||
qemu := cnf.Provider.QEMU
|
||||
|
@ -60,6 +68,12 @@ func TestValidateConfig(t *testing.T) {
|
|||
cnf.Provider.QEMU = qemu
|
||||
return cnf
|
||||
}(),
|
||||
provider: cloudprovider.QEMU,
|
||||
wantOutput: true,
|
||||
wantErr: true,
|
||||
},
|
||||
"QEMU config with all required fields is valid": {
|
||||
cnf: defaultConfigWithExpectedMeasurements(t, config.Default(), cloudprovider.QEMU),
|
||||
provider: cloudprovider.QEMU,
|
||||
},
|
||||
"config with an error": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue