Skip to content

[Breaking Change] Update UDF validator to treat null/empty values as … #24

[Breaking Change] Update UDF validator to treat null/empty values as …

[Breaking Change] Update UDF validator to treat null/empty values as … #24

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / adobe@2018 ColdBox ^6.0.0 Test Results succeeded Sep 14, 2023 in 0s

All 113 tests pass in 3s

113 tests   113 ✔️  3s ⏱️
  34 suites      0 💤
    1 files        0

Results for commit a8cbe0b.

Annotations

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / adobe@2018 ColdBox ^6.0.0 Test Results

113 tests found

There are 113 tests, see "Raw output" for the full list of tests.
Raw output
tests.specs.GenericObjectTest ‑ Generic Object can do getters
tests.specs.GenericObjectTest ‑ Generic Object can do null getters
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: I want to Validate with contraint profiles Given a multiple profiles Then it must validate it with only distinct fields in those profiles
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: I want to Validate with contraint profiles Given a single profile Then it must validate it with only those fields in that profile
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: I want to Validate with contraint profiles Given a single profile and invalid data Then then throw the exception
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: validate or fail with objects Given invalid data Then it should throw an exception
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: validate or fail with objects Given valid data Then it should give you back the validated object
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: validate or fail with structures Given invalid data Then it should throw an exception
tests.specs.ValidationIntegrations ‑ Integrations Specs Story: validate or fail with structures Given valid data Then it should give you back the validated keys
tests.specs.ValidationIntegrations ‑ Story: I want to access error metadata in UDF and method validators Given invalid data Then it should allow access to custom method metadata
tests.specs.ValidationIntegrations ‑ Story: I want to access error metadata in UDF and method validators Given invalid data Then it should allow access to custom udf metadata
tests.specs.ValidationIntegrations ‑ Story: I want to access error metadata in UDF and method validators Given invalid data Then it should allow method generated error messages based on metadata
tests.specs.ValidationIntegrations ‑ Story: I want to access error metadata in UDF and method validators Given invalid data Then it should allow udf generated error messages based on metadata
tests.specs.ValidationManagerTest ‑ Integrations Specs can expand nested struct and array syntax
tests.specs.ValidationManagerTest ‑ Integrations Specs can expand nested struct and array syntax and handle failed validation
tests.specs.ValidationManagerTest ‑ Integrations Specs can get shared constraints
tests.specs.ValidationManagerTest ‑ Integrations Specs can process rules
tests.specs.ValidationManagerTest ‑ Integrations Specs can process rules with custom validators from a wirebox mapping
tests.specs.ValidationManagerTest ‑ Integrations Specs can use validator aliases in constraints
tests.specs.ValidationManagerTest ‑ Integrations Specs can validate a generic form
tests.specs.ValidationManagerTest ‑ Integrations Specs can validate and ignore keys ending with `Message`
tests.specs.ValidationManagerTest ‑ Integrations Specs can validate with excluded fields
tests.specs.ValidationManagerTest ‑ Integrations Specs can validate with include fields
tests.specs.ValidationManagerTest ‑ Integrations Specs can validate with specific fields
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can be created
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can self validate
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can validate
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can validate if a target can be asserted
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can validate if a target has value
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can validate if a target is null or empty
tests.specs.delegates.ValidatableSpec ‑ Validatable Spec can validate or fail
tests.specs.result.ValidationErrorTest ‑ tests.specs.result.ValidationErrorTest testObject
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testAddError
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testErrorCounts
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testGetErrorAsJSON
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testGetErrorAsStruct
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testHasErrors
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testLocale
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testResultsMetadata
tests.specs.result.ValidationResultTest ‑ tests.specs.result.ValidationResultTest testTargetName
tests.specs.validators.AcceptedValidatorTest ‑ Accepted can evaluate false when the value is false, n or no
tests.specs.validators.AcceptedValidatorTest ‑ Accepted can evaluate true when the value is 1,true,on and yes
tests.specs.validators.AfterOrEqualValidatorTest ‑ After Or Equal Date Validator can invalidate if the target value is not a date
tests.specs.validators.AfterOrEqualValidatorTest ‑ After Or Equal Date Validator can validate false if the field under validation is before the target
tests.specs.validators.AfterOrEqualValidatorTest ‑ After Or Equal Date Validator can validate true if the field under validation is after the target
tests.specs.validators.AfterOrEqualValidatorTest ‑ After Or Equal Date Validator can validate true if the field under validation is the same as the target
tests.specs.validators.AfterValidatorTest ‑ After Date Validator can invalidate if the target value is not a date
tests.specs.validators.AfterValidatorTest ‑ After Date Validator can validate false if the field under validation is before the target
tests.specs.validators.AfterValidatorTest ‑ After Date Validator can validate false if the field under validation is the same as the target
tests.specs.validators.AfterValidatorTest ‑ After Date Validator can validate true if the field under validation is after the target
tests.specs.validators.AlphaValidatorTest ‑ Accepted can evaluate true when alpha
tests.specs.validators.ArrayItemValidatorTest ‑ Array validator can fail appropriately using simple values
tests.specs.validators.ArrayItemValidatorTest ‑ Array validator can invalidate when 1+ items fail
tests.specs.validators.ArrayItemValidatorTest ‑ Array validator can invalidate when you don't pass an array
tests.specs.validators.ArrayItemValidatorTest ‑ Array validator can validate nested structs
tests.specs.validators.ArrayItemValidatorTest ‑ Array validator can validate when all items pass the constraints
tests.specs.validators.BeforeOrEqualValidatorTest ‑ Before or equal date Validator can invalidate if the target value is not a date
tests.specs.validators.BeforeOrEqualValidatorTest ‑ Before or equal date Validator can validate false if the field under validation is after the target
tests.specs.validators.BeforeOrEqualValidatorTest ‑ Before or equal date Validator can validate true if the field under validation is before the target
tests.specs.validators.BeforeOrEqualValidatorTest ‑ Before or equal date Validator can validate true if the field under validation is the same as the target
tests.specs.validators.BeforeValidatorTest ‑ Before Date Validator can invalidate if the target value is not a date
tests.specs.validators.BeforeValidatorTest ‑ Before Date Validator can validate false if the field under validation is after the target
tests.specs.validators.BeforeValidatorTest ‑ Before Date Validator can validate false if the field under validation is the same as the target
tests.specs.validators.BeforeValidatorTest ‑ Before Date Validator can validate true if the field under validation is before the target
tests.specs.validators.DateEqualsValidatorTest ‑ Date Equals Validator can throw an exception if the target value is not a date
tests.specs.validators.DateEqualsValidatorTest ‑ Date Equals Validator can validate false if the field under validation is after the target
tests.specs.validators.DateEqualsValidatorTest ‑ Date Equals Validator can validate false if the field under validation is before the target
tests.specs.validators.DateEqualsValidatorTest ‑ Date Equals Validator can validate true if the field under validation is the same as the target
tests.specs.validators.DateEqualsValidatorTest ‑ Date Equals Validator can validate true if the validation date is another field with the same date
tests.specs.validators.DiscreteValidatorTest ‑ tests.specs.validators.DiscreteValidatorTest testValidate
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: false fails when given an empty array
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: false fails when given an empty string
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: false fails when given an empty struct
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true fails when given a date
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true fails when given a non-empty array
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true fails when given a non-empty string
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true fails when given a non-empty struct
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true fails when given a number
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true passes when given an empty array
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true passes when given an empty string
tests.specs.validators.EmptyValidatorTest ‑ empty validator empty: true passes when given an empty struct
tests.specs.validators.EmptyValidatorTest ‑ empty validator skips over null values
tests.specs.validators.InListValidatorTest ‑ tests.specs.validators.InListValidatorTest testValidate
tests.specs.validators.InstanceOfValidatorTest ‑ InstanceOf validates false when expecting a Car and receives a User
tests.specs.validators.InstanceOfValidatorTest ‑ InstanceOf validates false when passed a non-object
tests.specs.validators.InstanceOfValidatorTest ‑ InstanceOf validates true when expecting a User and receives a User
tests.specs.validators.InstanceOfValidatorTest ‑ InstanceOf validates true when passed nothing
tests.specs.validators.MaxValidatorTest ‑ tests.specs.validators.MaxValidatorTest testValidateSimple
tests.specs.validators.MethodValidatorTest ‑ tests.specs.validators.MethodValidatorTest testValidate
tests.specs.validators.MinValidatorTest ‑ tests.specs.validators.MinValidatorTest testValidateSimple
tests.specs.validators.NestedConstraintsValidatorTest ‑ Nested constraints validator can invalidate when you don't pass a struct
tests.specs.validators.NestedConstraintsValidatorTest ‑ Nested constraints validator can nest more than one level
tests.specs.validators.NestedConstraintsValidatorTest ‑ Nested constraints validator can validate when all nested constraints pass
tests.specs.validators.NestedConstraintsValidatorTest ‑ Nested constraints validator does no validation when a null value is passed
tests.specs.validators.NestedConstraintsValidatorTest ‑ Nested constraints validator shows the nested field name when a nested constraint fails
tests.specs.validators.NotSameAsNoCaseValidatorTest ‑ tests.specs.validators.NotSameAsNoCaseValidatorTest testValidate
tests.specs.validators.NotSameAsValidatorTest ‑ tests.specs.validators.NotSameAsValidatorTest testValidate
tests.specs.validators.RangeValidatorTest ‑ Accepted can validate different range values
tests.specs.validators.RegexValidatorTest ‑ tests.specs.validators.RegexValidatorTest testValidate
tests.specs.validators.RequiredIfValidatorTest ‑ Accepted can accept a closure as validationData
tests.specs.validators.RequiredIfValidatorTest ‑ Accepted can make targets required if the properties passed have the right value
tests.specs.validators.RequiredIfValidatorTest ‑ Accepted can use custom error metadata
tests.specs.validators.RequiredIfValidatorTest ‑ Accepted simply checks for existence when passing in a simple value
tests.specs.validators.RequiredUnlessValidatorTest ‑ RequiredUnless can make targets required unless the properties passed have the right value
tests.specs.validators.RequiredUnlessValidatorTest ‑ RequiredUnless simply checks for existence when passing in a simple value
tests.specs.validators.RequiredValidatorTest ‑ tests.specs.validators.RequiredValidatorTest testValidate
tests.specs.validators.RequiredValidatorTest ‑ tests.specs.validators.RequiredValidatorTest testValidateComplex
tests.specs.validators.SameAsNoCaseValidatorTest ‑ tests.specs.validators.SameAsNoCaseValidatorTest testValidate
tests.specs.validators.SameAsValidatorTest ‑ tests.specs.validators.SameAsValidatorTest testValidate
tests.specs.validators.SizeValidatorTest ‑ tests.specs.validators.SizeValidatorTest testValidateComplex
tests.specs.validators.SizeValidatorTest ‑ tests.specs.validators.SizeValidatorTest testValidateSimple
tests.specs.validators.TypeValidatorTest ‑ tests.specs.validators.TypeValidatorTest testValidate
tests.specs.validators.UDFValidatorTest ‑ tests.specs.validators.UDFValidatorTest testValidate