From 3097aeb819a5402baefd70a620834e7b1286ca96 Mon Sep 17 00:00:00 2001 From: TylerJang27 <42743566+TylerJang27@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:45:25 +0000 Subject: [PATCH] Auto add snapshots --- .../test_data/cfnlint_v1.3.0_basic.check.shot | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 linters/cfnlint/test_data/cfnlint_v1.3.0_basic.check.shot diff --git a/linters/cfnlint/test_data/cfnlint_v1.3.0_basic.check.shot b/linters/cfnlint/test_data/cfnlint_v1.3.0_basic.check.shot new file mode 100644 index 000000000..0612ccacb --- /dev/null +++ b/linters/cfnlint/test_data/cfnlint_v1.3.0_basic.check.shot @@ -0,0 +1,56 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP +// trunk-upgrade-validation:RELEASE + +exports[`Testing linter cfnlint test basic 1`] = ` +{ + "issues": [ + { + "code": "E3030", + "column": "7", + "file": "test_data/basic.in.yaml", + "issueClass": "ISSUE_CLASS_EXISTING", + "issueUrl": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md", + "level": "LEVEL_HIGH", + "line": "19", + "linter": "cfnlint", + "message": "'DNSS' is not one of ['EMAIL', 'DNS']", + "targetType": "cloudformation", + }, + { + "code": "E3012", + "column": "7", + "file": "test_data/basic.in.yaml", + "issueClass": "ISSUE_CLASS_EXISTING", + "issueUrl": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md", + "level": "LEVEL_HIGH", + "line": "21", + "linter": "cfnlint", + "message": "'*.test.io' is not of type 'array'", + "targetType": "cloudformation", + }, + ], + "lintActions": [ + { + "command": "lint", + "fileGroupName": "cloudformation", + "linter": "cfnlint", + "paths": [ + "test_data/basic.in.yaml", + ], + "verb": "TRUNK_VERB_CHECK", + }, + { + "command": "lint", + "fileGroupName": "cloudformation", + "linter": "cfnlint", + "paths": [ + "test_data/basic.in.yaml", + ], + "upstream": true, + "verb": "TRUNK_VERB_CHECK", + }, + ], + "taskFailures": [], + "unformattedFiles": [], +} +`;