示例#1
0
        public EdgeHubTest(EdgeHubFixture edgeHubFixture)
        {
            this.edgeHubFixture = edgeHubFixture;

            if (protocolHeadFixtureInstance == null)
            {
                lock (FixtureLock)
                {
                    if (protocolHeadFixtureInstance == null)
                    {
                        protocolHeadFixtureInstance = this.edgeHubFixture.GetFixture();
                    }
                }
            }
        }
示例#2
0
        public BackupAndRestoreTest(EdgeHubFixture edgeHubFixture, ITestOutputHelper testOutputHelper)
        {
            this.edgeHubFixture = edgeHubFixture;
            string tempFolder = Path.GetTempPath();

            this.backupFolder = Path.Combine(tempFolder, $"edgeTestBackup{Guid.NewGuid()}");
            if (Directory.Exists(this.backupFolder))
            {
                Directory.Delete(this.backupFolder);
            }

            Directory.CreateDirectory(this.backupFolder);

            ConfigHelper.TestConfig["UsePersistentStorage"]             = "false";
            ConfigHelper.TestConfig["BackupFolder"]                     = this.backupFolder;
            ConfigHelper.TestConfig["EnableNonPersistentStorageBackup"] = "true";
            this.logger = new TestConsoleLogger(testOutputHelper);
        }
示例#3
0
 public StressTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
示例#4
0
 public TwinDiffE2ETest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
示例#5
0
 public Cloud2DeviceTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
示例#6
0
 public TelemetryTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
示例#7
0
 public EdgeHubConnectionTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
 public EdgeToDeviceMethodTest(EdgeHubFixture edgeHubFixture, ITestOutputHelper testOutputHelper)
     : base(new EdgeHubTest(edgeHubFixture), testOutputHelper)
 {
 }