Search in sources :

Example 1 with StatisticsResource

use of org.ovirt.engine.api.resource.StatisticsResource in project ovirt-engine by oVirt.

the class BackendGlusterBrickResourceTest method testStatisticalQuery.

@Test
public void testStatisticalQuery() throws Exception {
    setUriInfo(setUpBasicUriExpectations());
    setupParentExpectations();
    setupEntityExpectationAdvancedDetails(1, false, true);
    resource.setParent(bricksResourceMock);
    StatisticsResource statRes = resource.getStatisticsResource();
    Statistics statistics = statRes.list();
    assertNotNull(statistics);
}
Also used : StatisticsResource(org.ovirt.engine.api.resource.StatisticsResource) Statistics(org.ovirt.engine.api.model.Statistics) Test(org.junit.Test) AbstractBackendSubResourceTest(org.ovirt.engine.api.restapi.resource.AbstractBackendSubResourceTest)

Aggregations

Test (org.junit.Test)1 Statistics (org.ovirt.engine.api.model.Statistics)1 StatisticsResource (org.ovirt.engine.api.resource.StatisticsResource)1 AbstractBackendSubResourceTest (org.ovirt.engine.api.restapi.resource.AbstractBackendSubResourceTest)1