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

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

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