Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-add missing snapshots #786

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions linters/circleci/test_data/circleci_v0.1.30549_CUSTOM.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter circleci test CUSTOM 1`] = `
{
"issues": [
{
"code": "error",
"file": "test_data/bad_version/.circleci/config.yml",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"linter": "circleci",
"message": "Error: config compilation contains errors: config compilation contains errors:
- Cannot find circleci/[email protected] in the orb registry. Check that the namespace, orb name and version are correct.",
"targetType": "circleci-config",
},
{
"code": "error",
"file": "test_data/malformed/.circleci/config.yml",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"linter": "circleci",
"message": "Error: config compilation contains errors: config compilation contains errors:
- ERROR IN CONFIG FILE:
- [#/jobs/install-node-example] 0 subschemas matched instead of one
- 1. [#/jobs/install-node-example] only 1 subschema matches out of 2
- | 1. [#/jobs/install-node-example] 6 schema violations found
- | | 1. [#/jobs/install-node-example/docker/1] 2 schema violations found
- | | | 1. [#/jobs/install-node-example/docker/1] extraneous key [foo] is not permitted
- | | | | Permitted keys:
- | | | | - image
- | | | | - name
- | | | | - entrypoint
- | | | | - command
- | | | | - user
- | | | | - environment
- | | | | - aws_auth
- | | | | - auth
- | | | | Passed keys:
- | | | | - foo
- | | | 2. [#/jobs/install-node-example/docker/1] required key [image] not found
- | | 2. [#/jobs/install-node-example/steps/3] 0 subschemas matched instead of one
- | | | 1. [#/jobs/install-node-example/steps/3] expected type: String, found: Mapping
- | | | | Shorthand commands, like \`checkout\`
- | | | | SCHEMA:
- | | | | type: string
- | | | | INPUT:
- | | | | rerun:
- | | | | - true
- | | | 2. [#/jobs/install-node-example/steps/3] extraneous key [rerun] is not permitted
- | | | | \`when\`/\`unless\` step
- | | | | Permitted keys:
- | | | | - when
- | | | | - unless
- | | | | Passed keys:
- | | | | - rerun
- | | | 3. [#/jobs/install-node-example/steps/3/rerun] no subschema matched out of the total 2 subschemas
- | | | | 1. [#/jobs/install-node-example/steps/3/rerun] expected type: Mapping, found: Sequence
- | | | | | SCHEMA:
- | | | | | type:
- | | | | | - object
- | | | | | - string
- | | | | | INPUT:
- | | | | | - true
- | | | | 2. [#/jobs/install-node-example/steps/3/rerun] expected type: String, found: Sequence
- | | | | | SCHEMA:
- | | | | | type:
- | | | | | - object
- | | | | | - string
- | | | | | INPUT:
- | | | | | - true
- 2. [#/jobs/install-node-example] expected type: String, found: Mapping
- | Job may be a string reference to another job
- 3. [#/jobs/install-node-example] required key [type] not found",
"targetType": "circleci-config",
},
],
"lintActions": [
{
"command": "validate",
"fileGroupName": "circleci-config",
"linter": "circleci",
"paths": [
"test_data/bad_version/.circleci/config.yml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "validate",
"fileGroupName": "circleci-config",
"linter": "circleci",
"paths": [
"test_data/basic/.circleci/config.yml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "validate",
"fileGroupName": "circleci-config",
"linter": "circleci",
"paths": [
"test_data/malformed/.circleci/config.yml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "validate",
"fileGroupName": "circleci-config",
"linter": "circleci",
"paths": [
"test_data/bad_version/.circleci/config.yml",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "validate",
"fileGroupName": "circleci-config",
"linter": "circleci",
"paths": [
"test_data/basic/.circleci/config.yml",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "validate",
"fileGroupName": "circleci-config",
"linter": "circleci",
"paths": [
"test_data/malformed/.circleci/config.yml",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
Loading