From cae86a8eeb4f904fece3bf8dc95bee4388bf58a5 Mon Sep 17 00:00:00 2001 From: Juan Carlos Castillo Cano Date: Thu, 9 Jun 2016 11:33:28 +0100 Subject: [PATCH 1/5] Updating RDS instance status after deleting it --- moto/rds/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/rds/models.py b/moto/rds/models.py index 80a55434..9bbf2769 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -373,6 +373,7 @@ class RDSBackend(BaseBackend): if database.is_replica: primary = self.describe_databases(database.source_db_identifier)[0] primary.remove_replica(database) + database.status = 'deleting' return database else: raise DBInstanceNotFoundError(db_instance_identifier) From 2c744f2a59de03b68c6c3b2cc86790cc5d46b925 Mon Sep 17 00:00:00 2001 From: Juan Carlos Castillo Cano Date: Tue, 14 Jun 2016 16:45:31 +0100 Subject: [PATCH 2/5] Adding current date as InstanceCreateTime parameter (RDS) --- moto/rds/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moto/rds/models.py b/moto/rds/models.py index 9bbf2769..61b8d04b 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -1,6 +1,7 @@ from __future__ import unicode_literals import copy +import datetime import boto.rds from jinja2 import Template @@ -49,6 +50,7 @@ class Database(object): self.availability_zone = kwargs.get("availability_zone") self.multi_az = kwargs.get("multi_az") self.db_subnet_group_name = kwargs.get("db_subnet_group_name") + self.instance_create_time = str(datetime.datetime.now()) if self.db_subnet_group_name: self.db_subnet_group = rds_backends[self.region].describe_subnet_groups(self.db_subnet_group_name)[0] else: @@ -206,6 +208,7 @@ class Database(object): {{ database.storage_type }} {% endif %} {{ database.db_instance_class }} + {{ database.instance_create_time }} {{ database.master_username }}
{{ database.address }}
From 43dc2218973b95816e4a04cdcd66fe58e911a4f0 Mon Sep 17 00:00:00 2001 From: Juan Carlos Castillo Cano Date: Tue, 14 Jun 2016 16:47:58 +0100 Subject: [PATCH 3/5] Bumping version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 91bcda7a..f1700305 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ extras_require = { setup( name='moto', - version='0.4.24', + version='0.4.25', description='A library that allows your python tests to easily' ' mock out the boto library', author='Steve Pulec', From 386c0db3ca31a6bc55ebce0384d31ee1c8d55911 Mon Sep 17 00:00:00 2001 From: Juan Carlos Castillo Cano Date: Sat, 18 Jun 2016 19:47:13 +0100 Subject: [PATCH 4/5] Bumping version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f1700305..c69757cf 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ extras_require = { setup( name='moto', - version='0.4.25', + version='0.4.26', description='A library that allows your python tests to easily' ' mock out the boto library', author='Steve Pulec', From ffb1397c765e76ac6d879b7730bedd595bc0719a Mon Sep 17 00:00:00 2001 From: Juan Carlos Castillo Cano Date: Sat, 18 Jun 2016 19:48:41 +0100 Subject: [PATCH 5/5] un-bumped version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c69757cf..91bcda7a 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ extras_require = { setup( name='moto', - version='0.4.26', + version='0.4.24', description='A library that allows your python tests to easily' ' mock out the boto library', author='Steve Pulec',