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

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


    @Test
    public void testAddResourceToGroup() throws Exception {

        assert _platformId !=0 : "Set up did not run or was not successful";

        Group group = new Group(X_TEST_GROUP);

        // Generate the group
        Response response =
        given()
                .header(acceptJson)
View Full Code Here


        }
    }

    @Test
    public void testAddResourceToGroupAndGetResources() throws Exception {
        Group group = new Group(X_TEST_GROUP);

        // Generate the group
        Response response =
        given()
                .header(acceptJson)
View Full Code Here

            .get("/group/{groupId}/resources");
    }

    @Test
    public void testAddNonExistingResourceToGroup() throws Exception {
        Group group = new Group(X_TEST_GROUP);

        // Generate the group
        Response response =
        given()
                .header(acceptJson)
View Full Code Here

        }
    }

    @Test
    public void testRemoveResourceFromGroup() throws Exception {
        Group group = new Group(X_TEST_GROUP);

        // Generate the group
        Response response =
        given()
                .header(acceptJson)
View Full Code Here

        }
    }

    @Test
    public void testRemoveUnknonwResourceFromGroup() throws Exception {
        Group group = new Group(X_TEST_GROUP);

        // Generate the group
        Response response =
        given()
                .header(acceptJson)
View Full Code Here

            .delete("/group/{id}");
    }

    @Test
    public void testGetMetricDefinitionsForGroup() throws Exception {
        Group group = new Group(X_TEST_GROUP);
        group.setCategory("COMPATIBLE");
        group.setResourceTypeId(_platformTypeId);

        // Generate the group
        Response response =
        given()
                .header(acceptJson)
View Full Code Here

        }
    }

    @Test
    public void testAddRemoveFavoriteGroup() throws Exception {
        Group group = new Group("-x-test-group-user");

        //  create a group
        Response created =
        given()
                .header(acceptJson)
View Full Code Here

TOP

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

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.