From c70e2b98328a2bf3fd1fc121c8879d48c8573fda Mon Sep 17 00:00:00 2001 From: chkp-omris <103496740+chkp-omris@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:41:33 +0300 Subject: [PATCH] Fix dev tests (#10) * remove expectation for number of sub practices modes in acctests --- internal/resources/tests/web-api-asset_test.go | 3 --- internal/resources/tests/web-app-asset_test.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/internal/resources/tests/web-api-asset_test.go b/internal/resources/tests/web-api-asset_test.go index 9fc616f..80c111a 100644 --- a/internal/resources/tests/web-api-asset_test.go +++ b/internal/resources/tests/web-api-asset_test.go @@ -62,7 +62,6 @@ func TestAccWebAPIAssetBasic(t *testing.T) { "practice.#": "1", "practice.0.%": "6", "practice.0.triggers.#": "1", - "practice.0.sub_practices_modes.%": "5", "practice.0.sub_practices_modes.IPS": "AccordingToPractice", "practice.0.sub_practices_modes.WebBot": "AccordingToPractice", "practice.0.sub_practices_modes.Snort": "Disabled", @@ -155,7 +154,6 @@ func TestAccWebAPIAssetFull(t *testing.T) { "practice.#": "1", "practice.0.%": "6", "practice.0.triggers.#": "1", - "practice.0.sub_practices_modes.%": "5", "practice.0.sub_practices_modes.IPS": "AccordingToPractice", "practice.0.sub_practices_modes.WebBot": "AccordingToPractice", "practice.0.sub_practices_modes.Snort": "Disabled", @@ -221,7 +219,6 @@ func TestAccWebAPIAssetFull(t *testing.T) { "practice.#": "1", "practice.0.%": "6", "practice.0.triggers.#": "1", - "practice.0.sub_practices_modes.%": "5", "practice.0.sub_practices_modes.IPS": "Learn", "practice.0.sub_practices_modes.WebBot": "Inactive", "practice.0.sub_practices_modes.Snort": "AccordingToPractice", diff --git a/internal/resources/tests/web-app-asset_test.go b/internal/resources/tests/web-app-asset_test.go index 2c9e503..f954e4d 100644 --- a/internal/resources/tests/web-app-asset_test.go +++ b/internal/resources/tests/web-app-asset_test.go @@ -62,7 +62,6 @@ func TestAccWebApplicationAssetBasic(t *testing.T) { "practice.#": "1", "practice.0.%": "6", "practice.0.triggers.#": "1", - "practice.0.sub_practices_modes.%": "4", "practice.0.sub_practices_modes.IPS": "AccordingToPractice", "practice.0.sub_practices_modes.WebBot": "AccordingToPractice", "practice.0.sub_practices_modes.Snort": "Disabled", @@ -155,7 +154,6 @@ func TestAccWebApplicationAssetFull(t *testing.T) { "practice.#": "1", "practice.0.%": "6", "practice.0.triggers.#": "1", - "practice.0.sub_practices_modes.%": "4", "practice.0.sub_practices_modes.IPS": "AccordingToPractice", "practice.0.sub_practices_modes.WebBot": "AccordingToPractice", "practice.0.sub_practices_modes.Snort": "Disabled", @@ -221,7 +219,6 @@ func TestAccWebApplicationAssetFull(t *testing.T) { "practice.#": "1", "practice.0.%": "6", "practice.0.triggers.#": "1", - "practice.0.sub_practices_modes.%": "4", "practice.0.sub_practices_modes.IPS": "Learn", "practice.0.sub_practices_modes.WebBot": "Inactive", "practice.0.sub_practices_modes.Snort": "AccordingToPractice",