agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests job app input validation trims input values
     */
Tests job app input validation trims input values
Tests job app input validation trims input values
@Test(dataProvider = "processThrowsExceptionForInputNotMatchingValidatorProvider", expectedExceptions = JobProcessingException.class)
    public void processThrowsExceptionForInputNotMatchingValidator(ObjectNode testInputs) throws JobProcessingException
    {
        String message = "Inputs not matching validator should fail";
        SoftwareInput softwareInput = createInput("testInput", null, "^https://", false, true);
        softwareInput.setMaxCardinality(-1);
        try {
            _genericProcess(List.of(softwareInput), testInputs);
        } catch (PermissionException e) {
            fail("Permission exception should not be thrown when the validation check fails.", e);
        }
    }
@ Test ( dataProvider = "processThrowsExceptionForInputNotMatchingValidatorProvider" , expectedExceptions = JobProcessingException . class ) public void processThrowsExceptionForInputNotMatchingValidator ( ObjectNode testInputs ) throws JobProcessingException { String message = "Inputs not matching validator should fail" ; SoftwareInput softwareInput = createInput ( "testInput" , null , "^https://" , false , true ) ; softwareInput . setMaxCardinality ( - 1 ) ; try { _genericProcess ( List . of ( softwareInput ) , testInputs ) ; } catch ( PermissionException e ) { fail ( "Permission exception should not be thrown when the validation check fails." , e ) ; } }
Tests job app input validation trims input values
Tests job app input validation trims input values