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-3107: React to manifest file deletion via Webhook #33

chore: extract manifest file location to function

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

CID-3107: React to manifest file deletion via Webhook #33

chore: extract manifest file location to function
4a4d181
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded Nov 5, 2024 in 1s

31 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βœ… 975ms
/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βœ… 602ms
/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βœ… 40ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 5βœ… 623ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookHandlerTest.xml 5βœ… 51ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1βœ… 121ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 7βœ… 300ms
/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 975ms with 2 passed, 0 failed and 0 skipped.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

7 tests were completed in 300ms with 7 passed, 0 failed and 0 skipped.

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

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