Skip to content

Commit 7b0bfea

Browse files
authored
fixing tests (#62)
1 parent e713bd3 commit 7b0bfea

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Tests
22

33
on:
4-
push:
5-
branches:
64
pull_request:
75

86
jobs:
@@ -35,4 +33,5 @@ jobs:
3533
TF_VAR_checkly_api_key: ${{ secrets.CHECKLY_API_KEY }}
3634
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
3735
CHECKLY_API_URL: ${{ secrets.CHECKLY_API_URL }}
36+
TF_ACC: 1
3837

checkly/resource_alert_channel_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func TestAccFail(t *testing.T) {
129129
slack {
130130
}
131131
}`,
132-
Error: `The argument "url" is required`,
132+
Error: `Missing required argument`,
133133
},
134134
{
135135
Config: `resource "checkly_alert_channel" "t1" {

checkly/resource_check_group_test.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,18 @@ func TestAccCheckGroupInvalid(t *testing.T) {
122122
Config: testCheckGroup_invalid,
123123
ExpectError: regexp.MustCompile(`Inappropriate value for attribute "activated"`),
124124
},
125+
{
126+
Config: testCheckGroup_invalid,
127+
ExpectError: regexp.MustCompile(`The argument "concurrency" is required`),
128+
},
129+
{
130+
Config: testCheckGroup_invalid,
131+
ExpectError: regexp.MustCompile(`Missing required argument`),
132+
},
125133
})
126134
}
127135

128136
func TestAccCheckGroupBasic(t *testing.T) {
129-
return
130137
accTestCase(t, []resource.TestStep{
131138
{
132139
Config: testCheckGroup_basic,

0 commit comments

Comments
 (0)