assertJson(response).isSimilarTo(getClass().getResource("project_status-example.json"));
}
@Test
public void return_status_by_project_id() throws IOException {
userSession.login("john").setGlobalPermissions(SYSTEM_ADMIN);
<BUG>ComponentDto project = newProjectDto("project-uuid");

dbClient.componentDao().insert(dbSession, project);</BUG>
SnapshotDto snapshot = dbClient.snapshotDao().insert(dbSession, newSnapshotForProject(project)
.setPeriodMode(1, "last_period")

assertJson(response).isSimilarTo(getClass().getResource("project_status-example.json"));
}
@Test
public void return_status_by_project_id() throws IOException {
userSession.login("john").setGlobalPermissions(SYSTEM_ADMIN);
ComponentDto project = componentDb.insertComponent(newProjectDto("project-uuid"));
SnapshotDto snapshot = dbClient.snapshotDao().insert(dbSession, newSnapshotForProject(project)
.setPeriodMode(1, "last_period")
