We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
max_retries
1 parent bb89bf7 commit 544465aCopy full SHA for 544465a
1 file changed
github/provider_test.go
@@ -173,11 +173,15 @@ func TestAccProviderConfigure(t *testing.T) {
173
})
174
175
t.Run("can be configured with max retries", func(t *testing.T) {
176
+ testMaxRetries := -1
177
config := fmt.Sprintf(`
178
provider "github" {
179
owner = "%s"
- max_retries = 3
180
- }`, testAccConf.owner)
+ max_retries = %d
181
+ }
182
+
183
+ data "github_ip_ranges" "test" {}
184
+ `, testAccConf.owner, testMaxRetries)
185
186
resource.Test(t, resource.TestCase{
187
PreCheck: func() { skipUnauthenticated(t) },
@@ -186,6 +190,7 @@ func TestAccProviderConfigure(t *testing.T) {
190
{
191
Config: config,
188
192
ExpectNonEmptyPlan: false,
193
+ ExpectError: regexp.MustCompile("max_retries must be greater than or equal to 0"),
189
194
},
195
196
0 commit comments