예제 #1
0
		Context("when has PubliclyAccessible", func() {
			BeforeEach(func() {
				dbInstanceDetails.PubliclyAccessible = true
				createDBInstanceInput.PubliclyAccessible = aws.Bool(true)
			})

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

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

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

		Context("when has StorageType", func() {
			BeforeEach(func() {
				dbInstanceDetails.StorageType = "test-storage-type"
				createDBInstanceInput.StorageType = aws.String("test-storage-type")
			})

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