Skip to content

CID-3774: Addressing PR comments

b275f1f
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

CID-3774: Move logic of processing installation event to backend #124

CID-3774: Addressing PR comments
b275f1f
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded May 27, 2025 in 0s

54 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.config.WebSocketClientConfigTests.xml 1βœ… 2s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.controllers.GitHubWebhookControllerTest.xml 3βœ… 392ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml 1βœ… 847ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.handler.ArtifactDownloadHandlerTest.xml 3βœ… 193ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.handler.RepositoryGetHandlerTest.xml 1βœ… 21ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.listener.ApplicationReadyListenerTest.xml 1βœ… 83ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.scheduler.AgentConnectionSchedulerTest.xml 2βœ… 12ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAPIServiceTest.xml 4βœ… 175ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml 3βœ… 741ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml 5βœ… 66ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 10βœ… 404ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubStartServiceTest.xml 1βœ… 69ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookServiceTest.xml 6βœ… 38ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.InstallationGetHandlerTest.xml 1βœ… 331ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1βœ… 106ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 10βœ… 354ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebSocketServiceTests.xml 1βœ… 4ms

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.config.WebSocketClientConfigTests.xml

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.config.WebSocketClientConfigTests 1βœ… 2s

βœ…Β net.leanix.githubagent.config.WebSocketClientConfigTests

βœ… initSession should fail after max retry attempts()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.controllers.GitHubWebhookControllerTest.xml

3 tests were completed in 392ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.controllers.GitHubWebhookControllerTest 3βœ… 392ms

βœ…Β net.leanix.githubagent.controllers.GitHubWebhookControllerTest

βœ… should return 400 if missing webhook secret when event had signature()
βœ… should process installation created event successfully()
βœ… should return 202 if webhook event is processed successfully()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml

1 tests were completed in 847ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.GitHubAgentApplicationTests 1βœ… 847ms

βœ…Β net.leanix.githubagent.GitHubAgentApplicationTests

βœ… contextLoads()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.handler.ArtifactDownloadHandlerTest.xml

3 tests were completed in 193ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.handler.ArtifactDownloadHandlerTest 3βœ… 193ms

βœ…Β net.leanix.githubagent.handler.ArtifactDownloadHandlerTest

βœ… it should receive message from server and not send empty artifact()
βœ… it should receive message from server and send artifact()
βœ… it should receive message from server and send artifact when artifact name is null()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.handler.RepositoryGetHandlerTest.xml

1 tests were completed in 21ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.handler.RepositoryGetHandlerTest 1βœ… 21ms

βœ…Β net.leanix.githubagent.handler.RepositoryGetHandlerTest

βœ… it should receive message from server and send repository data and manifest files()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.listener.ApplicationReadyListenerTest.xml

1 tests were completed in 83ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.listener.ApplicationReadyListenerTest 1βœ… 83ms

βœ…Β net.leanix.githubagent.listener.ApplicationReadyListenerTest

βœ… should start the agent process()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.scheduler.AgentConnectionSchedulerTest.xml

2 tests were completed in 12ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.scheduler.AgentConnectionSchedulerTest 2βœ… 12ms

βœ…Β net.leanix.githubagent.scheduler.AgentConnectionSchedulerTest

βœ… should connect when not connected()
βœ… should not connect when already connected()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAPIServiceTest.xml

4 tests were completed in 175ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubAPIServiceTest 4βœ… 175ms

βœ…Β net.leanix.githubagent.services.GitHubAPIServiceTest

βœ… test getPaginatedOrganizations with one page()
βœ… test getPaginatedInstallations with multiple pages()
βœ… test getPaginatedInstallations with one page()
βœ… test getPaginatedOrganizations with multiple pages()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml

3 tests were completed in 741ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubAuthenticationServiceTest 3βœ… 741ms

βœ…Β net.leanix.githubagent.services.GitHubAuthenticationServiceTest

βœ… generateJwtToken should send error log when throwing an exception()
βœ… generateJwtToken with invalid data should throw exception()
βœ… generateJwtToken with valid data should not throw exception()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml

5 tests were completed in 66ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubEnterpriseServiceTest 5βœ… 66ms

βœ…Β net.leanix.githubagent.services.GitHubEnterpriseServiceTest

βœ… validateGithubAppResponse with correct permissions should not throw exception()
βœ… validateGithubAppResponse with missing permissions should throw exception()
βœ… verifyJwt with valid jwt should not throw exception()
βœ… verifyJwt with invalid jwt should throw exception()
βœ… validateGithubAppResponse with missing events should throw exception()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml

10 tests were completed in 404ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubScanningServiceTest 10βœ… 404ms

βœ…Β net.leanix.githubagent.services.GitHubScanningServiceTest

βœ… scanGitHubResources should not send manifest files over WebSocket for manifest files with wrong name()
βœ… scanGitHubResources should skip organizations without correct permissions and events()
βœ… scanGitHubResources should throw JwtTokenNotFound when jwtToken is expired()
βœ… scanGitHubResources should handle empty installations()
βœ… scanGitHubResources should send repositories over WebSocket()
βœ… scanGitHubResources should not send repositories and manifest files over WebSocket for archived repos()
βœ… scanGitHubResources should send repositories and manifest files over WebSocket()
βœ… scanGitHubResources should send organizations over WebSocket()
βœ… scanGitHubResources should accept manifest files with case ignored()
βœ… scanGitHubResources should send manifest files with empty path if the file is in the root directory()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubStartServiceTest.xml

1 tests were completed in 69ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubStartServiceTest 1βœ… 69ms

βœ…Β net.leanix.githubagent.services.GitHubStartServiceTest

βœ… should start syncLog and send GitHub App name()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookServiceTest.xml

6 tests were completed in 38ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubWebhookServiceTest 6βœ… 38ms

βœ…Β net.leanix.githubagent.services.GitHubWebhookServiceTest

βœ… should throw WebhookSecretNotSetException when signature is present but secret is not set()
βœ… should not process unsupported event type()
βœ… should throw InvalidEventSignatureException for invalid signature()
βœ… should not process event if unknown host()
βœ… should process supported event type successfully()
βœ… should ignore event when runId is present and event type is not INSTALLATION()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.InstallationGetHandlerTest.xml

1 tests were completed in 331ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.InstallationGetHandlerTest 1βœ… 331ms

βœ…Β net.leanix.githubagent.services.InstallationGetHandlerTest

βœ… should wait for active scan to finish before starting scanning new org()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml

1 tests were completed in 106ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.LeanIXAuthServiceTest 1βœ… 106ms

βœ…Β net.leanix.githubagent.services.LeanIXAuthServiceTest

βœ… getBearerToken should return valid token()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml

10 tests were completed in 354ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebhookEventServiceTest 10βœ… 354ms

βœ…Β net.leanix.githubagent.services.WebhookEventServiceTest

βœ… should send updates for yml manifest file()
βœ… should not process push event with wrong name()
βœ… should handle manifest file removal in subdirectory()
βœ… should process push event()
βœ… should handle manifest file in subdirectory()
βœ… should send all events of type other than push to backend without processing()
βœ… should accept manifest files with case ignore()
βœ… should ignore push events without a head commit()
βœ… should handle push event only with supported YAML extension()
βœ… should handle push event with multiple added and modified files()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebSocketServiceTests.xml

1 tests were completed in 4ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebSocketServiceTests 1βœ… 4ms

βœ…Β net.leanix.githubagent.services.WebSocketServiceTests

βœ… initSession should initialize stompSession successfully()