From 26ce92ec20adede22a575c34f92f2554d17d62eb Mon Sep 17 00:00:00 2001 From: Junio Cezar Date: Tue, 30 Jan 2024 16:17:29 -0300 Subject: [PATCH] Update some tests --- .../repository/resource_cyral_repository_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cyral/internal/repository/resource_cyral_repository_test.go b/cyral/internal/repository/resource_cyral_repository_test.go index bca4824c..5ce9a2e7 100644 --- a/cyral/internal/repository/resource_cyral_repository_test.go +++ b/cyral/internal/repository/resource_cyral_repository_test.go @@ -115,6 +115,7 @@ var ( MongoDBSettings: &repository.MongoDBSettings{ ReplicaSetName: "some-replica-set", ServerType: repository.ReplicaSet, + Flavor: "mongodb", }, } @@ -136,6 +137,7 @@ var ( ReplicaSetName: "myReplicaSet", ServerType: "replicaset", SRVRecordName: "mySRVRecord", + Flavor: "documentdb", }, } ) @@ -236,6 +238,13 @@ func repoCheckFuctions(repo repository.RepoInfo, resName string) resource.TestCh repo.MongoDBSettings.ReplicaSetName), }...) } + if repo.MongoDBSettings.Flavor != "" { + checkFuncs = append(checkFuncs, []resource.TestCheckFunc{ + resource.TestCheckResourceAttr(resourceFullName, + "mongodb_settings.0.flavor", + repo.MongoDBSettings.Flavor), + }...) + } checkFuncs = append(checkFuncs, []resource.TestCheckFunc{ resource.TestCheckResourceAttr(resourceFullName, "mongodb_settings.0.server_type",