Skip to content

CID-2940 Use 3 max attempts for retrying establishing connection #229

CID-2940 Use 3 max attempts for retrying establishing connection

CID-2940 Use 3 max attempts for retrying establishing connection #229

GitHub Actions / Unit Tests succeeded Dec 13, 2024 in 0s

36 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✅ 419ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml 1✅ 853ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.runners.PostStartupRunnerTest.xml 1✅ 319ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml 3✅ 907ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml 5✅ 37ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 6✅ 414ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookServiceTest.xml 5✅ 35ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1✅ 88ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 9✅ 570ms
/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 419ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.controllers.GitHubWebhookControllerTest 3✅ 419ms

✅ 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 853ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.GitHubAgentApplicationTests 1✅ 853ms

✅ net.leanix.githubagent.GitHubAgentApplicationTests

✅ contextLoads()

✅ /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.runners.PostStartupRunnerTest.xml

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.runners.PostStartupRunnerTest 1✅ 319ms

✅ net.leanix.githubagent.runners.PostStartupRunnerTest

✅ 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.GitHubAuthenticationServiceTest.xml

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubAuthenticationServiceTest 3✅ 907ms

✅ 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 37ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubEnterpriseServiceTest 5✅ 37ms

✅ 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

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubScanningServiceTest 6✅ 414ms

✅ net.leanix.githubagent.services.GitHubScanningServiceTest

✅ scanGitHubResources should throw JwtTokenNotFound when jwtToken is expired()
✅ scanGitHubResources should handle empty installations()
✅ scanGitHubResources should send repositories over WebSocket()
✅ scanGitHubResources should send repositories and manifest files over WebSocket()
✅ scanGitHubResources should send organizations over WebSocket()
✅ 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.GitHubWebhookServiceTest.xml

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubWebhookServiceTest 5✅ 35ms

✅ 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 88ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.LeanIXAuthServiceTest 1✅ 88ms

✅ 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

9 tests were completed in 570ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebhookEventServiceTest 9✅ 570ms

✅ net.leanix.githubagent.services.WebhookEventServiceTest

✅ should send updates for yml manifest file()
✅ 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 handle push event only with supported YAML extension()
✅ should handle push event with multiple added and modified files()
✅ should refresh tokens if expired()

✅ /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()