Skip to content

Commit

Permalink
update tests and remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jflim committed Feb 11, 2025
1 parent 11ff65f commit 02961d2
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tests/test_timestreaminfluxdb/test_timestreaminfluxdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,9 @@ def test_create_db_instance_success():
assert "publiclyAccessible" in response
assert "secondaryAvailabilityZone" in response
assert "status" in response
assert "vpcSecurityGroupIds" in response
assert "vpcSubnetIds" in response
assert "logDeliveryConfiguration" in response


## Example output from boto3
"""
client.list_db_instances()
{
'items': [
{
'id': '2acznutudh',
'name': 'sbx-lebiwh-test1',
'arn': 'arn:aws:timestream-influxdb:us-east-1:851925785310:db-instance/2acznutudh',
'status': 'AVAILABLE',
'endpoint': '2acznutudh-yqw2rtw2r2imck.timestream-influxdb.us-east-1.on.aws',
'port': 8086,
'networkType': 'IPV4',
'dbInstanceType': 'db.influx.medium',
'dbStorageType': 'InfluxIOIncludedT1',
'allocatedStorage': 20,
'deploymentType': 'SINGLE_AZ'
}
],
'ResponseMetadata': { ... }
}
"""


@mock_aws
def test_create_db_instance_duplicate_identifier():
client = boto3.client("timestream-influxdb", region_name="us-east-1")
Expand Down Expand Up @@ -154,8 +128,6 @@ def test_delete_db_instance():
assert "port" in response
assert "publiclyAccessible" in response
assert "secondaryAvailabilityZone" in response
assert "vpcSecurityGroupIds" in response
assert "vpcSubnetIds" in response
assert "logDeliveryConfiguration" in response

assert response["status"] == "DELETING"
Expand Down Expand Up @@ -204,8 +176,6 @@ def test_get_db_instance():
assert "port" in response
assert "publiclyAccessible" in response
assert "secondaryAvailabilityZone" in response
assert "vpcSecurityGroupIds" in response
assert "vpcSubnetIds" in response
assert "logDeliveryConfiguration" in response
assert "status" in response

Expand Down

0 comments on commit 02961d2

Please sign in to comment.