コード例 #1
0
		Context("when has DBSubnetGroupName", func() {
			BeforeEach(func() {
				dbInstanceDetails.DBSubnetGroupName = "test-db-subnet-group-name"
				createDBInstanceInput.DBSubnetGroupName = aws.String("test-db-subnet-group-name")
			})

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

		Context("when has EngineVersion", func() {
			BeforeEach(func() {
				dbInstanceDetails.EngineVersion = "1.2.3"
				createDBInstanceInput.EngineVersion = aws.String("1.2.3")
			})

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

		Context("when has KmsKeyID", func() {
			BeforeEach(func() {
				dbInstanceDetails.KmsKeyID = "test-kms-key-id"
				createDBInstanceInput.KmsKeyId = aws.String("test-kms-key-id")
			})

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