-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update k8s with most recent docker builds
Break out slow E2E tests so fast E2E tests can be run in VSCode easily
- Loading branch information
1 parent
022819e
commit 5ee0eb8
Showing
5 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Serval.E2ETests; | ||
|
||
[TestFixture] | ||
[Category("E2E")] | ||
[Category("slow")] | ||
public class ServalApiSlowTests | ||
{ | ||
private ServalClientHelper? _helperClient; | ||
|
||
[SetUp] | ||
public void SetUp() | ||
{ | ||
_helperClient = new ServalClientHelper("https://machine.sil.org", ignoreSSLErrors: true); | ||
} | ||
|
||
[Test] | ||
public async Task GetSmtWholeBible() | ||
{ | ||
await _helperClient!.ClearEngines(); | ||
string engineId = await _helperClient.CreateNewEngine("SmtTransfer", "es", "en", "SMT2"); | ||
await _helperClient.AddTextCorpusToEngine(engineId, new string[] { "bible.txt" }, "es", "en", false); | ||
await _helperClient.BuildEngine(engineId); | ||
TranslationResult tResult = await _helperClient.translationEnginesClient.TranslateAsync(engineId, "Espíritu"); | ||
Assert.AreEqual(tResult.Translation, "Spirit"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters