Skip to content

fix: Throw on conflict, prevent data from saving

Sign in for the full log view
GitHub Actions / Backend Tests succeeded May 7, 2024 in 0s

161 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.batch.StartBatchJobControllerTest.xml 12βœ… 59s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.contentDelivery.ContentDeliveryConfigControllerTest.xml 21βœ… 6s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.V2ExportControllerTest.xml 9βœ… 13s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.v2ImageUploadController.SecuredV2ImageUploadControllerTest.xml 4βœ… 1s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.v2ProjectsController.ProjectsControllerWithCacheTest.xml 14βœ… 6s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.v2ScreenshotController.SecuredKeyScreenshotControllerTest.xml 6βœ… 5s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.V2UserControllerTest.xml 16βœ… 11s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.automation.AutomationCachingTest.xml 4βœ… 1s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.automation.AutomationCachingWithRedisTest.xml 4βœ… 1s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.autoTranslating.AutoTranslatingTest.xml 13βœ… 10s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.cache.CacheWithoutRedisTest.xml 11βœ… 2s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.cache.CacheWithRedisTest.xml 11βœ… 2s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.component.AesTest.xml 1βœ… 20ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.component.bucket.TokenBucketManagerTestWithRedis.xml 7βœ… 2s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.component.fileStorage.FileStorageS3Test.xml 6βœ… 380ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.controllers.internal.SqlControllerTest.xml 3βœ… 646ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.initialUserCreation.CreateEnabledTest.xml 4βœ… 233ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.initialUserCreation.LegacyMigrationTest.xml 1βœ… 478ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.security.DenyInternalTest.xml 2βœ… 438ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.security.rateLimits.RateLimitsTest.xml 3βœ… 705ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.security.rateLimits.RedisRateLimitsTest.xml 1βœ… 183ms
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.service.organizationRole.OrganizationRoleCachingWithRedisTest.xml 6βœ… 4s
backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.service.recaptchaValidation.RecaptchaValidationTest.xml 2βœ… 280ms

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.batch.StartBatchJobControllerTest.xml

12 tests were completed in 59s with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.batch.StartBatchJobControllerTest 12βœ… 59s

βœ…Β io.tolgee.api.v2.controllers.batch.StartBatchJobControllerTest

βœ… it clears translations()
βœ… it moves to other namespace()
βœ… it tags keys()
βœ… it copies translations()
βœ… it pre-translates by mt()
βœ… it deletes tags when not used()
βœ… it deletes keys()
βœ… it machine translates()
βœ… it changes translation state()
βœ… it untags keys()
βœ… it validates tag length()
βœ… it fails on collision when setting namespaces()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.contentDelivery.ContentDeliveryConfigControllerTest.xml

21 tests were completed in 6s with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.contentDelivery.ContentDeliveryConfigControllerTest 21βœ… 6s

βœ…Β io.tolgee.api.v2.controllers.contentDelivery.ContentDeliveryConfigControllerTest

βœ… throws when custom slug is used with default storage()
βœ… creates content delivery config with auto publish()
βœ… does not set custom slug on update without custom storage()
βœ… deletes content delivery config()
βœ… throws when custom storage removed and generated slug is kept()
βœ… creates content delivery config()
βœ… does not regenerate slug when not using custom storage()
βœ… adds custom slug on update()
βœ… lists content delivery configs()
βœ… creates content delivery config without pruning()
βœ… publishes to default server content delivery config()
βœ… updates content delivery config()
βœ… publishes to s3()
βœ… does not create with custom slug without custom storage()
βœ… does not regenerate slug when custom storage not removed()
βœ… get single()
βœ… publishes to azure()
βœ… removes the automation on update()
βœ… creates with custom slug()
βœ… regenerates slug on update()
βœ… doesnt create when feature not enabled()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.V2ExportControllerTest.xml

9 tests were completed in 13s with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.V2ExportControllerTest 9βœ… 13s

βœ…Β io.tolgee.api.v2.controllers.V2ExportControllerTest

βœ… it exports to json with namespaces()
βœ… it exports to json()
βœ… it exports all languages by default()
βœ… it exports only allowed languages()
βœ… it filters by keyId in()
βœ… the structureDelimiter works()
βœ… it exports to single xliff()
βœ… it exports to single json()
βœ… it reports business event once in a day()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.v2ImageUploadController.SecuredV2ImageUploadControllerTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.v2ImageUploadController.SecuredV2ImageUploadControllerTest 4βœ… 1s

