Permalink
Browse files

Fixed ``boto.connect_rds2()``.

  • Loading branch information...
toastdriven committed Mar 3, 2014
1 parent b7d9f44 commit 3828ece1036b049526902be27eaeb3a2c97a5bbf
Showing with 11 additions and 1 deletion.
  1. +5 −1 boto/__init__.py
  2. +6 −0 tests/integration/rds2/test_connection.py
View
@@ -324,7 +324,11 @@ def connect_rds2(aws_access_key_id=None, aws_secret_access_key=None, **kwargs):
:return: A connection to RDS
"""
from boto.rds2.layer1 import RDSConnection
return RDSConnection(aws_access_key_id, aws_secret_access_key, **kwargs)
return RDSConnection(
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=aws_secret_access_key,
**kwargs
)
def connect_emr(aws_access_key_id=None, aws_secret_access_key=None, **kwargs):
@@ -32,6 +32,12 @@ def setUp(self):
self.conn = RDSConnection()
self.db_name = "test-db-%s" % str(int(time.time()))
def test_connect_rds(self):
# Upon release, this did not function correct. Ensure that
# args are passed correctly.
import boto
conn = boto.connect_rds2()
def test_integration(self):
resp = self.conn.create_db_instance(
db_instance_identifier=self.db_name,

0 comments on commit 3828ece

Please sign in to comment.