api/src/test/java/edu/utexas/tacc/tapis/files/api/resources/ITestOpsRoutes.java
@Test(dataProvider = "mkdirBadDataProvider")
    public void testMkdirWithBadData(Pair<String, TapisSystem> inputs) throws Exception {
        when(systemsCache.getSystem(any(), any(), any())).thenReturn(inputs.getRight());
        MkdirRequest req = new MkdirRequest();
        req.setPath(inputs.getLeft());
        Response response = target("/v3/files/ops/testSystem/")
            .request()
            .accept(MediaType.APPLICATION_JSON)
            .header("x-tapis-token", getJwtForUser("dev", "testuser1"))
            .post(Entity.json(req), Response.class);

        Assert.assertEquals(response.getStatus(), 400);
    }
/**
     * All the funky paths should get cleaned up
     * @param inputs
     * @throws Exception
     */
All the funky paths should get cleaned up
@param inputs
@throws Exception
All the funky paths should get cleaned up @param inputs @throws Exception
@Test(dataProvider = "mkdirBadDataProvider")
    public void testMkdirWithBadData(Pair<String, TapisSystem> inputs) throws Exception {
        when(systemsCache.getSystem(any(), any(), any())).thenReturn(inputs.getRight());
        MkdirRequest req = new MkdirRequest();
        req.setPath(inputs.getLeft());
        Response response = target("/v3/files/ops/testSystem/")
            .request()
            .accept(MediaType.APPLICATION_JSON)
            .header("x-tapis-token", getJwtForUser("dev", "testuser1"))
            .post(Entity.json(req), Response.class);
        Assert.assertEquals(response.getStatus(), 400);
    }
@ Test ( dataProvider = "mkdirBadDataProvider" ) public void testMkdirWithBadData ( Pair < String , TapisSystem > inputs ) throws Exception { when ( systemsCache . getSystem ( any ( ) , any ( ) , any ( ) ) ) . thenReturn ( inputs . getRight ( ) ) ; MkdirRequest req = new MkdirRequest ( ) ; req . setPath ( inputs . getLeft ( ) ) ; Response response = target ( "/v3/files/ops/testSystem/" ) . request ( ) . accept ( MediaType . APPLICATION_JSON ) . header ( "x-tapis-token" , getJwtForUser ( "dev" , "testuser1" ) ) . post ( Entity . json ( req ) , Response . class ) ; Assert . assertEquals ( response . getStatus ( ) , 400 ) ; }
All the funky paths should get cleaned up
 @param inputs
 @throws Exception
All the funky paths should get cleaned up @param inputs @throws Exception