Ejemplo n.º 1
0
		Context("when has AllocatedStorage", func() {
			BeforeEach(func() {
				dbInstanceDetails.AllocatedStorage = 100
				createDBInstanceInput.AllocatedStorage = aws.Int64(100)
			})

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

		Context("when has AutoMinorVersionUpgrade", func() {
			BeforeEach(func() {
				dbInstanceDetails.AutoMinorVersionUpgrade = true
				createDBInstanceInput.AutoMinorVersionUpgrade = aws.Bool(true)
			})

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

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

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