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-2870 Adds test report to the build workflow #23

Merged
merged 1 commit into from
Sep 3, 2024

cid-2870 Adds test report to the build workflow

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

cid-2870 Adds test report to the build workflow #23

cid-2870 Adds test report to the build workflow
f0da8e0
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded Sep 3, 2024 in 0s

28 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✅ 1s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.runners.PostStartupRunnerTest.xml 1✅ 604ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml 2✅ 1s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml 5✅ 33ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 4✅ 488ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookHandlerTest.xml 5✅ 60ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1✅ 122ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 6✅ 337ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebSocketServiceTests.xml 1✅ 5ms

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

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

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

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

✅ net.leanix.githubagent.runners.PostStartupRunnerTest

✅ should send GitHub App name()

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

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubAuthenticationServiceTest 2✅ 1s

✅ net.leanix.githubagent.services.GitHubAuthenticationServiceTest

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

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

✅ 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

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubScanningServiceTest 4✅ 488ms

✅ 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 organizations over WebSocket()

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubWebhookHandlerTest 5✅ 60ms

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

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

✅ 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

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

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebhookEventServiceTest 6✅ 337ms

✅ net.leanix.githubagent.services.WebhookEventServiceTest

✅ should send updates for yml manifest file()
✅ should process push event()
✅ should send all events of type other than push to backend without processing()
✅ should send updates for yaml manifest file()
✅ should ignore yml file changes if yaml file exist in repository()
✅ 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 5ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebSocketServiceTests 1✅ 5ms

✅ net.leanix.githubagent.services.WebSocketServiceTests

✅ initSession should initialize stompSession successfully()