Esempio n. 1
0
		Context("when has MasterUsername", func() {
			BeforeEach(func() {
				dbInstanceDetails.MasterUsername = "******"
				createDBInstanceInput.MasterUsername = aws.String("test-master-username")
			})

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

		Context("when has MasterUserPassword", func() {
			BeforeEach(func() {
				dbInstanceDetails.MasterUserPassword = "******"
				createDBInstanceInput.MasterUserPassword = aws.String("test-master-user-password")
			})

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

		Context("when has LicenseModel", func() {
			BeforeEach(func() {
				dbInstanceDetails.LicenseModel = "test-license-model"
				createDBInstanceInput.LicenseModel = aws.String("test-license-model")
			})

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