better config file + a broken config file that crashes

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-28 14:10:28 -07:00
parent da7445fd2b
commit 5f223f0b0a
2 changed files with 44 additions and 6 deletions

27
resources/broken.json Normal file
View File

@ -0,0 +1,27 @@
{
"width": 700,
"height": 500,
"accounts": [
{
"nick": "jcarr",
"username": "jcarr@wit.com",
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJ4IjozLCJyIjoiIiwiY3NyZiI6InRBY1p2eXVJbk1YdWUxV0RSbDFIeDI5YSIsImV4cCI6MTU1OTI3MDQwMCwiaXNzIjoid2l0Iiwic3ViIjoiamNhcnJAd2l0LmNvbSJ9.bqXX_6yrUHQGYh3SEmW8ydSa9Xfqx-HIKutTN_GirwhC_VrVX1xJBcgYfjdKGegvwY7Td1vO3rs40Iz7ifcptrtdzJnDX62d_1JJPKBHUQUfnTLr2qoTgaljElFM0Q_e",
"hostname": "hosttest.wit.com",
"domainname": "test.wit.com"
},
{
"nick": "jcarr2",
"username": "jcarr@wit.com",
"token": "brokenToken",
"hostname": "hosttest.wit.com",
"domainname": "test.wit.com"
},
{
"nick": "bmath",
"username": "bmath@wit.com",
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJ4IjoyLCJyIjoiIiwiY3NyZiI6ImJRSVFtV2JjdktUN2FtUWpEZWlMUFhXeSIsImV4cCI6MTU1OTQzMTgzNiwiaXNzIjoid2l0Iiwic3ViIjoiYm1hdGhAd2l0LmNvbSJ9.9hdVWBZwAA1Hssf6Oh9UlP_DW3TPIv30wuq8pyhQHtQLaBgAXgaSqwBbGOWrjhYixQlzfUCZ6Oym6AqVNJ3H5_lPl3wwUm7Qz3G0zmenV2BE54rtVoENbzm_cKSzMqco",
"hostname": "customers.wprod.wit.com",
"domainname": "testing.com"
}
]
}

View File

@ -4,7 +4,7 @@
"accounts": [
{
"id": 42,
"nick": "jcarr",
"nick": "USW3jcarr",
"username": "jcarr@wit.com",
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJ4IjozLCJyIjoiIiwiY3NyZiI6InRBY1p2eXVJbk1YdWUxV0RSbDFIeDI5YSIsImV4cCI6MTU1OTI3MDQwMCwiaXNzIjoid2l0Iiwic3ViIjoiamNhcnJAd2l0LmNvbSJ9.bqXX_6yrUHQGYh3SEmW8ydSa9Xfqx-HIKutTN_GirwhC_VrVX1xJBcgYfjdKGegvwY7Td1vO3rs40Iz7ifcptrtdzJnDX62d_1JJPKBHUQUfnTLr2qoTgaljElFM0Q_e",
"hostname": "customers.wprod.wit.com",
@ -14,7 +14,7 @@
},
{
"id": 21,
"nick": "jcarr2",
"nick": "USW3jcarr2brokenToken",
"username": "jcarr@wit.com",
"email": "jcarr@wit.com",
"password": "yowzayowza",
@ -23,9 +23,20 @@
"token": "brokenToken",
"domain": "test.wit.com"
},
{
"id": 121,
"nick": "USW1jcarr2brokenToken",
"username": "jcarr@wit.com",
"email": "jcarr@wit.com",
"password": "badpass!",
"URL": "http://stackapi-api1.stackapi.customers.dev.wit.com:4000/",
"hostname": "customers.wprod.wit.com",
"token": "brokenToken",
"domain": "test.wit.com"
},
{
"id": 22,
"nick": "jcarr2badpass",
"nick": "USW3jcarr2badpass",
"username": "jcarr@wit.com",
"email": "jcarr@wit.com",
"password": "badpass",
@ -36,7 +47,7 @@
},
{
"id": 23,
"nick": "jcarr2badurl",
"nick": "USW3jcarr2badurl",
"username": "jcarr@wit.com",
"email": "jcarr@wit.com",
"password": "yowzayowza",
@ -46,7 +57,7 @@
},
{
"id": 24,
"nick": "jcarr2nopass",
"nick": "USW3jcarr2nopass",
"username": "jcarr@wit.com",
"email": "jcarr@wit.com",
"URL": "http://stackapi:4000/",
@ -55,7 +66,7 @@
},
{
"id": 57,
"nick": "bmath",
"nick": "USW3bmath",
"username": "bmath@wit.com",
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJ4IjoyLCJyIjoiIiwiY3NyZiI6ImJRSVFtV2JjdktUN2FtUWpEZWlMUFhXeSIsImV4cCI6MTU1OTQzMTgzNiwiaXNzIjoid2l0Iiwic3ViIjoiYm1hdGhAd2l0LmNvbSJ9.9hdVWBZwAA1Hssf6Oh9UlP_DW3TPIv30wuq8pyhQHtQLaBgAXgaSqwBbGOWrjhYixQlzfUCZ6Oym6AqVNJ3H5_lPl3wwUm7Qz3G0zmenV2BE54rtVoENbzm_cKSzMqco",
"hostname": "customers.wprod.wit.com",