Ejemplo n.º 1
0
		Context("when has DBInstanceClass", func() {
			BeforeEach(func() {
				dbInstanceDetails.DBInstanceClass = "db.m3.small"
				createDBInstanceInput.DBInstanceClass = aws.String("db.m3.small")
			})

			It("does not return error", func() {
				err := rdsDBInstance.Create(dbInstanceIdentifier, dbInstanceDetails)
				Expect(err).ToNot(HaveOccurred())
			})
		})

		Context("when has DBName", func() {
			BeforeEach(func() {
				dbInstanceDetails.DBName = "test-dbname"
				createDBInstanceInput.DBName = aws.String("test-dbname")
			})

			It("does not return error", func() {
				err := rdsDBInstance.Create(dbInstanceIdentifier, dbInstanceDetails)
				Expect(err).ToNot(HaveOccurred())
			})
		})

		Context("when has DBParameterGroupName", func() {
			BeforeEach(func() {
				dbInstanceDetails.DBParameterGroupName = "test-db-parameter-group-name"
				createDBInstanceInput.DBParameterGroupName = aws.String("test-db-parameter-group-name")
			})

			It("does not return error", func() {