mirror of
https://github.com/actions/runner.git
synced 2025-12-13 18:33:52 +00:00
Fix L0 tests, add/update runner release yaml. (#214)
This commit is contained in:
@@ -154,64 +154,5 @@ namespace GitHub.Runner.Common.Tests.Worker
|
||||
_stepRunner.Verify(x => x.RunAsync(It.IsAny<IExecutionContext>()), Times.Never);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Move these tests over to JobExtensionL0.cs
|
||||
// [Fact]
|
||||
// [Trait("Level", "L0")]
|
||||
// [Trait("Category", "Worker")]
|
||||
// public async Task UploadDiganosticLogIfEnvironmentVariableSet()
|
||||
// {
|
||||
// using (TestHostContext hc = CreateTestContext())
|
||||
// {
|
||||
// _message.Variables[Constants.Variables.Actions.RunnerDebug] = "true";
|
||||
|
||||
// await _jobRunner.RunAsync(_message, _tokenSource.Token);
|
||||
|
||||
// _diagnosticLogManager.Verify(x =>
|
||||
// x.UploadDiagnosticLogsAsync(
|
||||
// It.IsAny<IExecutionContext>(),
|
||||
// It.IsAny<Pipelines.AgentJobRequestMessage>(),
|
||||
// It.IsAny<DateTime>()),
|
||||
// Times.Once);
|
||||
// }
|
||||
// }
|
||||
|
||||
// [Fact]
|
||||
// [Trait("Level", "L0")]
|
||||
// [Trait("Category", "Worker")]
|
||||
// public async Task DontUploadDiagnosticLogIfEnvironmentVariableFalse()
|
||||
// {
|
||||
// using (TestHostContext hc = CreateTestContext())
|
||||
// {
|
||||
// _message.Variables[Constants.Variables.Actions.RunnerDebug] = "false";
|
||||
|
||||
// await _jobRunner.RunAsync(_message, _tokenSource.Token);
|
||||
|
||||
// _diagnosticLogManager.Verify(x =>
|
||||
// x.UploadDiagnosticLogsAsync(
|
||||
// It.IsAny<IExecutionContext>(),
|
||||
// It.IsAny<Pipelines.AgentJobRequestMessage>(),
|
||||
// It.IsAny<DateTime>()),
|
||||
// Times.Never);
|
||||
// }
|
||||
// }
|
||||
|
||||
// [Fact]
|
||||
// [Trait("Level", "L0")]
|
||||
// [Trait("Category", "Worker")]
|
||||
// public async Task DontUploadDiagnosticLogIfEnvironmentVariableMissing()
|
||||
// {
|
||||
// using (TestHostContext hc = CreateTestContext())
|
||||
// {
|
||||
// await _jobRunner.RunAsync(_message, _tokenSource.Token);
|
||||
|
||||
// _diagnosticLogManager.Verify(x =>
|
||||
// x.UploadDiagnosticLogsAsync(
|
||||
// It.IsAny<IExecutionContext>(),
|
||||
// It.IsAny<Pipelines.AgentJobRequestMessage>(),
|
||||
// It.IsAny<DateTime>()),
|
||||
// Times.Never);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user