mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-09-03 15:55:42 +00:00
turn on coverage in batch validations file (#134)
* turn on coverage in batch validations file * also remove irrelevant comment
This commit is contained in:
@@ -25,17 +25,12 @@ import vinyldns.api.domain.batch.BatchTransformations._
|
|||||||
import vinyldns.api.domain.record._
|
import vinyldns.api.domain.record._
|
||||||
import vinyldns.api.domain.{AccessValidationAlgebra, _}
|
import vinyldns.api.domain.{AccessValidationAlgebra, _}
|
||||||
|
|
||||||
// turn on coverage once we start implementing these
|
|
||||||
// $COVERAGE-OFF$
|
|
||||||
trait BatchChangeValidationsAlgebra {
|
trait BatchChangeValidationsAlgebra {
|
||||||
|
|
||||||
def validateBatchChangeInputSize(input: BatchChangeInput): Either[BatchChangeErrorResponse, Unit]
|
def validateBatchChangeInputSize(input: BatchChangeInput): Either[BatchChangeErrorResponse, Unit]
|
||||||
|
|
||||||
def validateInputChanges(input: List[ChangeInput]): ValidatedBatch[ChangeInput]
|
def validateInputChanges(input: List[ChangeInput]): ValidatedBatch[ChangeInput]
|
||||||
|
|
||||||
// Note: once we add cnames, deletes in,
|
|
||||||
// this will also want the prior request context (all requests before the current)
|
|
||||||
// so the caller will likely have to do some kinda funky fold. Will deal with that later
|
|
||||||
def validateChangesWithContext(
|
def validateChangesWithContext(
|
||||||
changes: ValidatedBatch[ChangeForValidation],
|
changes: ValidatedBatch[ChangeForValidation],
|
||||||
existingRecords: ExistingRecordSets,
|
existingRecords: ExistingRecordSets,
|
||||||
@@ -335,4 +330,3 @@ class BatchChangeValidations(changeLimit: Int, accessValidation: AccessValidatio
|
|||||||
UserNotAuthorizedError(batchChange.id).asLeft
|
UserNotAuthorizedError(batchChange.id).asLeft
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// $COVERAGE-ON$
|
|
||||||
|
Reference in New Issue
Block a user