

@mock_redshift
def test_default_cluster_attibutes():
    conn = boto.redshift.connect_to_region('us-east-1')
    cluster_identifier = 'my_cluster'
    conn.create_cluster(cluster_identifier, node_type='dw.hs1.xlarge', master_username='username', master_user_password='password')
    cluster_response = conn.describe_clusters(cluster_identifier)
    cluster = cluster_response['DescribeClustersResponse']['DescribeClustersResult']['Clusters'][0]
    cluster['DBName'].should.equal('dev')
    cluster['ClusterSubnetGroupName'].should.equal(None)
    assert ('us-east-' in cluster['AvailabilityZone'])
    cluster['PreferredMaintenanceWindow'].should.equal('Mon:03:00-Mon:03:30')
    cluster['ClusterParameterGroups'][0]['ParameterGroupName'].should.equal('default.redshift-1.0')
    cluster['AutomatedSnapshotRetentionPeriod'].should.equal(1)
    cluster['Port'].should.equal(5439)
    cluster['ClusterVersion'].should.equal('1.0')
    cluster['AllowVersionUpgrade'].should.equal(True)
    cluster['NumberOfNodes'].should.equal(1)

dataset/ETHPy150Open spulec/moto/tests/test_redshift/test_redshift.py test_default_cluster_attibutes/original