1
1
namespace DotNet . Testcontainers . Tests . Unit
2
2
{
3
3
using System ;
4
- using System . Collections . Generic ;
5
4
using DotNet . Testcontainers . Builders ;
6
5
using DotNet . Testcontainers . Configurations ;
7
6
using DotNet . Testcontainers . Containers ;
@@ -14,20 +13,20 @@ public static class DockerImageNameSubstitutionTest
14
13
[ Collection ( nameof ( DockerImageNameSubstitutionTest ) ) ]
15
14
public sealed class HubImageNamePrefixIsSet : IDisposable
16
15
{
17
- public static IEnumerable < object [ ] > Substitutions { get ; }
18
- = new [ ]
16
+ public static TheoryData < string , string , string > Substitutions { get ; }
17
+ = new TheoryData < string , string , string >
19
18
{
20
- new [ ] { "my.proxy.com" , "bar" , "my.proxy.com/bar:latest" } ,
21
- new [ ] { "my.proxy.com" , "bar:latest" , "my.proxy.com/bar:latest" } ,
22
- new [ ] { "my.proxy.com" , "bar:1.0.0" , "my.proxy.com/bar:1.0.0" } ,
23
- new [ ] { "my.proxy.com/my-path" , "bar:1.0.0" , "my.proxy.com/my-path/bar:1.0.0" } ,
24
- new [ ] { "my.proxy.com:443" , "bar:1.0.0" , "my.proxy.com:443/bar:1.0.0" } ,
25
- new [ ] { "my.proxy.com" , "foo/bar:1.0.0" , "my.proxy.com/foo/bar:1.0.0" } ,
26
- new [ ] { "my.proxy.com/my-path" , "foo/bar:1.0.0" , "my.proxy.com/my-path/foo/bar:1.0.0" } ,
27
- new [ ] { "my.proxy.com:443" , "foo/bar:1.0.0" , "my.proxy.com:443/foo/bar:1.0.0" } ,
28
- new [ ] { "my.proxy.com:443/my-path" , "foo/bar:1.0.0" , "my.proxy.com:443/my-path/foo/bar:1.0.0" } ,
29
- new [ ] { "my.proxy.com" , "myregistry.azurecr.io/foo/bar:1.0.0" , "myregistry.azurecr.io/foo/bar:1.0.0" } ,
30
- new [ ] { "my.proxy.com" , "myregistry.azurecr.io:443/foo/bar:1.0.0" , "myregistry.azurecr.io:443/foo/bar:1.0.0" } ,
19
+ { "my.proxy.com" , "bar" , "my.proxy.com/bar:latest" } ,
20
+ { "my.proxy.com" , "bar:latest" , "my.proxy.com/bar:latest" } ,
21
+ { "my.proxy.com" , "bar:1.0.0" , "my.proxy.com/bar:1.0.0" } ,
22
+ { "my.proxy.com/my-path" , "bar:1.0.0" , "my.proxy.com/my-path/bar:1.0.0" } ,
23
+ { "my.proxy.com:443" , "bar:1.0.0" , "my.proxy.com:443/bar:1.0.0" } ,
24
+ { "my.proxy.com" , "foo/bar:1.0.0" , "my.proxy.com/foo/bar:1.0.0" } ,
25
+ { "my.proxy.com/my-path" , "foo/bar:1.0.0" , "my.proxy.com/my-path/foo/bar:1.0.0" } ,
26
+ { "my.proxy.com:443" , "foo/bar:1.0.0" , "my.proxy.com:443/foo/bar:1.0.0" } ,
27
+ { "my.proxy.com:443/my-path" , "foo/bar:1.0.0" , "my.proxy.com:443/my-path/foo/bar:1.0.0" } ,
28
+ { "my.proxy.com" , "myregistry.azurecr.io/foo/bar:1.0.0" , "myregistry.azurecr.io/foo/bar:1.0.0" } ,
29
+ { "my.proxy.com" , "myregistry.azurecr.io:443/foo/bar:1.0.0" , "myregistry.azurecr.io:443/foo/bar:1.0.0" } ,
31
30
} ;
32
31
33
32
[ Theory ]
0 commit comments