Skip to content

Commit

Permalink
CID-2745: fix endpoint urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Jul 30, 2024
1 parent 6c6efa8 commit d3dba41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GitHubScanningService(
}
}
logger.info("Sending organizations data")
webSocketService.sendMessage("/ghe/${cachingService.get("runId")}/organizations", organizations)
webSocketService.sendMessage("/app/ghe/${cachingService.get("runId")}/organizations", organizations)
}

private fun fetchAndSendRepositoriesData(installation: Installation) {
Expand All @@ -79,7 +79,7 @@ class GitHubScanningService(
)
logger.info("Sending page $page of repositories")
webSocketService.sendMessage(
"/ghe/${cachingService.get("runId")}/repositories",
"/app/ghe/${cachingService.get("runId")}/repositories",
repositoriesPage.repositories
)
cursor = repositoriesPage.cursor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class GitHubScanningServiceTest {
fun `scanGitHubResources should send organizations over WebSocket`() {
every { cachingService.get("runId") } returns runId
gitHubScanningService.scanGitHubResources()
verify { webSocketService.sendMessage(eq("/ghe/$runId/organizations"), any()) }
verify { webSocketService.sendMessage(eq("/app/ghe/$runId/organizations"), any()) }
}

@Test
Expand Down Expand Up @@ -87,6 +87,6 @@ class GitHubScanningServiceTest {
cursor = null
)
gitHubScanningService.scanGitHubResources()
verify { webSocketService.sendMessage(eq("/ghe/$runId/repositories"), any()) }
verify { webSocketService.sendMessage(eq("/app/ghe/$runId/repositories"), any()) }
}
}

0 comments on commit d3dba41

Please sign in to comment.