public AppEncryptionParameterizedTestData() { configFixture = new ConfigFixture(); // We do not log metrics for the Parameterized tests but we still need to set a disabled/no-op metrics // instance for the tests to run successfully. This is done below. IMetricsRoot metrics = new MetricsBuilder() .Configuration.Configure(options => options.Enabled = false) .Build(); MetricsUtil.SetMetricsInstance(metrics); }
public DynamoDbGlobalTableTest(DynamoDBContainerFixture dynamoDbContainerFixture, ConfigFixture configFixture) { this.configFixture = configFixture; // Use AWS SDK to create client and initialize table AmazonDynamoDBConfig amazonDynamoDbConfig = new AmazonDynamoDBConfig { ServiceURL = dynamoDbContainerFixture.ServiceUrl, AuthenticationRegion = "us-west-2", }; tempDynamoDbClient = new AmazonDynamoDBClient(amazonDynamoDbConfig); CreateTableRequest request = new CreateTableRequest { TableName = DefaultTableName, AttributeDefinitions = new List <AttributeDefinition> { new AttributeDefinition(PartitionKey, ScalarAttributeType.S), new AttributeDefinition(SortKey, ScalarAttributeType.N), }, KeySchema = new List <KeySchemaElement> { new KeySchemaElement(PartitionKey, KeyType.HASH), new KeySchemaElement(SortKey, KeyType.RANGE), }, ProvisionedThroughput = new ProvisionedThroughput(1L, 1L), }; tempDynamoDbClient.CreateTableAsync(request).Wait(); // Use a builder without the suffix dynamoDbMetastoreImpl = DynamoDbMetastoreImpl.NewBuilder("us-west-2") .WithEndPointConfiguration(dynamoDbContainerFixture.ServiceUrl, "us-west-2") .Build(); // Connect to the same metastore but initialize it with a key suffix dynamoDbMetastoreImplWithKeySuffix = DynamoDbMetastoreImpl.NewBuilder("us-west-2") .WithEndPointConfiguration(dynamoDbContainerFixture.ServiceUrl, "us-west-2") .WithKeySuffix() .Build(); }
public VenueControllerTests(ConfigFixture fixture) : base(fixture) { }
public MultiFactoryThreadedTest(ConfigFixture configFixture) { this.configFixture = configFixture; }
public CrossPartitionDecryptTest(ConfigFixture configFixture) { this.configFixture = configFixture; }
public CourseControllerTests(ConfigFixture fixture) : base(fixture) { }
public MultiPartitionMultiThreadedTest(ConfigFixture configFixture) { appEncryptionSessionFactory = SessionFactoryGenerator.CreateDefaultAppEncryptionSessionFactory( configFixture.KeyManagementService, configFixture.MetastorePersistence); }
public SeminarControllerTests(ConfigFixture fixture) : base(fixture) { }
public DynamoDbGlobalTableTest(DynamoDBContainerFixture dynamoDbContainerFixture, ConfigFixture configFixture) { hostName = dynamoDbContainerFixture.HostName; this.configFixture = configFixture; // Use AWS SDK to create client and initialize table AmazonDynamoDBConfig amazonDynamoDbConfig = new AmazonDynamoDBConfig { ServiceURL = dynamoDbContainerFixture.ServiceUrl, AuthenticationRegion = "us-west-2", }; tempDynamoDbClient = new AmazonDynamoDBClient(amazonDynamoDbConfig); CreateTableRequest request = new CreateTableRequest { TableName = DefaultTableName, AttributeDefinitions = new List <AttributeDefinition> { new AttributeDefinition(PartitionKey, ScalarAttributeType.S), new AttributeDefinition(SortKey, ScalarAttributeType.N), }, KeySchema = new List <KeySchemaElement> { new KeySchemaElement(PartitionKey, KeyType.HASH), new KeySchemaElement(SortKey, KeyType.RANGE), }, ProvisionedThroughput = new ProvisionedThroughput(1L, 1L), }; tempDynamoDbClient.CreateTableAsync(request).Wait(); }
public SubjectControllerTests(ConfigFixture fixture) : base(fixture) { }
public ServiceFixture() { configFixture = new ConfigFixture(); }
public DayControllerTests(ConfigFixture fixture) : base(fixture) { }
public MultiPartitionMultiThreadedTest(ConfigFixture configFixture) { sessionFactory = SessionFactoryGenerator.CreateDefaultSessionFactory( configFixture.KeyManagementService, configFixture.Metastore); }
public SecurityCenterTests(ConfigFixture fixture) { _fixture = fixture; }