Skip to content

Commit 0450558

Browse files
This is a finicky test
1 parent 6f0b7c6 commit 0450558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/elasticsearch/security/api_key_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func TestAccResourceSecurityApiKeyWithWorkflowRestrictionOnElasticPre8_9_x(t *te
127127
{
128128
SkipFunc: SkipWhenApiKeysAreNotSupportedOrRestrictionsAreSupported(security.APIKeyMinVersion, security.APIKeyWithRestrictionMinVersion),
129129
Config: testAccResourceSecurityApiKeyCreateWithWorkflowRestriction(apiKeyName),
130-
ExpectError: regexp.MustCompile(fmt.Sprintf(`Error: Specifying "restriction" on an API key role description is not supported in this version of Elasticsearch. Role descriptor(s) %s`, "role-a")),
130+
ExpectError: regexp.MustCompile(fmt.Sprintf(".*Error: Specifying `restriction` on an API key role description is not supported in this version of Elasticsearch. Role descriptor\\(s\\) %s.*", "role-a")),
131131
},
132132
},
133133
})

0 commit comments

Comments
 (0)