Skip to content

Commit a8241fe

Browse files
committed
chore: add tests for healthcheck block
1 parent cdfe925 commit a8241fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/provider/provider_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package provider_test
22

33
import (
4+
"encoding/json"
45
"regexp"
56
"runtime"
67
"testing"
@@ -239,9 +240,14 @@ func TestApp(t *testing.T) {
239240
"icon",
240241
"relative_path",
241242
"url",
243+
"healthcheck.0.url",
244+
"healthcheck.0.interval",
245+
"healthcheck.0.threshold",
242246
} {
243247
value := resource.Primary.Attributes[key]
244248
t.Logf("%q = %q", key, value)
249+
d, _ := json.MarshalIndent(resource.Primary.Attributes, "", " ")
250+
t.Logf(string(d))
245251
require.NotNil(t, value)
246252
require.Greater(t, len(value), 0)
247253
}

0 commit comments

Comments
 (0)