@@ -11,57 +11,6 @@ aws.config.update({ accessKeyId: "localAccessKey", secretAccessKey: "localSecret
11
11
var db = new aws . DynamoDB ( { endpoint : 'http://localhost:8000' } ) ;
12
12
13
13
describe ( "Check Table operations" , function ( ) {
14
- describe ( "#create table" , function ( ) {
15
- this . timeout ( 50000 ) ;
16
- it ( "should create a table if not existing" , function ( done ) {
17
- var params = {
18
- TableName : "Movies" ,
19
- KeySchema : [
20
- { AttributeName : "year" , KeyType : "HASH" } , //Partition key
21
- { AttributeName : "title" , KeyType : "RANGE" } //Sort key
22
- ] ,
23
- AttributeDefinitions : [
24
- { AttributeName : "year" , AttributeType : "N" } ,
25
- { AttributeName : "title" , AttributeType : "S" } ,
26
- { AttributeName : "info" , AttributeType : "S" }
27
- ] ,
28
- ProvisionedThroughput : {
29
- ReadCapacityUnits : 1 ,
30
- WriteCapacityUnits : 1
31
- }
32
- } ;
33
-
34
- var create = db . createTable ( params , function ( err , data ) {
35
- if ( err ) {
36
- should . not . exist ( err ) ;
37
- } else {
38
- should . exist ( data ) ;
39
- data . TableDescription . should . have . property ( "TableName" , "Movies" ) ;
40
- assert . isNumber ( data . TableDescription . ProvisionedThroughput . WriteCapacityUnits ) ;
41
-
42
- }
43
- done ( ) ;
44
- } ) ;
45
- } ) ;
46
- } ) ;
47
-
48
- describe ( "#delete table" , function ( ) {
49
- this . timeout ( 50000 ) ;
50
- it ( "should delete the table" , function ( done ) {
51
- var params = { "TableName" :"Movies" } ;
52
-
53
- db . deleteTable ( params , function ( err , data ) {
54
- if ( err ) {
55
- should . not . exist ( err ) ;
56
- assert . isNull ( data ) ;
57
- } else {
58
- should . exist ( data ) ;
59
- }
60
- done ( ) ;
61
- } ) ;
62
- } ) ;
63
- } ) ;
64
-
65
14
describe ( "#update table" , function ( ) {
66
15
this . timeout ( 50000 ) ;
67
16
it ( "should update the table" , function ( done ) {
0 commit comments