This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): expand GraphlQL api and add tests
- Loading branch information
Jaroslav Sevcik
committed
Jul 20, 2021
1 parent
f8d924e
commit 3376ea9
Showing
30 changed files
with
2,627 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,252 @@ | ||
# -*- coding: utf-8 -*- | ||
# snapshottest: v1 - https://goo.gl/zC4yUc | ||
from __future__ import unicode_literals | ||
|
||
from snapshottest import Snapshot | ||
|
||
|
||
snapshots = Snapshot() | ||
|
||
snapshots['test_all 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_empty 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_first 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_first_after 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_last 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_last_before 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_group 1'] = { | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 15, | ||
'line': 15 | ||
} | ||
], | ||
'message': 'Cannot query field "product_owner" on type "Group". Did you mean "productOwner" or "projectOwner"?' | ||
}, | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 15, | ||
'line': 16 | ||
} | ||
], | ||
'message': 'Cannot query field "project_owner" on type "Group". Did you mean "projectOwner" or "productOwner"?' | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_library 1'] = { | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 17, | ||
'line': 19 | ||
} | ||
], | ||
'message': 'Cannot query field "slack_channel" on type "Library". Did you mean "slackChannel"?' | ||
}, | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 17, | ||
'line': 20 | ||
} | ||
], | ||
'message': 'Cannot query field "sonarqube_project" on type "Library". Did you mean "sonarqubeProject"?' | ||
}, | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 17, | ||
'line': 21 | ||
} | ||
], | ||
'message': 'Cannot query field "docs_url" on type "Library". Did you mean "docsUrl"?' | ||
}, | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 17, | ||
'line': 22 | ||
} | ||
], | ||
'message': 'Cannot query field "library_url" on type "Library". Did you mean "libraryUrl"?' | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_links 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_service 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_source 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.