Ejemplo n.º 1
0
        public EdgeHubTest(EdgeHubFixture edgeHubFixture)
        {
            this.edgeHubFixture = edgeHubFixture;

            if (protocolHeadFixtureInstance == null)
            {
                lock (FixtureLock)
                {
                    if (protocolHeadFixtureInstance == null)
                    {
                        protocolHeadFixtureInstance = this.edgeHubFixture.GetFixture();
                    }
                }
            }
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public StressTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
Ejemplo n.º 4
0
 public TwinDiffE2ETest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
Ejemplo n.º 5
0
 public Cloud2DeviceTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
Ejemplo n.º 6
0
 public TelemetryTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
Ejemplo n.º 7
0
 public EdgeHubConnectionTest(EdgeHubFixture edgeHubFixture)
     : base(edgeHubFixture)
 {
 }
Ejemplo n.º 8
0
 public EdgeToDeviceMethodTest(EdgeHubFixture edgeHubFixture, ITestOutputHelper testOutputHelper)
     : base(new EdgeHubTest(edgeHubFixture), testOutputHelper)
 {
 }