From 992411a0c408e3a9c765b1ffede262bf7f26b77a Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Tue, 18 Jun 2024 15:38:50 +0000 Subject: [PATCH] Fix test Signed-off-by: Gabriel Adrian Samfira --- provider/provider_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/provider/provider_test.go b/provider/provider_test.go index e291d4c..b14b647 100644 --- a/provider/provider_test.go +++ b/provider/provider_test.go @@ -136,9 +136,12 @@ func TestCreateInstanceError(t *testing.T) { Region: "us-east-1", SubnetID: "subnet-123456", Credentials: config.Credentials{ - AccessKeyID: "accessKey", - SecretAccessKey: "secretKey", - SessionToken: "token", + CredentialType: config.AWSCredentialTypeStatic, + StaticCredentials: config.StaticCredentials{ + AccessKeyID: "accessKey", + SecretAccessKey: "secretKey", + SessionToken: "token", + }, }, } mockComputeClient := new(client.MockComputeClient)