示例#1
0
		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() {
				err := rdsDBInstance.Create(dbInstanceIdentifier, dbInstanceDetails)
				Expect(err).ToNot(HaveOccurred())
			})
		})

		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() {