예제 #1
0
		Context("when has CharacterSetName", func() {
			BeforeEach(func() {
				dbInstanceDetails.CharacterSetName = "test-characterset-name"
				createDBInstanceInput.CharacterSetName = aws.String("test-characterset-name")
			})

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

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

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

		Context("when has DBClusterIdentifier", func() {
			BeforeEach(func() {
				dbInstanceDetails.DBClusterIdentifier = "test-db-cluster-identifier"
				createDBInstanceInput.DBClusterIdentifier = aws.String("test-db-cluster-identifier")
			})

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