Skip to content

Commit 3528570

Browse files
committed
update end to end tests
1 parent da5c8a6 commit 3528570

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

test/SeqCli.EndToEnd/License/LicenseApplyTestsCasecs.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public Task ExecuteAsync(SeqConnection connection, ILogger logger, CliCommandRun
2121
var filename = _testDataFolder.ItemPath("license.txt");
2222
File.WriteAllText(filename, "Ceci n'est pas une licence");
2323
runner.Exec("license apply", $"--certificate=\"{filename}\"");
24-
Assert.Equal(
25-
"The command failed: 400 - The license format is invalid: data precedes any keys.",
26-
runner.LastRunProcess.Output.Trim());
24+
Assert.Contains(
25+
"The license format is invalid: data precedes any keys.",
26+
runner.LastRunProcess!.Output.Trim());
2727
return Task.CompletedTask;
2828
}
2929
}

test/SeqCli.EndToEnd/Node/NodeDemoteTestCase.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

test/SeqCli.EndToEnd/Node/NodeListTestCase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public Task ExecuteAsync(SeqConnection connection, ILogger logger, CliCommandRun
1414
var exit = runner.Exec("node list --json");
1515
Assert.Equal(0, exit);
1616

17-
Assert.Contains("\"Role\":", runner.LastRunProcess!.Output);
1817
Assert.Contains("\"Name\":", runner.LastRunProcess!.Output);
1918
Assert.Contains("\"StateDescription\":", runner.LastRunProcess!.Output);
2019
return Task.CompletedTask;

0 commit comments

Comments
 (0)