Skip to content

Commit

Permalink
fix tests (thanks moto!)
Browse files Browse the repository at this point in the history
- enable test for IAMDatabaseAuthenticationEnabled
- enable test for ResourceId
- drop moto test for the above issues
  • Loading branch information
RealSalmon committed Dec 13, 2023
1 parent 45b4b52 commit 7bbdc00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
8 changes: 3 additions & 5 deletions tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_no_such_instance():
assert response['RequestId'] == event['RequestId']
assert response['Reason'] == 'An error occurred (DBInstanceNotFound) ' \
'when calling the DescribeDBInstances ' \
'operation: Database some-db not found.'
'operation: DBInstance some-db not found.'


@mock_rds
Expand Down Expand Up @@ -224,7 +224,5 @@ def skip_test_success_cluster():
assert 'Endpoint.Port' in data
assert 'Endpoint.Address' in data
assert 'ReadEndpoint.Address' in data

# These are not supported by moto
# assert data['IAMDatabaseAuthenticationEnabled'] is True
# assert 'ResourceId' in data
assert data['IAMDatabaseAuthenticationEnabled'] is True
assert 'ResourceId' in data
33 changes: 0 additions & 33 deletions tests/test_moto.py

This file was deleted.

0 comments on commit 7bbdc00

Please sign in to comment.