-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the code with 0.3 release code.
- Loading branch information
1 parent
f1aac79
commit 202035b
Showing
3 changed files
with
188 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
ConsulExtension/Service/tests/merge/data/custom_copy/custom_copy_input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
138
ConsulExtension/Service/tests/plugin_server/data/update_creds.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
26
ConsulExtension/Service/tests/plugin_server/data/write_creds.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
{ | ||
|
||
} | ||
] | ||
] |