Skip to content

Commit

Permalink
Updated the code with 0.3 release code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nipun-crestdatasystem committed Sep 26, 2020
1 parent f1aac79 commit 202035b
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
1,
2.2,
"str",
[1, 2, 3],
[1, "str", 3.3],
{
"test": "value",
"test2": "value2"
},
[
{
"test": "value",
"test2": "value2"
},
1,
[
{},
{
"key1": [1, 2, ["in"]]
}
]
]
]
138 changes: 138 additions & 0 deletions ConsulExtension/Service/tests/plugin_server/data/update_creds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
[
[
"agent list empty",
[
"tn0",
{
"oldData" : {
"protocol":"http",
"port":"1234",
"ip": "0.0.0.0",
"token":null
},
"newData" : {
"protocol":"http",
"port":"1235",
"ip": "0.0.0.0",
"token":null
}
},
[
"0.0.0.0",
"1234",
"http",
"",
"True",
"-",
"tn0"
]
]
],
[
"agent already exists",
[ "tn0",
{
"oldData" : {
"protocol":"http",
"port":1233,
"ip": "0.0.0.1",
"token":""
},
"newData" : {
"protocol":"http",
"port":1234,
"ip": "0.0.0.0",
"token":""
}
},
[
"0.0.0.0",
"1234",
"http",
"",
"True",
"-",
"tn0"
]
]
],
[
"connected",
[ "tn0",
{
"oldData" : {
"protocol":"http",
"port":1234,
"ip": "0.0.0.0",
"token":""
},
"newData" : {
"protocol":"http",
"port":1235,
"ip": "0.0.0.0",
"token":""
}
},
[
"0.0.0.0",
"1234",
"http",
"",
"True",
"-",
"tn0"
]
]
],
[
"disconnected",
[ "tn0",
{
"oldData" : {
"protocol":"http",
"port":1234,
"ip": "0.0.0.0",
"token":""
},
"newData" : {
"protocol":"http",
"port":1235,
"ip": "0.0.0.0",
"token":""
}
},
[
"0.0.0.0",
"1234",
"http",
"",
"True",
"-",
"tn0"
]
]
],
[
"exception",
[
"tn0",
{
"newData" : {
"protocol":"http",
"port":1235,
"ip": "0.0.0.0",
"token":""
}
},
[
"0.0.0.0",
"1234",
"http",
"",
"True",
"-",
"tn0"
]
]
]
]
26 changes: 26 additions & 0 deletions ConsulExtension/Service/tests/plugin_server/data/write_creds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
[
false,
[{
"protocol":"http",
"port":"1234",
"ip": "0.0.0.0",
"token":null
}]
],
[
true,
[{
"protocol":"http",
"port":"1234",
"ip": "0.0.0.0",
"token":null
}]
],
[
false,
{

}
]
]

0 comments on commit 202035b

Please sign in to comment.