-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
95a657a
commit c6b0ba9
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
edge-agent/test/Microsoft.Azure.Devices.Edge.Agent.Docker.Test/DockerRuntimeConfigTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
namespace Microsoft.Azure.Devices.Edge.Agent.Docker.Test | ||
{ | ||
using System.Collections.Generic; | ||
using Microsoft.Azure.Devices.Edge.Util.Test.Common; | ||
using Xunit; | ||
|
||
[Unit] | ||
public class DockerRuntimeConfigTest | ||
{ | ||
[Fact] | ||
public void EqualityTest() | ||
{ | ||
var drc1 = new DockerRuntimeConfig( | ||
"1.0", | ||
new Dictionary<string, RegistryCredentials> | ||
{ | ||
["r1"] = new RegistryCredentials("foo.azurecr.io", "foo", "foo") | ||
}); | ||
|
||
var drc2 = new DockerRuntimeConfig( | ||
"1.0", | ||
new Dictionary<string, RegistryCredentials> | ||
{ | ||
["r1"] = new RegistryCredentials("foo.azurecr.io", "foo", "foo") | ||
}); | ||
|
||
Assert.Equal(drc1, drc2); | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
edge-agent/test/Microsoft.Azure.Devices.Edge.Agent.Docker.Test/DockerRuntimeInfoTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
namespace Microsoft.Azure.Devices.Edge.Agent.Docker.Test | ||
{ | ||
using System.Collections.Generic; | ||
using Microsoft.Azure.Devices.Edge.Util.Test.Common; | ||
using Xunit; | ||
|
||
[Unit] | ||
public class DockerRuntimeInfoTest | ||
{ | ||
[Fact] | ||
public void EqualityTest() | ||
{ | ||
var dri1 = new DockerRuntimeInfo( | ||
"docker", | ||
new DockerRuntimeConfig( | ||
"1.0", | ||
new Dictionary<string, RegistryCredentials> | ||
{ | ||
["r1"] = new RegistryCredentials("foo.azurecr.io", "foo", "foo") | ||
})); | ||
|
||
var dri2 = new DockerRuntimeInfo( | ||
"docker", | ||
new DockerRuntimeConfig( | ||
"1.0", | ||
new Dictionary<string, RegistryCredentials> | ||
{ | ||
["r1"] = new RegistryCredentials("foo.azurecr.io", "foo", "foo") | ||
})); | ||
|
||
Assert.Equal(dri1, dri2); | ||
} | ||
} | ||
} |