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:
George Pollard
2022-06-23 13:06:40 +12:00
committed by GitHub
parent 4cb7bba2c9
commit 1eeefce85c
19 changed files with 431 additions and 102 deletions

View File

@ -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();