|
|
(13 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | =KVSaaS Test Cases=
| |
| | | |
− | =Table Of Contents=
| + | [[File:MagnetoDB Test Cases v2.2.pdf|thumbnail]] |
− | | |
− | | |
− | | |
− | [ KVSaaS Test Cases] | |
− | | |
− | [ Table Of Contents]
| |
− | | |
− | [ BatchGetItem]
| |
− | | |
− | [ BatchWriteItem]
| |
− | | |
− | [ CreateTable]
| |
− | | |
− | [ DeleteItem]
| |
− | | |
− | [ DeleteTable]
| |
− | | |
− | [ DescribeTable]
| |
− | | |
− | [ GetItem]
| |
− | | |
− | [ ListTables]
| |
− | | |
− | [ PutItem]
| |
− | | |
− | [ Query]
| |
− | | |
− | [ Scan]
| |
− | | |
− | [ UpdateItem]
| |
− | | |
− | [ UpdateTable]
| |
− | | |
− | | |
− | | |
− | =BatchGetItem=
| |
− | | |
− | =BatchWriteItem=
| |
− | | |
− | | |
− | | |
− | {| class="prettytable"
| |
− | |-
| |
− | |
| |
− | <center>'''<nowiki>#</nowiki>'''</center>
| |
− | | |
− | |
| |
− | <center>'''Description'''</center>
| |
− | | |
− | |
| |
− | <center>'''Results'''</center>
| |
− | | |
− | |
| |
− | <center>'''T'''</center>
| |
− | | |
− | |
| |
− | <center>'''Imp'''</center>
| |
− | | |
− | |
| |
− | <center>'''Notes'''</center>
| |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''General'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-1</center>
| |
− | | |
− | |
| |
− | Complete set of correct options
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center>P</center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''PutRequest'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-10</center>
| |
− | | |
− | |
| |
− | Correct Item string AND
| |
− | | |
− | "N" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center>P</center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-11</center>
| |
− | | |
− | |
| |
− | Non-existent Item string AND
| |
− | | |
− | "N" : "string" value
| |
− | | |
− | |
| |
− | Error + UnprocessedItems contains unprocessed PutRequest Items
| |
− | | |
− | |
| |
− | <center>N</center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-12</center>
| |
− | | |
− | |
| |
− | EMPTY Item string AND
| |
− | | |
− | "N" : "string"
| |
− | | |
− | |
| |
− | Error + UnprocessedItems contains unprocessed PutRequest Items
| |
− | | |
− | |
| |
− | <center>N</center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-13</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | <nowiki>"NS" : ["string"] values</nowiki>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-14</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | "B" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-15</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | <nowiki>"BS" : ["string"] values</nowiki>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-16</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | "S" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-17</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | "N" : EMPTY value
| |
− | | |
− | |
| |
− | ValidationException + UnprocessedItems contains unprocessed PutRequest Items
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-18</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | "<SOME_STRANGE_OR_EMPTY_VALUE>" : "string" value
| |
− | | |
− | |
| |
− | ValidationException + UnprocessedItems contains unprocessed PutRequest Items
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-19</center>
| |
− | | |
− | |
| |
− | Correct Item string and
| |
− | | |
− | "NS" : "non-existent_string" value
| |
− | | |
− | |
| |
− | ValidationException + UnprocessedItems contains unprocessed PutRequest Items
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |- | |
− | |
| |
− | <center>BWI-20</center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''DeleteRequest'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-30</center>
| |
− | | |
− | |
| |
− | Correct Key string and
| |
− | | |
− | "N" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-31</center>
| |
− | | |
− | |
| |
− | Non-existent Key string and
| |
− | | |
− | "N" : "string" value
| |
− | | |
− | |
| |
− | Error + UnprocessedItems contains unprocessed DeleteRequest Items
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-32</center>
| |
− | | |
− | |
| |
− | EMPTY Key string and
| |
− | | |
− | "N" : "string" value
| |
− | | |
− | |
| |
− | Error + UnprocessedItems contains unprocessed DeleteRequest Items
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-33</center>
| |
− | | |
− | |
| |
− | correct Key string and
| |
− | | |
− | <nowiki>"NS" : ["string"] values</nowiki>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-34</center>
| |
− | | |
− | |
| |
− | correct Key string and
| |
− | | |
− | "B" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-35</center>
| |
− | | |
− | |
| |
− | correct Key string and
| |
− | | |
− | <nowiki>"BS" : ["string"] values</nowiki>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-36</center>
| |
− | | |
− | |
| |
− | correct Key string and
| |
− | | |
− | "S" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-37</center>
| |
− | | |
− | |
| |
− | Correct Key string and
| |
− | | |
− | "<nowiki>SS" : ["string"] values</nowiki>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''CombinedRequest'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-40</center>
| |
− | | |
− | |
| |
− | Specify in one statement:
| |
− | | |
− | correct Key string for
| |
− | | |
− | DeleteRequest "N" : "string" value AND
| |
− | | |
− | correct Item string for
| |
− | | |
− | PutRequest "N" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-41</center>
| |
− | | |
− | |
| |
− | Specify in one statement:
| |
− | | |
− | correct Key string for
| |
− | | |
− | DeleteRequest "B" : "string" value AND
| |
− | | |
− | correct Key string for
| |
− | | |
− | DeleteRequest "SS" : "string" values AND
| |
− | | |
− | correct Item string for
| |
− | | |
− | PutRequest "NS" : "string" values AND
| |
− | | |
− | (!!!) INcorrect Item string for
| |
− | | |
− | PutRequest "S" : "string" value
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-42</center>
| |
− | | |
− | |
| |
− | Specify in one statement:
| |
− | | |
− | correct Item string for
| |
− | | |
− | PutRequest "N" : "string_A" value
| |
− | | |
− | correct Key string for
| |
− | | |
− | DeleteRequest "N" : "string_A" value
| |
− | | |
− | |
| |
− | An error: you can't put and delete the same item in the same BatchWriteItem request
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''RequestItems (TableName)'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-50</center>
| |
− | | |
− | |
| |
− | correct table name and
| |
− | | |
− | correct PutRequest parameters for the Item
| |
− | | |
− | |
| |
− | Line(s) added correctly
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-51</center>
| |
− | | |
− | |
| |
− | Specify 25 correct table names and
| |
− | | |
− | correct PutRequest parameters for the Items
| |
− | | |
− | |
| |
− | Line(s) added correctly into all 25 tables
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-52</center>
| |
− | | |
− | |
| |
− | Specify 26 correct table names and
| |
− | | |
− | correct PutRequest parameters for the Items
| |
− | | |
− | |
| |
− | error/exception (?)
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-53</center>
| |
− | | |
− | |
| |
− | correct table name and
| |
− | | |
− | correct DeleteRequest parameters for the Key
| |
− | | |
− | |
| |
− | Line(s) deleted correctly
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-54</center>
| |
− | | |
− | |
| |
− | INcorrect table name
| |
− | | |
− | correct PutRequest parameters for an Item
| |
− | | |
− | Check that ''UnprocessedItems'' contains unprocessed PutRequest Items:
| |
− | | |
− | * TableName < 3 symbols
| |
− | * TableName > 255 symbols
| |
− | * Non-existent table name
| |
− | | |
− | |
| |
− | Exception
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-55</center>
| |
− | | |
− | |
| |
− | Correct table name and
| |
− | | |
− | correct PutRequest parameters for the Item
| |
− | | |
− | Make total request size more than 1 MB (how to?)
| |
− | | |
− | |
| |
− | error
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-56</center>
| |
− | | |
− | |
| |
− | correct table name and
| |
− | | |
− | correct PutRequest parameters for the Item
| |
− | | |
− | Any individual item in a batch exceeds 64 KB (how to?)
| |
− | | |
− | |
| |
− | error
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''ReturnItemCollectionMetrics'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-60</center>
| |
− | | |
− | |
| |
− | is NONE (by default)
| |
− | | |
− | |
| |
− | no statistics returned
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-61</center>
| |
− | | |
− | |
| |
− | is SIZE
| |
− | | |
− | |
| |
− | statistics about item collections, if any, that were modified during the operation are returned in the response
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-62</center>
| |
− | | |
− | |
| |
− | is <Something_else>
| |
− | | |
− | |
| |
− | error/exception
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''ReturnConsumedCapacity'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-63</center>
| |
− | | |
− | |
| |
− | is NONE (by default)
| |
− | | |
− | | |
− | | |
− | |
| |
− | ConsumedCapacity is not included in the response
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-64</center>
| |
− | | |
− | |
| |
− | is TOTAL
| |
− | | |
− | |
| |
− | the response includes ConsumedCapacity data for tables and indexes
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-65</center>
| |
− | | |
− | |
| |
− | is INDEXES
| |
− | | |
− | |
| |
− | the response includes ConsumedCapacity for indexes only
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-66</center>
| |
− | | |
− | |
| |
− | is <Something_else> (and empty)
| |
− | | |
− | |
| |
− | error/exception
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | '''Exceptions'''
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-70</center>
| |
− | | |
− | |
| |
− | Simulate InternalServerError
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-71</center>
| |
− | | |
− | |
| |
− | Simulate ItemCollectionSizeLimitExceededException
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-72</center>
| |
− | | |
− | |
| |
− | Simulate ProvisionedThroughputExceededException
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-73</center>
| |
− | | |
− | |
| |
− | Simulate ResourceNotFoundException
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |-
| |
− | |
| |
− | <center>BWI-</center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | | |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | <center></center>
| |
− | | |
− | |
| |
− | | |
− | | |
− | |}
| |
− | | |
− | | |
− | =CreateTable=
| |
− | | |
− | =DeleteItem=
| |
− | | |
− | =DeleteTable=
| |
− | | |
− | =DescribeTable=
| |
− | | |
− | =GetItem=
| |
− | | |
− | =ListTables=
| |
− | | |
− | =PutItem=
| |
− | | |
− | =Query=
| |
− | | |
− | =Scan=
| |
− | | |
− | =UpdateItem=
| |
− | | |
− | =UpdateTable=
| |
− | | |
− | ==
| |