Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio
Commits
4f3218ea
Commit
4f3218ea
authored
Jul 18, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gidstorage tests, with wrong gid status 400 is expected instead of 409.
parent
a31b5bc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
test/jiotests.js
test/jiotests.js
+16
-11
No files found.
test/jiotests.js
View file @
4f3218ea
...
@@ -7992,8 +7992,9 @@ test("Post", function () {
...
@@ -7992,8 +7992,9 @@ test("Post", function () {
o
.
local_jio
.
stop
();
o
.
local_jio
.
stop
();
o
.
spy
(
o
,
'
status
'
,
409
,
'
Post document without respecting constraints
'
+
// XXX check reason
'
-> conflicts
'
);
o
.
spy
(
o
,
'
status
'
,
400
,
'
Post document without respecting constraints
'
+
'
-> bad request
'
);
o
.
jio
.
post
({},
o
.
f
);
o
.
jio
.
post
({},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -8043,6 +8044,11 @@ test("Get", function () {
...
@@ -8043,6 +8044,11 @@ test("Get", function () {
o
.
local_jio
.
stop
();
o
.
local_jio
.
stop
();
o
.
spy
(
o
,
'
status
'
,
400
,
'
Get document without respecting constraints
'
+
'
-> bad request
'
);
o
.
jio
.
get
({
"
_id
"
:
"
a
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
spy
(
o
,
'
status
'
,
404
,
'
Get inexistent document
'
);
o
.
spy
(
o
,
'
status
'
,
404
,
'
Get inexistent document
'
);
o
.
jio
.
get
({
"
_id
"
:
"
{
\"
identifier
\"
:[
\"
c
\"
]}
"
},
o
.
f
);
o
.
jio
.
get
({
"
_id
"
:
"
{
\"
identifier
\"
:[
\"
c
\"
]}
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -8148,13 +8154,13 @@ test("Put", function () {
...
@@ -8148,13 +8154,13 @@ test("Put", function () {
o
.
local_jio
.
put
({
"
_id
"
:
"
green
"
,
"
identifier
"
:
[
"
ac
"
,
"
b
"
]});
o
.
local_jio
.
put
({
"
_id
"
:
"
green
"
,
"
identifier
"
:
[
"
ac
"
,
"
b
"
]});
o
.
clock
.
tick
(
2000
);
o
.
clock
.
tick
(
2000
);
o
.
spy
(
o
,
'
status
'
,
40
9
,
'
Put document without respecting constraints
'
+
o
.
spy
(
o
,
'
status
'
,
40
0
,
'
Put document without respecting constraints
'
+
'
->
conflicts
'
);
'
->
bad request
'
);
o
.
jio
.
put
({
"
_id
"
:
"
a
"
,
"
identifier
"
:
"
a
"
,
"
title
"
:
"
t
"
},
o
.
f
);
o
.
jio
.
put
({
"
_id
"
:
"
a
"
,
"
identifier
"
:
"
a
"
,
"
title
"
:
"
t
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
o
.
spy
(
o
,
'
status
'
,
40
9
,
'
Put document without respecting constraints
'
+
o
.
spy
(
o
,
'
status
'
,
40
0
,
'
Put document without respecting constraints
'
+
'
->
conflicts
'
);
'
->
bad request
'
);
o
.
jio
.
put
({
o
.
jio
.
put
({
"
_id
"
:
"
{
\"
identifier
\"
:[
\"
a
\"
]}
"
,
"
_id
"
:
"
{
\"
identifier
\"
:[
\"
a
\"
]}
"
,
"
identifier
"
:
"
b
"
,
"
identifier
"
:
"
b
"
,
...
@@ -8223,8 +8229,8 @@ test("Remove", function () {
...
@@ -8223,8 +8229,8 @@ test("Remove", function () {
o
.
local_jio
.
stop
();
o
.
local_jio
.
stop
();
o
.
spy
(
o
,
'
status
'
,
40
9
,
'
Remove document without respecting constraints
'
+
o
.
spy
(
o
,
'
status
'
,
40
0
,
'
Remove document without respecting constraints
'
+
'
->
conflicts
'
);
'
->
bad request
'
);
o
.
jio
.
remove
({
"
_id
"
:
"
a
"
},
o
.
f
);
o
.
jio
.
remove
({
"
_id
"
:
"
a
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -8271,9 +8277,8 @@ test("putAttachment", function () {
...
@@ -8271,9 +8277,8 @@ test("putAttachment", function () {
o
.
local_jio
.
put
({
"
_id
"
:
"
green
"
,
"
identifier
"
:
[
"
ac
"
,
"
b
"
]});
o
.
local_jio
.
put
({
"
_id
"
:
"
green
"
,
"
identifier
"
:
[
"
ac
"
,
"
b
"
]});
o
.
clock
.
tick
(
2000
);
o
.
clock
.
tick
(
2000
);
o
.
spy
(
o
,
'
status
'
,
400
,
'
put attachment without respecting constraints
'
+
o
.
spy
(
o
,
'
status
'
,
409
,
'
put attachment without respecting constraints
'
+
'
-> bad request
'
);
'
-> conflicts
'
);
o
.
jio
.
putAttachment
({
o
.
jio
.
putAttachment
({
"
_id
"
:
"
a
"
,
"
_id
"
:
"
a
"
,
"
_attachment
"
:
"
body
"
,
"
_attachment
"
:
"
body
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment