Test redshift cluster creation time more thoroughly
This commit is contained in:
parent
e4a4e61835
commit
8cca33dc42
@ -36,6 +36,7 @@ def test_create_cluster_boto3():
|
||||
response['Cluster']['NodeType'].should.equal('ds2.xlarge')
|
||||
create_time = response['Cluster']['ClusterCreateTime']
|
||||
create_time.should.be.lower_than(datetime.datetime.now(create_time.tzinfo))
|
||||
create_time.should.be.greater_than(datetime.datetime.now(create_time.tzinfo) - datetime.timedelta(minutes=1))
|
||||
|
||||
|
||||
@mock_redshift
|
||||
|
Loading…
Reference in New Issue
Block a user