Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Merge with latest master changes updating SDK to v20240530002 #2390

Merged
merged 21 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
bfc18aa
doc: Updates `mongodbatlas_global_cluster_config` doc about self-mana…
lantoli Jun 27, 2024
78e6eba
test: Unifies Azure and GCP networking tests (#2371)
lantoli Jun 27, 2024
c647bf2
chore: Updates examples link in index.html.markdown for v1.17.3 release
svc-apix-Bot Jun 27, 2024
1fad9f4
chore: Updates CHANGELOG.md header for v1.17.3 release
svc-apix-Bot Jun 27, 2024
45bc5e5
doc: Updates Terraform Compatibility Matrix documentation (#2370)
svc-apix-Bot Jul 1, 2024
7068f36
use ComposeAggregateTestCheckFunc (#2375)
lantoli Jul 1, 2024
27ca92a
chore: Updates asdf to TF 1.9.0 and compatibility matrix body (#2376)
lantoli Jul 1, 2024
ac3f1fd
fix: stale.yaml gh action (#2379)
andreaangiolillo Jul 1, 2024
31d4381
doc: Updates alert-config examples (#2378)
EspenAlbert Jul 2, 2024
f2078c5
chore: Updates Atlas Go SDK (#2380)
svc-apix-Bot Jul 2, 2024
2b82c1a
chore: Bump github.com/aws/aws-sdk-go from 1.54.8 to 1.54.13 (#2383)
dependabot[bot] Jul 3, 2024
15143f0
chore: Bump amannn/action-semantic-pull-request from 5.5.2 to 5.5.3 (…
dependabot[bot] Jul 3, 2024
d6ac0c8
test: Improves tests for mongodbatlas_search_index (#2384)
lantoli Jul 3, 2024
789f38a
chore: Updates nightly tests to TF 1.9.x (#2386)
lantoli Jul 3, 2024
5dffb29
fix: Emptying cloud_back_schedule "copy_settings" (#2387)
EspenAlbert Jul 4, 2024
7de7e64
chore: Updates CHANGELOG.md for #2387
svc-apix-Bot Jul 4, 2024
10945ce
Merge remote-tracking branch 'origin/master' into CLOUDP-260124-merge
AgustinBettati Jul 4, 2024
889152f
fixing merge conflicts and adopting preview version
AgustinBettati Jul 4, 2024
2288b94
chore: Updates delete logic for `mongodbatlas_search_deployment` (#2389)
lantoli Jul 4, 2024
66150de
add test for symmetric sharded cluster using old schema and skip rela…
AgustinBettati Jul 4, 2024
9e4d275
Merge remote-tracking branch 'origin/master' into CLOUDP-260124-merge
AgustinBettati Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/2387.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/mongodbatlas_cloud_backup_schedule: Updates `copy_settings` on changes (even when empty)
```
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
permissions:
pull-requests: write # Needed by sticky-pull-request-comment
steps:
- uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }}
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
id: stale
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
inputs:
terraform_matrix:
description: 'Terraform version matrix (JSON array)'
default: '["1.8.x", "1.7.x", "1.6.x", "1.5.x", "1.4.x", "1.3.x", "1.2.x"]'
default: '["1.9.x", "1.8.x", "1.7.x", "1.6.x", "1.5.x", "1.4.x", "1.3.x"]'
provider_matrix:
description: 'Previous MongoDB Atlas Provider version matrix for migration tests (JSON array)'
default: '[""]' # "" for latest version
Expand Down Expand Up @@ -42,7 +42,7 @@ concurrency:
jobs:
versions:
env:
schedule_terraform_matrix: '["1.8.x"]'
schedule_terraform_matrix: '["${{ vars.TF_VERSION_LATEST }}"]'
schedule_provider_matrix: '[""]' # "" for latest version
runs-on: ubuntu-latest
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_tf_compatibility_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
commit-message: "doc: Updates Terraform Compatibility Matrix documentation"
delete-branch: true
branch: terraform-compatibility-matrix-update
body: Automatic updates for Terraform Compatibility Matrix documentation
body: "Automatic updates for Terraform Compatibility Matrix documentation. **Action Required**: Update test-suite.yml, .tools-version files, and TF_VERSION_LATEST GitHub environment variable if needed."
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang 1.22.4
terraform 1.8.5
terraform 1.9.0
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## (Unreleased)

BUG FIXES:

* resource/mongodbatlas_cloud_backup_schedule: Updates `copy_settings` on changes (even when empty) ([#2387](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2387))

## 1.17.3 (June 27, 2024)

## 1.17.2 (June 20, 2024)

ENHANCEMENTS:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/andygrunwald/go-jira/v2 v2.0.0-20240116150243-50d59fe116d6
github.com/aws/aws-sdk-go v1.54.8
github.com/aws/aws-sdk-go v1.54.13
github.com/go-test/deep v1.1.1
github.com/hashicorp/go-changelog v0.0.0-20240318095659-4d68c58a6e7f
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
Expand All @@ -25,7 +25,7 @@ require (
github.com/zclconf/go-cty v1.14.4
go.mongodb.org/atlas v0.36.0
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240628150242-4d7b444ed046
go.mongodb.org/atlas-sdk/v20240530002 v20240530002.0.1-0.20240703083409-9e77f6cad45f
Comment on lines 27 to +28
Copy link
Member Author

@AgustinBettati AgustinBettati Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • v20231115014 is preserved to use old cluster endpoints
  • v20240530002 is adjusted to use lastest preview which includes new cluster API

go.mongodb.org/realm v0.1.0
)

Expand Down
20 changes: 6 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY
github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
github.com/aws/aws-sdk-go v1.37.0/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.54.8 h1:+soIjaRsuXfEJ9ts9poJD2fIIzSSRwfx+T69DrTtL2M=
github.com/aws/aws-sdk-go v1.54.8/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
github.com/aws/aws-sdk-go v1.54.13 h1:zpCuiG+/mFdDY/klKJvmSioAZWk45F4rLGq0JWVAAzk=
github.com/aws/aws-sdk-go v1.54.13/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
Expand Down Expand Up @@ -782,18 +782,10 @@ go.mongodb.org/atlas v0.36.0 h1:m05S3AO7zkl+bcG1qaNsEKBnAqnKx2FDwLooHpIG3j4=
go.mongodb.org/atlas v0.36.0/go.mod h1:nfPldE9dSama6G2IbIzmEza02Ly7yFZjMMVscaM0uEc=
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0 h1:hN7x3m6THf03q/tE48up1j0U/26lJmx+s1LXB/qvHHc=
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0/go.mod h1:pCl46YnWOIde8lq27whXDwUseNeUvtAy3vy5ZDeTcBA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.0 h1:Lx3SCYLACxii0pqu8ZoeOvTPXNZXn/nejsbxaavacAY=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.0/go.mod h1:xfvOKGvcdJ12uduvUSIIfcHQvEpPXc9UQT+DYUCrmlA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240614083321-69cb517ed2e5 h1:erJ9+6ONNKQ1LLxpS49qRq8nCrhCLB1nAo8Ntz579O0=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240614083321-69cb517ed2e5/go.mod h1:xfvOKGvcdJ12uduvUSIIfcHQvEpPXc9UQT+DYUCrmlA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240619083352-d423f3e4cbe1 h1:q7r+JFie1lLZ1+ndlswVxpvWmo9/Bd62fdT2hezWMNk=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240619083352-d423f3e4cbe1/go.mod h1:xfvOKGvcdJ12uduvUSIIfcHQvEpPXc9UQT+DYUCrmlA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240621083407-1908ed1f83ea h1:0RjNbmuy5swpaV7nFIEd6h6LsAaauPeVBSTaN2xcdzA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240621083407-1908ed1f83ea/go.mod h1:xfvOKGvcdJ12uduvUSIIfcHQvEpPXc9UQT+DYUCrmlA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240624083419-fb05c1937b8a h1:9HlqteDe9q+S5A222pfnyHJiYNOBDsXBA1UdESHkhz4=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240624083419-fb05c1937b8a/go.mod h1:xfvOKGvcdJ12uduvUSIIfcHQvEpPXc9UQT+DYUCrmlA=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240628150242-4d7b444ed046 h1:jZLppPtf//Bfc2bSvYAFpxyAHtu0geaxuBeG+L++Fxs=
go.mongodb.org/atlas-sdk/v20240530001 v20240530001.0.1-0.20240628150242-4d7b444ed046/go.mod h1:xFOIZUbSSx4dttH/lQwxnsYS7N3/tPiYPCCwTHaZrtk=
go.mongodb.org/atlas-sdk/v20240530002 v20240530002.0.0 h1:D+e3bpRwa9WH3HHs8bLjOdjTp1vdlp83ZYithzGbaQ8=
go.mongodb.org/atlas-sdk/v20240530002 v20240530002.0.0/go.mod h1:seuG5HpfG20/8FhJGyWi4yL7hqAcmq7pf/G0gipNOyM=
go.mongodb.org/atlas-sdk/v20240530002 v20240530002.0.1-0.20240703083409-9e77f6cad45f h1:p4oDdUBXj4hW/QUwQ6R3Uqx8tMJw1Z8g4b6/hfZBHfk=
go.mongodb.org/atlas-sdk/v20240530002 v20240530002.0.1-0.20240703083409-9e77f6cad45f/go.mod h1:seuG5HpfG20/8FhJGyWi4yL7hqAcmq7pf/G0gipNOyM=
go.mongodb.org/realm v0.1.0 h1:zJiXyLaZrznQ+Pz947ziSrDKUep39DO4SfA0Fzx8M4M=
go.mongodb.org/realm v0.1.0/go.mod h1:4Vj6iy+Puo1TDERcoh4XZ+pjtwbOzPpzqy3Cwe8ZmDM=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
Expand Down
24 changes: 24 additions & 0 deletions internal/common/conversion/collections.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package conversion

import "reflect"

// HasElementsSliceOrMap checks if param is a non-empty slice or map
func HasElementsSliceOrMap(value any) bool {
v := reflect.ValueOf(value)
if v.Kind() == reflect.Slice || v.Kind() == reflect.Map {
return v.Len() > 0
}
return false
}

// ToAnySlicePointer converts to a slice pointer of any as needed in some Atlas SDK Go structs
func ToAnySlicePointer(value *[]map[string]any) *[]any {
if value == nil {
return nil
}
ret := make([]any, len(*value))
for i, item := range *value {
ret[i] = item
}
return &ret
}
63 changes: 63 additions & 0 deletions internal/common/conversion/collections_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package conversion_test

import (
"testing"

"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/conversion"
"github.com/stretchr/testify/assert"
)

func TestHasElementsSliceOrMap(t *testing.T) {
testCasesTrue := map[string]any{
"slice": []string{"hi"},
"map": map[string]string{"hi": "there"},
"int int map": map[int]int{1: 2},
"double map": map[string]map[string]string{
"hi": {"there": "bye"},
},
}
testCasesFalse := map[string]any{
"nil": nil,
"empty slice": []string{},
"empty map": map[string]string{},
"empty int int map": map[int]int{},
"not a collection but with len": "hello",
"random object": 123,
}
for name, value := range testCasesTrue {
t.Run(name, func(t *testing.T) {
assert.True(t, conversion.HasElementsSliceOrMap(value))
})
}
for name, value := range testCasesFalse {
t.Run(name, func(t *testing.T) {
assert.False(t, conversion.HasElementsSliceOrMap(value))
})
}
}

func TestToAnySlicePointer(t *testing.T) {
testCases := map[string]*[]map[string]any{
"nil": nil,
"empty": {},
"one element": {{"hi": "there"}},
"more complex": {
{"hi": "there"},
{"bye": 1234},
},
}
for name, value := range testCases {
t.Run(name, func(t *testing.T) {
ret := conversion.ToAnySlicePointer(value)
if ret == nil {
assert.Nil(t, value)
} else {
assert.NotNil(t, ret)
assert.Equal(t, len(*value), len(*ret))
for i := range *value {
assert.Equal(t, (*value)[i], (*ret)[i])
}
}
})
}
}
2 changes: 1 addition & 1 deletion internal/common/conversion/flatten_expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package conversion
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20240530002/admin"
)

func FlattenLinks(links []admin.Link) []map[string]string {
Expand Down
36 changes: 18 additions & 18 deletions internal/config/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"time"

"go.mongodb.org/atlas-sdk/v20231115014/admin"
adminPreview "go.mongodb.org/atlas-sdk/v20240530001/admin"
admin20231115 "go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20240530002/admin"
matlasClient "go.mongodb.org/atlas/mongodbatlas"
realmAuth "go.mongodb.org/realm/auth"
"go.mongodb.org/realm/realm"
Expand All @@ -29,10 +29,10 @@ const (

// MongoDBClient contains the mongodbatlas clients and configurations
type MongoDBClient struct {
Atlas *matlasClient.Client
AtlasV2 *admin.APIClient
AtlasV2Preview *adminPreview.APIClient
Config *Config
Atlas *matlasClient.Client
AtlasV2 *admin.APIClient
AtlasV220231115 *admin20231115.APIClient
Config *Config
}

// Config contains the configurations needed to use SDKs
Expand Down Expand Up @@ -105,16 +105,16 @@ func (c *Config) NewClient(ctx context.Context) (any, error) {
return nil, err
}

sdkV2PreviewClient, err := c.newSDKV2PreviewClient(client)
sdkV220231115Client, err := c.newSDKV220231115Client(client)
if err != nil {
return nil, err
}

clients := &MongoDBClient{
Atlas: atlasClient,
AtlasV2: sdkV2Client,
AtlasV2Preview: sdkV2PreviewClient,
Config: c,
Atlas: atlasClient,
AtlasV2: sdkV2Client,
AtlasV220231115: sdkV220231115Client,
Config: c,
}

return clients, nil
Expand All @@ -136,15 +136,15 @@ func (c *Config) newSDKV2Client(client *http.Client) (*admin.APIClient, error) {
return sdkv2, nil
}

func (c *Config) newSDKV2PreviewClient(client *http.Client) (*adminPreview.APIClient, error) {
opts := []adminPreview.ClientModifier{
adminPreview.UseHTTPClient(client),
adminPreview.UseUserAgent(userAgent(c)),
adminPreview.UseBaseURL(c.BaseURL),
adminPreview.UseDebug(false)}
func (c *Config) newSDKV220231115Client(client *http.Client) (*admin20231115.APIClient, error) {
opts := []admin20231115.ClientModifier{
admin20231115.UseHTTPClient(client),
admin20231115.UseUserAgent(userAgent(c)),
admin20231115.UseBaseURL(c.BaseURL),
admin20231115.UseDebug(false)}

// Initialize the MongoDB Versioned Atlas Client.
sdkv2, err := adminPreview.NewClient(opts...)
sdkv2, err := admin20231115.NewClient(opts...)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider_authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAccSTSAssumeRole_basic(t *testing.T) {
Steps: []resource.TestStep{
{
Config: configProject(orgID, projectName),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "org_id", orgID),
resource.TestCheckResourceAttr(resourceName, "name", projectName),
resource.TestCheckResourceAttr(resourceName, "cluster_count", "0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAccConfigDSAccesslistAPIKey_basic(t *testing.T) {
Steps: []resource.TestStep{
{
Config: configDS(orgID, description, ipAddress),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
checkExists(resourceName),
resource.TestCheckResourceAttrSet(resourceName, "org_id"),
resource.TestCheckResourceAttrSet(resourceName, "ip_address"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/conversion"
"github.com/mongodb/terraform-provider-mongodbatlas/internal/config"

"go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20240530002/admin"
)

func PluralDataSource() *schema.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccConfigDSAccesslistAPIKeys_basic(t *testing.T) {
Steps: []resource.TestStep{
{
Config: configDSPlural(orgID, description, ipAddress),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
checkExists(resourceName),
resource.TestCheckResourceAttrSet(resourceName, "org_id"),
resource.TestCheckResourceAttrSet(resourceName, "ip_address"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/conversion"
"github.com/mongodb/terraform-provider-mongodbatlas/internal/config"
"go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20240530002/admin"
)

func Resource() *schema.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestMigProjectAccesslistAPIKey_SettingIPAddress(t *testing.T) {
{
ExternalProviders: mig.ExternalProviders(),
Config: configWithIPAddress(orgID, description, ipAddress),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
checkExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "org_id", orgID),
resource.TestCheckResourceAttr(resourceName, "ip_address", ipAddress),
Expand Down Expand Up @@ -54,7 +54,7 @@ func TestMigProjectAccesslistAPIKey_SettingCIDRBlock(t *testing.T) {
{
ExternalProviders: acc.ExternalProviders("1.14.0"),
Config: configWithCIDRBlock(orgID, description, cidrBlock),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
checkExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "org_id", orgID),
resource.TestCheckResourceAttr(resourceName, "cidr_block", cidrBlock),
Expand Down Expand Up @@ -92,7 +92,7 @@ func TestMigProjectAccesslistAPIKey_SettingCIDRBlock_WideCIDR_SDKMigration(t *te
{
ExternalProviders: acc.ExternalProviders("1.14.0"),
Config: configWithCIDRBlock(orgID, description, cidrBlock),
Check: resource.ComposeTestCheckFunc(
Check: resource.ComposeAggregateTestCheckFunc(
checkExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "org_id", orgID),
resource.TestCheckResourceAttr(resourceName, "cidr_block", cidrBlock),
Expand Down
Loading
Loading