ProjectApi: Add convenience method to get default dashboard
Change-Id: I301d727f24a467f91b99defc60ee146956311049
This commit is contained in:
@@ -24,6 +24,12 @@ public class DashboardIT extends AbstractDaemonTest {
|
||||
@Test
|
||||
public void defaultDashboardDoesNotExist() throws Exception {
|
||||
exception.expect(ResourceNotFoundException.class);
|
||||
gApi.projects().name(project.get()).dashboard("default").get();
|
||||
gApi.projects().name(project.get()).defaultDashboard().get();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dashboardDoesNotExist() throws Exception {
|
||||
exception.expect(ResourceNotFoundException.class);
|
||||
gApi.projects().name(project.get()).dashboard("dashboard").get();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user