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: Organization validation constraints too strict #2043

Merged
merged 1 commit into from
Dec 26, 2023

fix: Organization validation constraints too strict

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

fix: Organization validation constraints too strict #2043

fix: Organization validation constraints too strict
020be6a
Select commit
Loading
Failed to load commit list.
GitHub Actions / Backend Tests succeeded Dec 25, 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✅ 189ms
backend/data/build/test-results/test/TEST-io.tolgee.security.ratelimit.RateLimitServiceTest.xml 9✅ 108ms
backend/data/build/test-results/test/TEST-io.tolgee.security.RequestContextServiceTest.xml 5✅ 266ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest.xml 1✅ 738ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest.xml 1✅ 1ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.CoreImportFileProcessorUnitTest.xml 3✅ 552ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.KeysDistanceUtilTest.xml 1✅ 5ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.PathDTOTest.xml 5✅ 7ms
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✅ 117ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest.xml 3✅ 23ms
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✅ 309ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest.xml 1✅ 18ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.TextHelperTest.xml 4✅ 10ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.util.SlugGeneratorTest.xml 8✅ 30ms
backend/data/build/test-results/test/TEST-io.tolgee.util.WordCounterTest.xml 2✅ 86ms

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

✅ io.tolgee.unit.KeysDistanceUtilTest

✅ it works()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

✅ io.tolgee.util.WordCounterTest

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