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

Commit

Permalink
Add new app for services infrastructure tracking
Browse files Browse the repository at this point in the history
- Resolves #87
- Resolves #89
- Resolves #90
  • Loading branch information
paveldedik committed May 31, 2019
1 parent 0f5345c commit c2858a4
Show file tree
Hide file tree
Showing 31 changed files with 1,094 additions and 618 deletions.
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
arrow
attrs
boto3
celery
colorama
datadog
Expand Down
12 changes: 8 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --upgrade requirements.in
# pip-compile --output-file requirements.txt requirements.in
#
amqp==2.4.2 # via kombu
aniso8601==3.0.2 # via graphene
appnope==0.1.0 # via ipython
arrow==0.13.1
attrs==19.1.0
autopep8==1.4.4 # via django-silk
backcall==0.1.0 # via ipython
billiard==3.6.0.0 # via celery
boto3==1.9.150
botocore==1.12.150 # via boto3, s3transfer
celery==4.3.0
certifi==2019.3.9 # via requests
chardet==3.0.4 # via requests
Expand All @@ -30,6 +31,7 @@ django-stronghold==0.3.0
django==2.2.1
djangoql==0.12.6
dockerfile-parse==0.0.14
docutils==0.14 # via botocore
gprof2dot==2017.9.19 # via django-silk
graphene-django==2.2.0
graphene==2.1.3
Expand All @@ -42,6 +44,7 @@ ipython-genutils==0.2.0 # via traitlets
ipython==7.5.0
jedi==0.13.3 # via ipython
jinja2==2.10.1 # via django-silk
jmespath==0.9.4 # via boto3, botocore
kombu==4.5.0 # via celery
markdown==3.1
markupsafe==1.1.1 # via jinja2
Expand All @@ -60,7 +63,7 @@ pycodestyle==2.5.0 # via autopep8
pygithub==1.43.7
pygments==2.3.1 # via django-silk, ipython
pyjwt==1.7.1 # via pygithub
python-dateutil==2.8.0 # via arrow, django-silk
python-dateutil==2.8.0 # via arrow, botocore, django-silk
python-gitlab==1.8.0
python3-openid==3.1.0 # via django-allauth
pytz==2019.1 # via celery, django, django-silk
Expand All @@ -72,12 +75,13 @@ requests==2.21.0
requirements-parser==0.2.0
retry==0.9.2
rx==1.6.1 # via graphql-core
s3transfer==0.2.0 # via boto3
singledispatch==3.4.0.3 # via graphene-django
six==1.12.0 # via django-extensions, dockerfile-parse, graphene, graphene-django, graphql-core, graphql-relay, promise, prompt-toolkit, python-dateutil, python-gitlab, singledispatch, structlog, traitlets
sqlparse==0.3.0 # via django, django-debug-toolbar, django-silk
structlog==19.1.0
traitlets==4.3.2 # via ipython
urllib3==1.24.3 # via requests
urllib3==1.24.3 # via botocore, requests
vine==1.3.0 # via amqp, celery
wcwidth==0.1.7 # via prompt-toolkit
whitenoise==4.1.2
Expand Down
100 changes: 43 additions & 57 deletions test/api/query/snapshots/snap_test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,78 +7,64 @@

snapshots = Snapshot()

snapshots['test_repository 1'] = {
'data': {
'node': {
'id': 'UmVwb3NpdG9yeToxMA==',
'name': 'james-rivera',
'owner': 'sharon54',
'remoteId': 2783,
'url': 'https://gitlab.com/sharon54/jones-rivera'
snapshots["test_repository 1"] = {
"data": {
"node": {
"id": "UmVwb3NpdG9yeToxMA==",
"name": "james-rivera",
"owner": "sharon54",
"remoteId": 2783,
"url": "https://gitlab.com/sharon54/jones-rivera",
}
}
}

snapshots['test_datacenter 1'] = {
'data': {
'node': {
'id': 'RGF0YUNlbnRlcjoxMA==',
'provider': 'kiwi',
'region': 'Oklahoma'
snapshots["test_service 1"] = {
"data": {
"node": {
"dashboardUrl": "https://dashboard/skypicker/sale/",
"docsUrl": "https://docs/skypicker/docs/",
"healthCheckUrl": "https://skypicekr/health",
"id": "U2VydmljZToxMA==",
"impact": "sales",
"name": "allen-nobles",
"owner": "bradltwat",
"pagerdutyUrl": "https://pagerduty/sales/",
"slackChannel": "https://gitlab.slack",
"status": "fixed",
}
}
}

snapshots['test_service 1'] = {
'data': {
'node': {
'dashboardUrl': 'https://dashboard/skypicker/sale/',
'docsUrl': 'https://docs/skypicker/docs/',
'healthCheckUrl': 'https://skypicekr/health',
'id': 'U2VydmljZToxMA==',
'impact': 'sales',
'name': 'allen-nobles',
'owner': 'bradltwat',
'pagerdutyUrl': 'https://pagerduty/sales/',
'slackChannel': 'https://gitlab.slack',
'status': 'fixed'
snapshots["test_issue 1"] = {
"data": {
"node": {
"comment": "Mars",
"details": '{"lunch": "good", "money": true, "balance": 0}',
"id": "SXNzdWU6MTA=",
"kindKey": "harris:reyes",
"lastCheck": "2018-08-22 11:36:48+00:00",
"remoteIssueId": 234,
"status": "new",
}
}
}

snapshots['test_issue 1'] = {
'data': {
'node': {
'comment': 'Mars',
'details': '{"lunch": "good", "money": true, "balance": 0}',
'id': 'SXNzdWU6MTA=',
'kindKey': 'harris:reyes',
'lastCheck': '2018-08-22 11:36:48+00:00',
'remoteIssueId': 234,
'status': 'new'
snapshots["test_dependency_usage 1"] = {
"data": {
"node": {
"forProduction": "false",
"id": "RGVwZW5kZW5jeVVzYWdlOjEw",
"majorVersion": 3,
"minorVersion": 2,
"patchVersion": 4,
"version": "3.2.4",
}
}
}

snapshots['test_dependency_usage 1'] = {
'data': {
'node': {
'forProduction': 'false',
'id': 'RGVwZW5kZW5jeVVzYWdlOjEw',
'majorVersion': 3,
'minorVersion': 2,
'patchVersion': 4,
'version': '3.2.4'
}
}
}

snapshots['test_dependency 1'] = {
'data': {
'node': {
'id': 'RGVwZW5kZW5jeToxMA==',
'name': 'python',
'type': 'Language'
}
snapshots["test_dependency 1"] = {
"data": {
"node": {"id": "RGVwZW5kZW5jeToxMA==", "name": "python", "type": "Language"}
}
}
Loading

0 comments on commit c2858a4

Please sign in to comment.