Navigation Menu

Skip to content

Commit

Permalink
Update drntest testcases for dump command
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 14, 2015
1 parent 3a52c87 commit 4ca4593
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/command/suite/dump/record/scalar.catalog.json
@@ -0,0 +1,12 @@
{
"datasets": {
"Default": {
"schema": {
"Users": {
"type": "Hash",
"keyType": "ShortText"
}
}
}
}
}
65 changes: 65 additions & 0 deletions test/command/suite/dump/record/scalar.expected
@@ -0,0 +1,65 @@
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"type": "dump.start"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"type": "dump.start"
}
{
"inReplyTo": "request-id",
"statusCode": 200,
"type": "dump.result",
"body": {
"started": true
}
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"type": "Hash",
"name": "Users",
"keyType": "ShortText"
},
"type": "dump.table"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"type": "Hash",
"name": "Users",
"keyType": "ShortText"
},
"type": "dump.table"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"table": "Users",
"key": "Adam",
"values": {}
},
"type": "dump.record"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"type": "dump.end"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"type": "dump.end"
}
15 changes: 15 additions & 0 deletions test/command/suite/dump/record/scalar.test
@@ -0,0 +1,15 @@
#@require-catalog-version 2
#@disable-logging
{
"type": "add",
"dataset": "Default",
"body": {
"table": "Users",
"key": "Adam"
}
}
#@enable-logging
{
"type": "dump",
"dataset": "Default"
}
48 changes: 48 additions & 0 deletions test/command/suite/dump/record/vector/reference.expected
Expand Up @@ -146,6 +146,54 @@
},
"type": "dump.record"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"table": "Tags",
"key": "Groonga",
"values": {
}
},
"type": "dump.record"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"table": "Tags",
"key": "Groonga",
"values": {
}
},
"type": "dump.record"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"table": "Tags",
"key": "column store",
"values": {
}
},
"type": "dump.record"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
"date": "0000-00-00T00:00:00.000000Z",
"body": {
"table": "Tags",
"key": "column store",
"values": {
}
},
"type": "dump.record"
}
{
"inReplyTo": "request-id",
"dataset": "Default",
Expand Down

0 comments on commit 4ca4593

Please sign in to comment.