From 8cd50c084d462f025780a372145cf687f5dbc7c2 Mon Sep 17 00:00:00 2001 From: Charlie Conneely Date: Tue, 30 Jul 2024 17:12:40 +0100 Subject: [PATCH] Increased workflow timeout --- .github/workflows/unit-tests.yml | 2 +- genesyscloud/architect_ivr/consistency-errors.log.json | 1 + .../resource_genesyscloud_architect_ivr_unit_test.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100755 genesyscloud/architect_ivr/consistency-errors.log.json diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 7f3282bd6..182d72809 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,7 +7,7 @@ jobs: unit-tests: name: Unit Tests runs-on: ubuntu-latest - timeout-minutes: 5 + timeout-minutes: 10 steps: - name: Set up Go uses: actions/setup-go@v5 diff --git a/genesyscloud/architect_ivr/consistency-errors.log.json b/genesyscloud/architect_ivr/consistency-errors.log.json new file mode 100755 index 000000000..590134494 --- /dev/null +++ b/genesyscloud/architect_ivr/consistency-errors.log.json @@ -0,0 +1 @@ +{"resourceType":"genesyscloud_architect_ivr","resourceId":"c6078f1f-6d53-4e4c-a63d-7e2a9980052b","GCloudObjectName":"My Unit Test IVR","errorMessage":"mismatch on attribute dnis.2145449539:\nexpected value: \u003cnil\u003e\nactual value: +920-555-2902"} \ No newline at end of file diff --git a/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr_unit_test.go b/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr_unit_test.go index 6b8073966..54d0f2c93 100644 --- a/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr_unit_test.go +++ b/genesyscloud/architect_ivr/resource_genesyscloud_architect_ivr_unit_test.go @@ -232,7 +232,7 @@ func TestUnitResourceArchitectCreate(t *testing.T) { archProxy.createArchitectIvrAttr = func(ctx context.Context, a *architectIvrProxy, ivr platformclientv2.Ivr) (*platformclientv2.Ivr, *platformclientv2.APIResponse, error) { assert.Equal(t, tName, *ivr.Name, "ivr.Name check failed in create createArchitectIvrAttr") assert.Equal(t, tDescription, *ivr.Description, "ivr.Description check failed in create createArchitectIvrAttr") - assert.EqualValues(t, &tDnis, ivr.Dnis, "ivr.Dnis check failed in create createArchitectIvrAttr") + assert.ElementsMatch(t, tDnis, *ivr.Dnis, "ivr.Dnis check failed in create createArchitectIvrAttr") assert.Equal(t, tOpenHoursFlowId, *ivr.OpenHoursFlow.Id, "ivr.OpenHoursFlow.Id check failed in create createArchitectIvrAttr") assert.Equal(t, tClosedHoursFlowId, *ivr.ClosedHoursFlow.Id, "ivr.ClosedHoursFlow.Id check failed in create createArchitectIvrAttr") assert.Equal(t, tHolidayHoursFlowId, *ivr.HolidayHoursFlow.Id, "ivr.HolidayHoursFlow.Id check failed in create createArchitectIvrAttr") @@ -303,7 +303,7 @@ func TestUnitResourceArchitectUpdate(t *testing.T) { archProxy.updateArchitectIvrAttr = func(ctx context.Context, a *architectIvrProxy, id string, ivr platformclientv2.Ivr) (*platformclientv2.Ivr, *platformclientv2.APIResponse, error) { assert.Equal(t, tName, *ivr.Name, "ivr.Name check failed in create updateArchitectIvrAttr") assert.Equal(t, tDescription, *ivr.Description, "ivr.Description check failed in updateArchitectIvrAttr") - assert.EqualValues(t, &tDnis, ivr.Dnis, "ivr.Dnis check failed in updateArchitectIvrAttr") + assert.ElementsMatch(t, tDnis, *ivr.Dnis, "ivr.Dnis check failed in updateArchitectIvrAttr") assert.Equal(t, tOpenHoursFlowId, *ivr.OpenHoursFlow.Id, "ivr.OpenHoursFlow.Id check failed in updateArchitectIvrAttr") assert.Equal(t, tClosedHoursFlowId, *ivr.ClosedHoursFlow.Id, "ivr.ClosedHoursFlow.Id check failed in updateArchitectIvrAttr") assert.Equal(t, tHolidayHoursFlowId, *ivr.HolidayHoursFlow.Id, "ivr.HolidayHoursFlow.Id check failed in updateArchitectIvrAttr")