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

Commit

Permalink
feat(service): Introduce Arbitrary Links for Service
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaroslav Sevcik authored and aexvir committed Apr 22, 2021
1 parent dc46c73 commit 7c79ae1
Show file tree
Hide file tree
Showing 17 changed files with 1,023 additions and 272 deletions.
107 changes: 107 additions & 0 deletions test/api/query/snapshots/snap_test_service_links.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot


snapshots = Snapshot()

snapshots['test_empty 1'] = {
'data': {
'allServices': {
'edges': [
],
'totalCount': 0
}
}
}

snapshots['test_all 1'] = {
'data': {
'allServices': {
'edges': [
{
'node': {
'allLinks': None
}
}
],
'totalCount': 1
}
},
'errors': [
{
'locations': [
{
'column': 13,
'line': 7
}
],
'message': 'Resolved value from the connection field have to be iterable or instance of LinkConnection. Received "None"',
'path': [
'allServices',
'edges',
0,
'node',
'allLinks'
]
}
]
}

snapshots['test_first 1'] = {
'data': {
'allServices': {
'edges': [
{
'node': {
'allLinks': None
}
}
],
'totalCount': 1
}
},
'errors': [
{
'locations': [
{
'column': 13,
'line': 7
}
],
'message': 'Resolved value from the connection field have to be iterable or instance of LinkConnection. Received "None"',
'path': [
'allServices',
'edges',
0,
'node',
'allLinks'
]
}
]
}

snapshots['test_last 1'] = {
'errors': [
{
'locations': [
{
'column': 19,
'line': 13
}
],
'message': 'Cannot query field "url" on type "Environment".'
},
{
'locations': [
{
'column': 19,
'line': 14
}
],
'message': 'Cannot query field "icon" on type "Environment".'
}
]
}
Loading

0 comments on commit 7c79ae1

Please sign in to comment.