mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-08 09:15:29 -04:00
AB#2579 Add constellation iam create command (#624)
This commit is contained in:
parent
be01cf7129
commit
286803fb97
38 changed files with 2029 additions and 108 deletions
|
@ -28,6 +28,7 @@ func TestMain(m *testing.M) {
|
|||
type stubTerraformClient struct {
|
||||
ip string
|
||||
initSecret string
|
||||
iamOutput terraform.IAMOutput
|
||||
cleanUpWorkspaceCalled bool
|
||||
removeInstallerCalled bool
|
||||
destroyClusterCalled bool
|
||||
|
@ -35,13 +36,18 @@ type stubTerraformClient struct {
|
|||
destroyClusterErr error
|
||||
prepareWorkspaceErr error
|
||||
cleanUpWorkspaceErr error
|
||||
iamOutputErr error
|
||||
}
|
||||
|
||||
func (c *stubTerraformClient) CreateCluster(ctx context.Context) (string, string, error) {
|
||||
return c.ip, c.initSecret, c.createClusterErr
|
||||
}
|
||||
|
||||
func (c *stubTerraformClient) PrepareWorkspace(provider cloudprovider.Provider, input terraform.Variables) error {
|
||||
func (c *stubTerraformClient) CreateIAMConfig(ctx context.Context, provider cloudprovider.Provider) (terraform.IAMOutput, error) {
|
||||
return c.iamOutput, c.iamOutputErr
|
||||
}
|
||||
|
||||
func (c *stubTerraformClient) PrepareWorkspace(path string, input terraform.Variables) error {
|
||||
return c.prepareWorkspaceErr
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue