Skip to content

Commit

Permalink
Updating CQL test to insert and return multiple rows
Browse files Browse the repository at this point in the history
  • Loading branch information
John Sanda committed Feb 22, 2013
1 parent 37db327 commit b7c7f64
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
14 changes: 14 additions & 0 deletions src/test/resources/org/usergrid/vx/experimental/cql.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@
"query": "INSERT INTO myks.users (username, fname, lname, age) VALUES ('jsmith', 'John', 'Smith', 30)"
}
},
{
"type":"CQLQUERY",
"op": {
"version": "3.0.0",
"query": "INSERT INTO myks.users (username, fname, lname, age) VALUES ('jdoe', 'John', 'Doe', 40)"
}
},
{
"type":"CQLQUERY",
"op": {
"version": "3.0.0",
"query": "INSERT INTO myks.users (username, fname, lname, age) VALUES ('bwilson', 'Bob', 'Wilson', 25)"
}
},
{
"type":"CQLQUERY",
"op": {
Expand Down
21 changes: 16 additions & 5 deletions src/test/resources/org/usergrid/vx/experimental/cql_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@
"0":"OK",
"1":[],
"2":[],
"3":[
"3":[],
"4":[],
"5":[
{
"lname":"Doe",
"username":"jdoe",
"age":40,
"fname":"John"
},
{
"lname":"Wilson",
"username":"bwilson",
"age":25,
"fname":"Bob"
},
{
"lname":"Smith",
"username":"jsmith",
"age":30,
"fname":"John"
}
]
},
"exception":null,
"exceptionId":null
}
}, "exception":null, "exceptionId":null}

0 comments on commit b7c7f64

Please sign in to comment.