βœ…Β io.tolgee.api.v2.controllers.v2ImageUploadController.SecuredV2ImageUploadControllerTest

βœ… upload()
βœ… getScreenshotFileInvalidTimestamp()
βœ… getFile()
βœ… getScreenshotFileNoTimestamp()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.v2ProjectsController.ProjectsControllerWithCacheTest.xml

14 tests were completed in 6s with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.v2ProjectsController.ProjectsControllerWithCacheTest 14βœ… 6s

βœ…Β io.tolgee.api.v2.controllers.v2ProjectsController.ProjectsControllerWithCacheTest

βœ… getNotPermitted()
βœ… get all has language permissions()
βœ… setUsersPermissionsNoAccess()
βœ… getAll()
βœ… revokeUsersAccessOwn()
βœ… setUsersPermissionsOwner()
βœ… getAllWithStats()
βœ… deleteProject()
βœ… getAllUsers()
βœ… get single returns permissions()
βœ… setUsersPermissionsOwn()
βœ… revokeUsersAccess()
βœ… with-stats returns permitted languages()
βœ… revokeUsersAccessIsOrganizationMember()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.v2ScreenshotController.SecuredKeyScreenshotControllerTest.xml

6 tests were completed in 5s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.v2ScreenshotController.SecuredKeyScreenshotControllerTest 6βœ… 5s

βœ…Β io.tolgee.api.v2.controllers.v2ScreenshotController.SecuredKeyScreenshotControllerTest

βœ… uploadScreenshot()
βœ… findAll()
βœ… getScreenshotFile()
βœ… getScreenshotFileInvalidTimestamp()
βœ… it applies project permissions when accessing the screenshot()
βœ… getScreenshotFileNoTimestamp()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.api.v2.controllers.V2UserControllerTest.xml

16 tests were completed in 11s with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.api.v2.controllers.V2UserControllerTest 16βœ… 11s

βœ…Β io.tolgee.api.v2.controllers.V2UserControllerTest

βœ… it validates the user update request data()
βœ… it doesn't allow updating the email without password()
βœ… returns correct single owned organizations()
βœ… it allows updating the display name without password()
βœ… it updates the user profile()
βœ… it generates super token (with OTP)()
βœ… it doesn't allow updating the password without password()
βœ… it deletes user()
βœ… it sends an email when updating user email()
βœ… it invalidates tokens generated prior a password change()
βœ… it doesn't allow updating the email with an invalid password()
βœ… it doesn't allow updating the password with an invalid password()
βœ… it updates the user password()
βœ… it validates the password change request data()
βœ… it deletes member user and keeps not owning org()
βœ… it generates super token (with password)()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.automation.AutomationCachingTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.automation.AutomationCachingTest 4βœ… 1s

βœ…Β io.tolgee.automation.AutomationCachingTest

βœ… delete clears the cache()
βœ… save clears the cache()
βœ… correctly caches when when request for null activity type()
βœ… caches the automation()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.automation.AutomationCachingWithRedisTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.automation.AutomationCachingWithRedisTest 4βœ… 1s

βœ…Β io.tolgee.automation.AutomationCachingWithRedisTest

βœ… delete clears the cache()
βœ… save clears the cache()
βœ… correctly caches when when request for null activity type()
βœ… caches the automation()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.autoTranslating.AutoTranslatingTest.xml

13 tests were completed in 10s with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.autoTranslating.AutoTranslatingTest 13βœ… 10s

βœ…Β io.tolgee.autoTranslating.AutoTranslatingTest

βœ… consumes last positive credits()
βœ… config test tm enabled()
βœ… auto translates when base provided (non-existing)()
βœ… it returns per language settings()
βœ… auto translates when base provided (existing, but untranslated)()
βœ… config test mt disabled()
βœ… config test mt enabled()
βœ… it returns autoTranslateConfig()
βœ… doesn't fail when out of credits()
βœ… it sets and returns per language settings()
βœ… auto translates new key()
βœ… auto translates using TM()
βœ… config test tm disabled()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.cache.CacheWithoutRedisTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.cache.CacheWithoutRedisTest 11βœ… 2s

βœ…Β io.tolgee.cache.CacheWithoutRedisTest

βœ… caches permission by organization()
βœ… is not caching machine translations (different sourceLang)()
βœ… is not caching machine translations (different input)()
βœ… is caching()
βœ… caches project()
βœ… caches user account()
βœ… caches permission by project and user()
βœ… is not caching machine translations (different service)()
βœ… is caching machine translations()
βœ… is not caching machine translations (different targetLang)()
βœ… it has proper cache manager()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.cache.CacheWithRedisTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.cache.CacheWithRedisTest 11βœ… 2s

βœ…Β io.tolgee.cache.CacheWithRedisTest

βœ… caches permission by organization()
βœ… is not caching machine translations (different sourceLang)()
βœ… is not caching machine translations (different input)()
βœ… is caching()
βœ… caches project()
βœ… caches user account()
βœ… caches permission by project and user()
βœ… is not caching machine translations (different service)()
βœ… is caching machine translations()
βœ… is not caching machine translations (different targetLang)()
βœ… it has proper cache manager()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.component.AesTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.component.AesTest 1βœ… 20ms

βœ…Β io.tolgee.component.AesTest

βœ… it works()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.component.bucket.TokenBucketManagerTestWithRedis.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.component.bucket.TokenBucketManagerTestWithRedis 7βœ… 2s

βœ…Β io.tolgee.component.bucket.TokenBucketManagerTestWithRedis

βœ… it adds tokens()
βœ… sets empty even when not initialized()
βœ… it is thread safe()
βœ… it checks positive balance()
βœ… it consumes credits()
βœ… updates tokens()
βœ… empties the bucket until specific time()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.component.fileStorage.FileStorageS3Test.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.component.fileStorage.FileStorageS3Test 6βœ… 380ms

βœ…Β io.tolgee.component.fileStorage.FileStorageS3Test

βœ… testStoreFile()
βœ… testPruneDirectory()
βœ… testGetFile()
βœ… testFileExists()
βœ… testDeleteFile()
βœ… is S3FileStorage()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.controllers.internal.SqlControllerTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.controllers.internal.SqlControllerTest 3βœ… 646ms

βœ…Β io.tolgee.controllers.internal.SqlControllerTest

βœ… delete()
βœ… getList()
βœ… listEndpoints()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.initialUserCreation.CreateEnabledTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.initialUserCreation.CreateEnabledTest 4βœ… 233ms

βœ…Β io.tolgee.initialUserCreation.CreateEnabledTest

βœ… passwordUpdated()
βœ… passwordStoredInDb()
βœ… passwordNotUpdatedAfterChange()
βœ… storesPassword()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.initialUserCreation.LegacyMigrationTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.initialUserCreation.LegacyMigrationTest 1βœ… 478ms

βœ…Β io.tolgee.initialUserCreation.LegacyMigrationTest

βœ… it migrates the old implicit user when creating the user account()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.security.DenyInternalTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.security.DenyInternalTest 2βœ… 438ms

βœ…Β io.tolgee.security.DenyInternalTest

βœ… getListFail()
βœ… setPropertyFail()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.security.rateLimits.RateLimitsTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.security.rateLimits.RateLimitsTest 3βœ… 705ms

βœ…Β io.tolgee.security.rateLimits.RateLimitsTest

βœ… user request limit works()
βœ… limits auth endpoints()
βœ… ip request limit works()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.security.rateLimits.RedisRateLimitsTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.security.rateLimits.RedisRateLimitsTest 1βœ… 183ms

βœ…Β io.tolgee.security.rateLimits.RedisRateLimitsTest

βœ… ip request limit works()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.service.organizationRole.OrganizationRoleCachingWithRedisTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.service.organizationRole.OrganizationRoleCachingWithRedisTest 6βœ… 4s

βœ…Β io.tolgee.service.organizationRole.OrganizationRoleCachingWithRedisTest

βœ… it evicts cache on grant role()
βœ… it caches organization roles()
βœ… it evicts on set member role()
βœ… it evicts on invitation accept()
βœ… it evicts on remove user()
βœ… it evicts on leave()

βœ…Β backend/app/build/test-results/runContextRecreatingTests/TEST-io.tolgee.service.recaptchaValidation.RecaptchaValidationTest.xml

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

Test suite Passed Failed Skipped Time
io.tolgee.service.recaptchaValidation.RecaptchaValidationTest 2βœ… 280ms

βœ…Β io.tolgee.service.recaptchaValidation.RecaptchaValidationTest

βœ… validates token()
βœ… returns false when invalid()