Merge pull request #1789 from bpandola/fix-1778
Add `ClusterCreateTime` to Redshift response
This commit is contained in:
commit
90de7fc0d2
2 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import datetime
|
||||
|
||||
import boto
|
||||
import boto3
|
||||
from boto.redshift.exceptions import (
|
||||
|
|
@ -32,6 +34,8 @@ def test_create_cluster_boto3():
|
|||
MasterUserPassword='password',
|
||||
)
|
||||
response['Cluster']['NodeType'].should.equal('ds2.xlarge')
|
||||
create_time = response['Cluster']['ClusterCreateTime']
|
||||
create_time.should.be.lower_than(datetime.datetime.now(create_time.tzinfo))
|
||||
|
||||
|
||||
@mock_redshift
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue