mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Implement info
Function in C# (#2061)
Adds implementation of the `info` function. Added support for blobs in the function integration test stuff. Simplified usage of integration test classes by removing the account name parameter.
This commit is contained in:
@ -10,10 +10,12 @@ namespace Tests.Fakes;
|
||||
// TestContext provides a minimal IOnefuzzContext implementation to allow running
|
||||
// of functions as unit or integration tests.
|
||||
public sealed class TestContext : IOnefuzzContext {
|
||||
public TestContext(ILogTracer logTracer, IStorage storage, string tablePrefix, string accountId) {
|
||||
ServiceConfiguration = new TestServiceConfiguration(tablePrefix, accountId);
|
||||
public TestContext(ILogTracer logTracer, IStorage storage, ICreds creds, string storagePrefix) {
|
||||
ServiceConfiguration = new TestServiceConfiguration(storagePrefix);
|
||||
|
||||
Storage = storage;
|
||||
Creds = creds;
|
||||
Containers = new Containers(logTracer, Storage, Creds, ServiceConfiguration);
|
||||
|
||||
RequestHandling = new RequestHandling(logTracer);
|
||||
TaskOperations = new TaskOperations(logTracer, this);
|
||||
@ -44,6 +46,8 @@ public sealed class TestContext : IOnefuzzContext {
|
||||
public IServiceConfig ServiceConfiguration { get; }
|
||||
|
||||
public IStorage Storage { get; }
|
||||
public ICreds Creds { get; }
|
||||
public IContainers Containers { get; }
|
||||
|
||||
public IRequestHandling RequestHandling { get; }
|
||||
|
||||
@ -60,10 +64,6 @@ public sealed class TestContext : IOnefuzzContext {
|
||||
|
||||
public IConfigOperations ConfigOperations => throw new System.NotImplementedException();
|
||||
|
||||
public IContainers Containers => throw new System.NotImplementedException();
|
||||
|
||||
public ICreds Creds => throw new System.NotImplementedException();
|
||||
|
||||
public IDiskOperations DiskOperations => throw new System.NotImplementedException();
|
||||
|
||||
public IExtensions Extensions => throw new System.NotImplementedException();
|
||||
|
Reference in New Issue
Block a user