Skip to content

CID-3408: Make retry interval exponential

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

CID-3408: Handle secondary rate limit #92

CID-3408: Make retry interval exponential
9f3bf55
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded Mar 28, 2025 in 1s

52 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βœ… 3s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.controllers.GitHubWebhookControllerTest.xml 3βœ… 478ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml 1βœ… 829ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.handler.ArtifactDownloadHandlerTest.xml 3βœ… 226ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.listener.ApplicationReadyListenerTest.xml 1βœ… 101ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAPIServiceTest.xml 4βœ… 199ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml 3βœ… 693ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml 5βœ… 72ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 10βœ… 417ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubStartServiceTest.xml 1βœ… 79ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookServiceTest.xml 5βœ… 37ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1βœ… 110ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 13βœ… 978ms
/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 3s with 1 passed, 0 failed and 0 skipped.

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

βœ…Β 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 478ms with 3 passed, 0 failed and 0 skipped.

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

βœ…Β 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 829ms with 1 passed, 0 failed and 0 skipped.

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

βœ…Β 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 226ms with 3 passed, 0 failed and 0 skipped.

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

βœ…Β 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.listener.ApplicationReadyListenerTest.xml

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

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

βœ…Β 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.services.GitHubAPIServiceTest.xml

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

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

βœ…Β 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 693ms with 3 passed, 0 failed and 0 skipped.

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

βœ…Β 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 72ms with 5 passed, 0 failed and 0 skipped.

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

βœ…Β 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 417ms with 10 passed, 0 failed and 0 skipped.

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

βœ…Β 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 79ms with 1 passed, 0 failed and 0 skipped.

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

βœ…Β 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

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

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

βœ…Β 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()

βœ…Β /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 110ms with 1 passed, 0 failed and 0 skipped.

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

βœ…Β 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

13 tests were completed in 978ms with 13 passed, 0 failed and 0 skipped.

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

βœ…Β 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 wait for active scan to finish before starting scanning new org()
βœ… 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 send the org to the backend when an new installation is created()
βœ… should handle installation repositories event()
βœ… 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()