Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
feat(api): expand GraphlQL api and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaroslav Sevcik committed Jul 20, 2021
1 parent f8d924e commit 3376ea9
Show file tree
Hide file tree
Showing 30 changed files with 2,627 additions and 719 deletions.
252 changes: 252 additions & 0 deletions test/api/query/snapshots/snap_test_entities.py
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'
]
}
]
}
Loading

0 comments on commit 3376ea9

Please sign in to comment.