Remove iamid package

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2023-08-08 12:06:22 +02:00 committed by Daniel Weiße
parent 23394ea2e2
commit 21c80e7bf3
10 changed files with 81 additions and 115 deletions

View file

@ -13,7 +13,6 @@ import (
"errors"
"testing"
"github.com/edgelesssys/constellation/v2/cli/internal/iamid"
"github.com/edgelesssys/constellation/v2/cli/internal/terraform"
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
"github.com/edgelesssys/constellation/v2/internal/cloud/gcpshared"
@ -33,9 +32,9 @@ func TestIAMCreator(t *testing.T) {
SaKey: "not_a_secret",
},
}
validGCPIAMIDFile := iamid.File{
validGCPIAMIDFile := IAMOutput{
CloudProvider: cloudprovider.GCP,
GCPOutput: iamid.GCPFile{
GCPOutput: GCPIAMOutput{
ServiceAccountKey: "not_a_secret",
},
}
@ -52,9 +51,9 @@ func TestIAMCreator(t *testing.T) {
UAMIID: "test_uami_id",
},
}
validAzureIAMIDFile := iamid.File{
validAzureIAMIDFile := IAMOutput{
CloudProvider: cloudprovider.Azure,
AzureOutput: iamid.AzureFile{
AzureOutput: AzureIAMOutput{
SubscriptionID: "test_subscription_id",
TenantID: "test_tenant_id",
UAMIID: "test_uami_id",
@ -71,9 +70,9 @@ func TestIAMCreator(t *testing.T) {
ControlPlaneInstanceProfile: "test_control_plane_instance_profile",
},
}
validAWSIAMIDFile := iamid.File{
validAWSIAMIDFile := IAMOutput{
CloudProvider: cloudprovider.AWS,
AWSOutput: iamid.AWSFile{
AWSOutput: AWSIAMOutput{
ControlPlaneInstanceProfile: "test_control_plane_instance_profile",
WorkerNodeInstanceProfile: "test_worker_node_instance_profile",
},
@ -84,7 +83,7 @@ func TestIAMCreator(t *testing.T) {
newTfClientErr error
config *IAMConfigOptions
provider cloudprovider.Provider
wantIAMIDFile iamid.File
wantIAMIDFile IAMOutput
wantErr bool
}{
"new terraform client err": {