Fix typo in endpoint #1115
Annotations
5 errors
Serval.ApiServer.TranslationEngineTests ► AddParallelCorpusToEngineByIdAsync(["update:translation_engines"],201,"e00000000000000000000001"):
src/Serval/test/Serval.ApiServer.IntegrationTests/TranslationEngineTests.cs#L830
Failed test found in:
src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx
Error:
Multiple failures or warnings in test:
1) Assert.That(engine.ParallelCorpora[0].SourceCorpora[0].Files[0].Filename, Is.EqualTo(FILE2_FILENAME))
String lengths are both 6. Strings differ at index 5.
Expected: "file_b"
But was: "file_a"
----------------^
2) Assert.That(engine.ParallelCorpora[0].TargetCorpora[0].Files[0].Filename, Is.EqualTo(FILE1_FILENAME))
String lengths are both 6. Strings differ at index 5.
Expected: "file_a"
But was: "file_b"
----------------^
|
Serval.ApiServer.TranslationEngineTests ► UpdateCorpusByIdForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],200,"e00000000000000000000001"):
src/Serval/test/Serval.ApiServer.IntegrationTests/TranslationEngineTests.cs#L646
Failed test found in:
src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx
Error:
Multiple failures or warnings in test:
1) Assert.That(engine.Corpora[0].SourceFiles[0].Filename, Is.EqualTo(FILE1_FILENAME))
String lengths are both 6. Strings differ at index 5.
Expected: "file_a"
But was: "file_b"
----------------^
2) Assert.That(engine.Corpora[0].TargetFiles[0].Filename, Is.EqualTo(FILE2_FILENAME))
String lengths are both 6. Strings differ at index 5.
Expected: "file_b"
But was: "file_a"
----------------^
|
Serval.ApiServer.TranslationEngineTests ► UpdateParallelCorpusByIdForEngineByIdAsync(["update:translation_engines", "create:translation_engines", "read:translation_engines"],200,"e00000000000000000000001"):
src/Serval/src/Serval.Client/Client.g.cs#L7927
Failed test found in:
src/Serval/test/Serval.ApiServer.IntegrationTests/TestResults/test-results.trx
Error:
Serval.Client.ServalApiException : Could not deserialize the response body stream as Serval.Client.TranslationCorpus.
Status: 200
Response:
----> Newtonsoft.Json.JsonSerializationException : Required property 'sourceLanguage' not found in JSON. Path '', line 1, position 422.
|
Build
Failed test were found and 'fail-on-error' option is set to true
|
Build
Process completed with exit code 1.
|