Package org.rhq.modules.integrationTests.restApi.d

Examples of org.rhq.modules.integrationTests.restApi.d.CreateCBRRequest


        int as7Id = findIdOfARealEAP6();

        int createdResourceId=-1;

        try {
            CreateCBRRequest resource = new CreateCBRRequest();
            resource.setParentId(as7Id);
            resource.setResourceName("netinterface-rest");

            // type of the new resource
            resource.setTypeName("Network Interface");
            resource.setPluginName("JBossAS7");

            // pass resourceConfig
            resource.getResourceConfig().put("any-address", "false");
            resource.getResourceConfig().put("any-ipv4-address", "true");
            Response response =
            given()
                .body(resource) // Type of new resource
                .contentType(ContentType.JSON)
                .header(acceptJson)
View Full Code Here


        int as7Id = findIdOfARealEAP6();

        int createdResourceId=-1;

        try {
            CreateCBRRequest resource = new CreateCBRRequest();
            resource.setParentId(as7Id);
            resource.setResourceName("netinterface-rest");

            // type of the new resource
            resource.setTypeName("Network Interface");
            resource.setPluginName("JBossAS7");

            // leave pluginConfig and resourceConfigs empty, so defaults are used
            Response response =
            given()
                .body(resource) // Type of new resource
View Full Code Here

    public void testCreateResourceManualImportAndRemove() throws Exception {
        int platformId = findIdOfARealPlatform();
        int createdResourceId=-1;

        try {
            CreateCBRRequest resource = new CreateCBRRequest();
            resource.setParentId(platformId);
            resource.setResourceName("script-server");

            // type of the new resource
            resource.setTypeName("Script Server");
            resource.setPluginName("Script");

            resource.getPluginConfig().put("executable", "/bin/ls");

            Response response =
            given()
                .body(resource) // Type of new resource
                .contentType(ContentType.JSON)
View Full Code Here

        int createdResourceId=-1;

        // create child of eap6 as deployment
        try {
            CreateCBRRequest resource = new CreateCBRRequest();
            resource.setParentId(as7Id);
            resource.setResourceName("test-simple.war");


            // type of the new resource
            resource.setTypeName("Deployment");
            resource.setPluginName("JBossAS7");

            // set plugin config (path) and deploy config (runtime-name)
            resource.getPluginConfig().put("path","deployment");
            resource.getResourceConfig().put("runtimeName", DEPLOYED_WAR_NAME);

            Response response =
            given()
                .body(resource) // Type of new resource
                .queryParam("handle", handle)
View Full Code Here

    }

    @Test
    public void testCreateCBRBadHandle() throws Exception {

        CreateCBRRequest resource = new CreateCBRRequest();
        resource.setParentId(123);
        resource.setResourceName("test-simple.war");


        // type of the new resource
        resource.setTypeName("Deployment");
        resource.setPluginName("JBossAS7");

        // set plugin config (path) and deploy config (runtime-name)
        resource.getPluginConfig().put("path","deployment");
        resource.getResourceConfig().put("runtimeName","test-simple.war");

        Response response =
        given()
            .body(resource) // Type of new resource
            .queryParam("handle", "This is a joke")
View Full Code Here

TOP

Related Classes of org.rhq.modules.integrationTests.restApi.d.CreateCBRRequest

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.