Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CID-2910: Proxy support #55

Merged
merged 10 commits into from
Dec 2, 2024

Minor updates

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

CID-2910: Proxy support #55

Minor updates
ce5a8db
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded Nov 28, 2024 in 0s

33 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.controllers.GitHubWebhookControllerTest.xml 2βœ… 1s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml 1βœ… 932ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.runners.PostStartupRunnerTest.xml 1βœ… 733ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml 3βœ… 1s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml 5βœ… 31ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 6βœ… 560ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookHandlerTest.xml 5βœ… 56ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1βœ… 95ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 8βœ… 215ms
/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.controllers.GitHubWebhookControllerTest.xml

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

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

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

βœ… should return 400 if missing webhook secret when event had signature()
βœ… 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 932ms with 1 passed, 0 failed and 0 skipped.

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

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.runners.PostStartupRunnerTest 1βœ… 733ms

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

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

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

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

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

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

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

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

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

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

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

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

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

8 tests were completed in 215ms with 8 passed, 0 failed and 0 skipped.

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

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

βœ… should send updates for yml manifest file()
βœ… 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 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()