-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests to exercise bodytrack-datastore's new (as of v4.3.0) abil…
…ity to detect invalid channel names upon import
- Loading branch information
1 parent
c05e131
commit 630eb35
Showing
12 changed files
with
372 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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
6 changes: 6 additions & 0 deletions
6
test/fixtures/feed-upload-invalid-channel-name-1-request.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,6 @@ | ||
{ | ||
"channel_names" : ["my channel"], | ||
"data" : [ | ||
[1441856362, 42] | ||
] | ||
} |
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 @@ | ||
{ "data" : ["my channel"] } |
6 changes: 6 additions & 0 deletions
6
test/fixtures/feed-upload-invalid-channel-name-2-request.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,6 @@ | ||
{ | ||
"channel_names" : ["this_IS_valid", "this+is+not", "also_valid", "neither[is]this"], | ||
"data" : [ | ||
[1441856362, 42, 43, 44, 45] | ||
] | ||
} |
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 @@ | ||
{ "data" : ["this+is+not", "neither[is]this"] } |
15 changes: 15 additions & 0 deletions
15
test/fixtures/feed-upload-invalid-channel-name-3-request.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,15 @@ | ||
[ | ||
{ | ||
"channel_names" : [ | ||
"i-am-valid", | ||
" i am not!", | ||
"hey.mom.look.i.am.valid", | ||
"but..i..am..not", | ||
".another-invalid", | ||
"and-one-more." | ||
], | ||
"data" : [ | ||
[1441856362, 1, 2, 3, 4, 5, 6] | ||
] | ||
} | ||
] |
Oops, something went wrong.