DashboardIT: Fix dashboard name in dashboardDoesNotExist test

The test was passing, but for the wrong reason. The expected format
of the dashboard name is "ref:name" and if the given dashboard does
not match that, 404 is returned.

The test was using the name "dashboard" which caused a 404 response
as mentioned above.

Change the dashboard name to "my:dashboard". The 404 is still
returned, but now for the correct reason.

Change-Id: I5bd5567be26d04f093df173c239fd3149585e163
This commit is contained in:
David Pursehouse
2017-09-19 19:31:24 +09:00
parent 3f956041ef
commit 701cbe3eec

View File

@@ -30,6 +30,6 @@ public class DashboardIT extends AbstractDaemonTest {
@Test
public void dashboardDoesNotExist() throws Exception {
exception.expect(ResourceNotFoundException.class);
gApi.projects().name(project.get()).dashboard("dashboard").get();
gApi.projects().name(project.get()).dashboard("my:dashboard").get();
}
}