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

fix: Automations not exclusive for project #2049

Merged
merged 3 commits into from
Dec 28, 2023

chore: Fix test

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

fix: Automations not exclusive for project #2049

chore: Fix test
37448db
Select commit
Loading
Failed to load commit list.
GitHub Actions / Backend Tests succeeded Dec 28, 2023 in 0s

Backend Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
backend/data/build/test-results/test/TEST-io.tolgee.security.authentication.JwtServiceTest.xml 10✅ 218ms
backend/data/build/test-results/test/TEST-io.tolgee.security.ratelimit.RateLimitServiceTest.xml 9✅ 103ms
backend/data/build/test-results/test/TEST-io.tolgee.security.RequestContextServiceTest.xml 5✅ 310ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest.xml 1✅ 605ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest.xml 1✅ 2ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.CoreImportFileProcessorUnitTest.xml 3✅ 492ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.KeysDistanceUtilTest.xml 1✅ 4ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.PathDTOTest.xml 5✅ 8ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest.xml 2✅ 7ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest.xml 8✅ 109ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest.xml 3✅ 30ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest.xml 1✅ 2ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest.xml 3✅ 290ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest.xml 1✅ 19ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.TextHelperTest.xml 4✅ 6ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.util.SlugGeneratorTest.xml 8✅ 32ms
backend/data/build/test-results/test/TEST-io.tolgee.util.WordCounterTest.xml 2✅ 65ms

✅ backend/data/build/test-results/test/TEST-io.tolgee.security.authentication.JwtServiceTest.xml

10 tests were completed in 218ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.security.authentication.JwtServiceTest 10✅ 218ms

✅ io.tolgee.security.authentication.JwtServiceTest

✅ it rejects tokens emitted before user tokens validity period()
✅ it generates and understands tickets()
✅ it generates and understands tokens()
✅ it validates the type of the ticket()
✅ it rejects expired tickets()
✅ it ignores super powers when they are expired()
✅ it stores the super powers of tokens when it has them()
✅ it rejects invalid tokens and tickets()
✅ it stores arbitrary data in tickets()
✅ it rejects expired tokens()

✅ backend/data/build/test-results/test/TEST-io.tolgee.security.ratelimit.RateLimitServiceTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.security.ratelimit.RateLimitServiceTest 9✅ 103ms

✅ io.tolgee.security.ratelimit.RateLimitServiceTest

✅ it conditionally applies rate limit policies correctly when throwing exceptions()
✅ rate limit bucket is correctly defined for global user rate limit()
✅ authentication-limits config only affects authentication endpoint limits()
✅ it applies rate limit policies correctly()
✅ rate limit bucket is correctly defined for global public rate limit()
✅ global-limits config only affects global limits()
✅ rate limit bucket is correctly defined for global auth rate limit()
✅ endpoint-limits config only affects non-auth endpoint limits()
✅ it conditionally applies rate limit policies correctly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.security.RequestContextServiceTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.security.RequestContextServiceTest 5✅ 310ms

✅ io.tolgee.security.RequestContextServiceTest

✅ it throws in implicit scenarios without an API key()
✅ it correctly detects the current organization()
✅ it correctly detects the current project()
✅ it correctly detects the current project in implicit scenarios()
✅ it correctly detects the current organization when using slugs()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest 1✅ 605ms

✅ io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest

✅ correctly purges()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest 1✅ 2ms

✅ io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest

✅ it converts correctly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.CoreImportFileProcessorUnitTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.CoreImportFileProcessorUnitTest 3✅ 492ms

✅ io.tolgee.unit.CoreImportFileProcessorUnitTest

✅ stores key meta()
✅ finds proper existing language for imported language()
✅ handles conflicts properly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.KeysDistanceUtilTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.KeysDistanceUtilTest 1✅ 4ms

✅ io.tolgee.unit.KeysDistanceUtilTest

✅ it works()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.PathDTOTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.PathDTOTest 5✅ 8ms

✅ io.tolgee.unit.PathDTOTest

✅ testFromNamePathList()
✅ testFromFullPath()
✅ testFromNamePath()
✅ testFromFullPathList()
✅ escaping()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest 2✅ 7ms

✅ io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest

✅ returns PHP format()
✅ returns C format()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest 8✅ 109ms

✅ io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest

✅ testPhpMessageWithFlags()
✅ testPhpPlurals()
✅ testPythonMessage()
✅ testCMessage()
✅ testPhpMessage()
✅ testPhpMessageKey()
✅ testPhpMessageMultiple()
✅ testPhpMessageEscapes()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest 3✅ 30ms

✅ io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest

✅ processes standard file correctly()
✅ adds metadata()
✅ processes windows newlines()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest 1✅ 2ms

✅ io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest

✅ returns correct parsed result()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest 3✅ 290ms

✅ io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest

✅ processes xliff 12 fast enough()
✅ handles errors correctly()
✅ processes xliff 12 file correctly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest 1✅ 19ms

✅ io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest

✅ processes xliff 12 file()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.TextHelperTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.TextHelperTest 4✅ 6ms

✅ io.tolgee.unit.TextHelperTest

✅ replaces ICU params in standard text()
✅ splitOnNonEscapedDelimiter()
✅ replaces ICU params with escaping()
✅ replaces ICU params in text with params()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.util.SlugGeneratorTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.unit.util.SlugGeneratorTest 8✅ 32ms

✅ io.tolgee.unit.util.SlugGeneratorTest

✅ throwsWhenTooHard()
✅ removesSpecialChars()
✅ testValidInput()
✅ testGenerateEmpty()
✅ addsNumbersAndShorten()
✅ shortenString()
✅ shortensAfterNumbers()
✅ removesAccents()

✅ backend/data/build/test-results/test/TEST-io.tolgee.util.WordCounterTest.xml

2 tests were completed in 65ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.util.WordCounterTest 2✅ 65ms

✅ io.tolgee.util.WordCounterTest

✅ returns ULocale from tag()
✅ counts words correctly()