From a69bf52d385580e71f5bd3f9629f62604da4e428 Mon Sep 17 00:00:00 2001 From: Darren Murray Date: Mon, 31 Jul 2023 14:48:47 +0100 Subject: [PATCH] test: fix tests Signed-off-by: Darren Murray --- integration/aws_controltower_generation_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/aws_controltower_generation_test.go b/integration/aws_controltower_generation_test.go index 97c79d0ae..32eee7a7a 100644 --- a/integration/aws_controltower_generation_test.go +++ b/integration/aws_controltower_generation_test.go @@ -96,7 +96,7 @@ func TestGenerationControlTowerPromptOrgAccountMappings(t *testing.T) { MsgRsp{cmd.QuestionAwsControlTowerCoreAuditProfile, "AWSAdministratorAccess"}, MsgRsp{cmd.QuestionAwsControlTowerCoreAuditRegion, "us-east-1"}, MsgRsp{cmd.QuestionAwsControlTowerConfigureAdvanced, "y"}, - MsgMenu{cmd.ControlTowerAdvancedOptMappings, 3}, + MsgMenu{cmd.ControlTowerAdvancedOptMappings, 5}, MsgRsp{cmd.QuestionControlTowerOrgAccountMappingsLWDefaultAccount, "main"}, MsgRsp{cmd.QuestionControlTowerOrgAccountMappingsLWAccount, "sub-account-1"}, MsgMulitlineRsp{cmd.QuestionControlTowerOrgAccountMappingsAwsAccounts, []string{"123456789011"}}, @@ -212,7 +212,8 @@ func TestGenerationControlTowerPromptOptionalAttributes(t *testing.T) { MsgRsp{cmd.QuestionAwsControlTowerCoreIamRoleExternalID, "01234567"}, MsgRsp{cmd.QuestionControlTowerAnotherAdvancedOpt, "y"}, MsgMenu{cmd.ControlTowerIntegrationPrefixOpt, 3}, - MsgRsp{cmd.QuestionControlTowerAnotherAdvancedOpt, "prefix-"}, + MsgRsp{cmd.QuestionControlTowerPrefix, "prefix-"}, + MsgRsp{cmd.QuestionControlTowerAnotherAdvancedOpt, "y"}, MsgMenu{cmd.ControlTowerIntegrationSqsOpt, 4}, MsgRsp{cmd.QuestionControlTowerSqsQueueName, "lw-queue-name"}, MsgRsp{cmd.QuestionControlTowerAnotherAdvancedOpt, "n"}, @@ -248,7 +249,6 @@ func TestGenerationControlTowerPromptOptionalAttributes(t *testing.T) { aws_controltower.NewAwsSubAccount("AWSAdministratorAccess", "us-east-1", "audit")), aws_controltower.WithOrgAccountMappings(orgAccountMappings), aws_controltower.WithPrefix("prefix-"), - aws_controltower.WithEnableLogFileValidation(), aws_controltower.WithSqsQueueName("lw-queue-name"), aws_controltower.WithExisitingIamRole("arn:aws:iam::12345678:role/test", "lw-role-name", "01234567")).Generate()