agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests job app input validation succeeds
     *
     * @param testInputs the input to test
     */
Tests job app input validation succeeds
@param testInputs the input to test
Tests job app input validation succeeds @param testInputs the input to test
@Test(dataProvider = "processValidatesAcceptableInputProvider")
    public void processValidatesAcceptableInput(ObjectNode testInputs) throws JobProcessingException
    {
        String message = "Inputs matching validator should succeed";
        String testUrl = "https://example.com/index.html";
        ObjectNode processedInputs;
        SoftwareInput softwareInput = createInput("testInput", null, "^https://", false, true);
        try {
            processedInputs = _genericProcess(List.of(softwareInput), mapper.createObjectNode().put(softwareInput.getKey(), testUrl));
            assertTrue(processedInputs.has(softwareInput.getKey()), message);
            assertEquals(processedInputs.get(softwareInput.getKey()).get(0).asText(), StringUtils.strip(testUrl), message);
        } catch (PermissionException e) {
            fail("Permission exception should not be thrown when the validation check fails.", e);
        }
    }
@ Test ( dataProvider = "processValidatesAcceptableInputProvider" ) public void processValidatesAcceptableInput ( ObjectNode testInputs ) throws JobProcessingException { String message = "Inputs matching validator should succeed" ; String testUrl = "https://example.com/index.html" ; ObjectNode processedInputs ; SoftwareInput softwareInput = createInput ( "testInput" , null , "^https://" , false , true ) ; try { processedInputs = _genericProcess ( List . of ( softwareInput ) , mapper . createObjectNode ( ) . put ( softwareInput . getKey ( ) , testUrl ) ) ; assertTrue ( processedInputs . has ( softwareInput . getKey ( ) ) , message ) ; assertEquals ( processedInputs . get ( softwareInput . getKey ( ) ) . get ( 0 ) . asText ( ) , StringUtils . strip ( testUrl ) , message ) ; } catch ( PermissionException e ) { fail ( "Permission exception should not be thrown when the validation check fails." , e ) ; } }
Tests job app input validation succeeds
 @param testInputs the input to test
Tests job app input validation succeeds @param testInputs the input to test