mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-10-17 21:11:13 -04:00
initserver: add client verification
This commit is contained in:
parent
bffa5c580c
commit
3b6bc3b28f
39 changed files with 704 additions and 175 deletions
|
@ -27,6 +27,7 @@ func TestMain(m *testing.M) {
|
|||
|
||||
type stubTerraformClient struct {
|
||||
ip string
|
||||
initSecret string
|
||||
cleanUpWorkspaceCalled bool
|
||||
removeInstallerCalled bool
|
||||
destroyClusterCalled bool
|
||||
|
@ -36,8 +37,8 @@ type stubTerraformClient struct {
|
|||
cleanUpWorkspaceErr error
|
||||
}
|
||||
|
||||
func (c *stubTerraformClient) CreateCluster(ctx context.Context) (string, error) {
|
||||
return c.ip, c.createClusterErr
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue