Package com.sonyericsson.hudson.plugins.metadata

Examples of com.sonyericsson.hudson.plugins.metadata.TestACL


        JSONArray jobs = (JSONArray)json.get("jobs");
        assertEquals(2, jobs.size());

        //Lets secure Jenkins
        hudson.setSecurityRealm(createDummySecurityRealm());
        hudson.setAuthorizationStrategy(new TestACL());

        web = createWebClient();
        web = web.login("testuser");

        page = web.goTo("/view/Test/api/json", "application/json");
View Full Code Here


        WebClient web = createWebClient();
        doTestSearch(web, "name=value", 2);

        //Setup ACL
        hudson.setSecurityRealm(createDummySecurityRealm());
        hudson.setAuthorizationStrategy(new TestACL());

        //Do the test with ACL
        web = createWebClient();
        web = web.login("testuser");
        doTestSearch(web, "name=value", 1);
View Full Code Here

TOP

Related Classes of com.sonyericsson.hudson.plugins.metadata.TestACL

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.