Skip to content

Commit

Permalink
Check in golden files for config tests
Browse files Browse the repository at this point in the history
Left out of aae44c3
  • Loading branch information
rojer committed Jan 11, 2021
1 parent d0275ca commit e456939
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/data/golden/mgos_config_boo_pretty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"param5": 888,
"param6": "p6",
"sub": {
"param7": 999
}
}
53 changes: 53 additions & 0 deletions src/test/data/golden/mgos_config_pretty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"wifi": {
"sta": {
"ssid": "cookadoodadoo",
"pass": "try less cork"
},
"ap": {
"ssid": "Quote \" me \\\\ please",
"pass": "",
"channel": 6,
"dhcp_end": "192.168.4.200"
}
},
"foo": 123,
"http": {
"enable": false,
"port": 80
},
"debug": {
"level": 1,
"dest": "uart1",
"file_level": "mgos_bar=1",
"test_d1": 2.000000,
"test_d2": 0.000000,
"test_ui": 4294967295,
"empty": {
}
},
"test": {
"bar1": {
"enable": false,
"param1": 1111,
"inner": {
"param2": "p2",
"param3": 3333
},
"baz": {
"bazaar": false
}
},
"bar2": {
"enable": false,
"param1": 2222,
"inner": {
"param2": "p2",
"param3": 3333
},
"baz": {
"bazaar": true
}
}
}
}

0 comments on commit e456939

Please sign in to comment.