diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed7beb5..5dca413 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,6 @@ name: Tests on: - push: - branches: pull_request: jobs: @@ -35,4 +33,5 @@ jobs: TF_VAR_checkly_api_key: ${{ secrets.CHECKLY_API_KEY }} CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }} CHECKLY_API_URL: ${{ secrets.CHECKLY_API_URL }} + TF_ACC: 1 \ No newline at end of file diff --git a/checkly/resource_alert_channel_test.go b/checkly/resource_alert_channel_test.go index 2a7c7b0..25fc2bf 100644 --- a/checkly/resource_alert_channel_test.go +++ b/checkly/resource_alert_channel_test.go @@ -129,7 +129,7 @@ func TestAccFail(t *testing.T) { slack { } }`, - Error: `The argument "url" is required`, + Error: `Missing required argument`, }, { Config: `resource "checkly_alert_channel" "t1" { diff --git a/checkly/resource_check_group_test.go b/checkly/resource_check_group_test.go index 9d83c9a..2520c7a 100644 --- a/checkly/resource_check_group_test.go +++ b/checkly/resource_check_group_test.go @@ -122,11 +122,18 @@ func TestAccCheckGroupInvalid(t *testing.T) { Config: testCheckGroup_invalid, ExpectError: regexp.MustCompile(`Inappropriate value for attribute "activated"`), }, + { + Config: testCheckGroup_invalid, + ExpectError: regexp.MustCompile(`The argument "concurrency" is required`), + }, + { + Config: testCheckGroup_invalid, + ExpectError: regexp.MustCompile(`Missing required argument`), + }, }) } func TestAccCheckGroupBasic(t *testing.T) { - return accTestCase(t, []resource.TestStep{ { Config: testCheckGroup_basic,