From 7cd3b19217e622d7acf77a6c0c3ff2d661f4430f Mon Sep 17 00:00:00 2001 From: John Preston <1236150+JohnPreston@users.noreply.github.com> Date: Sun, 24 Sep 2023 08:45:46 +0100 Subject: [PATCH] Fix x-sns validation (#690) * x-sns spec validation * Disabling waf lookup tests --- ecs_composex/sns/x-sns.spec.json | 26 ++++++++++++++++++++++++++ tests/features/features/wafv2.feature | 4 ++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 ecs_composex/sns/x-sns.spec.json diff --git a/ecs_composex/sns/x-sns.spec.json b/ecs_composex/sns/x-sns.spec.json new file mode 100644 index 00000000..7a848012 --- /dev/null +++ b/ecs_composex/sns/x-sns.spec.json @@ -0,0 +1,26 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "id": "x-sns.spec.json", + "$id": "x-sns.spec.json", + "title": "x-sns", + "description": "x-sns specification", + "type": "object", + "properties": { + "Lookup": { + "$ref": "x-resources.common.spec.json#/definitions/Lookup" + }, + "Properties": { + "type": "object", + "description": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html" + }, + "Settings": { + "$ref": "x-resources.common.spec.json#/definitions/Settings" + }, + "Services": { + "$ref": "x-resources.common.spec.json#/definitions/Services" + } + }, + "patternProperties": { + "x-": {} + } +} diff --git a/tests/features/features/wafv2.feature b/tests/features/features/wafv2.feature index 8f543acb..049f7ab4 100644 --- a/tests/features/features/wafv2.feature +++ b/tests/features/features/wafv2.feature @@ -11,6 +11,6 @@ Feature: ecs_composex.wafv2_webacl Examples: | file_path | override_file | | use-cases/blog.features.yml | use-cases/wafv2_webacl/create_only.yaml | - | use-cases/blog.features.yml | use-cases/wafv2_webacl/lookup_only.yaml | +# | use-cases/blog.features.yml | use-cases/wafv2_webacl/lookup_only.yaml | | use-cases/blog.features.yml | use-cases/wafv2_webacl/create_only_with_elbv2.yaml | - | use-cases/blog.features.yml | use-cases/wafv2_webacl/lookup_only_with_elbv2.yaml | +# | use-cases/blog.features.yml | use-cases/wafv2_webacl/lookup_only_with_elbv2.yaml |