Skip to content

Commit 44e7ddd

Browse files
committed
fix idents
1 parent a482a73 commit 44e7ddd

File tree

55 files changed

+7279
-7279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7279
-7279
lines changed

src/Testcontainers.BigQuery/BigQueryBuilder.cs

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,96 +4,96 @@ namespace Testcontainers.BigQuery;
44
[PublicAPI]
55
public sealed class BigQueryBuilder : ContainerBuilder<BigQueryBuilder, BigQueryContainer, BigQueryConfiguration>
66
{
7-
public const string BigQueryImage = "ghcr.io/goccy/bigquery-emulator:0.4";
7+
public const string BigQueryImage = "ghcr.io/goccy/bigquery-emulator:0.4";
88

9-
public const ushort BigQueryPort = 9050;
9+
public const ushort BigQueryPort = 9050;
1010

11-
public const string DefaultProjectId = "default";
11+
public const string DefaultProjectId = "default";
1212

13-
/// <summary>
14-
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
15-
/// </summary>
16-
[Obsolete("Use the constructor with the image argument instead: https://github.com/testcontainers/testcontainers-dotnet/issues/1540.")]
17-
public BigQueryBuilder()
18-
: this(BigQueryImage)
19-
{
20-
}
13+
/// <summary>
14+
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
15+
/// </summary>
16+
[Obsolete("Use the constructor with the image argument instead: https://github.com/testcontainers/testcontainers-dotnet/issues/1540.")]
17+
public BigQueryBuilder()
18+
: this(BigQueryImage)
19+
{
20+
}
2121

22-
/// <summary>
23-
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
24-
/// </summary>
25-
/// <param name="image">Docker image tag. Available tags can be found here: <see href="https://github.com/goccy/bigquery-emulator/pkgs/container/bigquery-emulator">https://github.com/goccy/bigquery-emulator/pkgs/container/bigquery-emulator</see>.</param>
26-
public BigQueryBuilder(string image)
27-
: this(new BigQueryConfiguration())
28-
{
29-
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
30-
}
22+
/// <summary>
23+
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
24+
/// </summary>
25+
/// <param name="image">Docker image tag. Available tags can be found here: <see href="https://github.com/goccy/bigquery-emulator/pkgs/container/bigquery-emulator">https://github.com/goccy/bigquery-emulator/pkgs/container/bigquery-emulator</see>.</param>
26+
public BigQueryBuilder(string image)
27+
: this(new BigQueryConfiguration())
28+
{
29+
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
30+
}
3131

32-
/// <summary>
33-
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
34-
/// </summary>
35-
/// <param name="image">Image instance to use in configuration.</param>
36-
public BigQueryBuilder(IImage image)
37-
: this(new BigQueryConfiguration())
38-
{
39-
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
40-
}
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
34+
/// </summary>
35+
/// <param name="image">Image instance to use in configuration.</param>
36+
public BigQueryBuilder(IImage image)
37+
: this(new BigQueryConfiguration())
38+
{
39+
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
40+
}
4141

42-
/// <summary>
43-
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
44-
/// </summary>
45-
/// <param name="resourceConfiguration">The Docker resource configuration.</param>
46-
private BigQueryBuilder(BigQueryConfiguration resourceConfiguration)
47-
: base(resourceConfiguration)
48-
{
49-
DockerResourceConfiguration = resourceConfiguration;
50-
}
42+
/// <summary>
43+
/// Initializes a new instance of the <see cref="BigQueryBuilder" /> class.
44+
/// </summary>
45+
/// <param name="resourceConfiguration">The Docker resource configuration.</param>
46+
private BigQueryBuilder(BigQueryConfiguration resourceConfiguration)
47+
: base(resourceConfiguration)
48+
{
49+
DockerResourceConfiguration = resourceConfiguration;
50+
}
5151

52-
/// <inheritdoc />
53-
protected override BigQueryConfiguration DockerResourceConfiguration { get; }
52+
/// <inheritdoc />
53+
protected override BigQueryConfiguration DockerResourceConfiguration { get; }
5454

55-
/// <summary>
56-
///
57-
/// </summary>
58-
/// <param name="projectId"></param>
59-
/// <returns></returns>
60-
public BigQueryBuilder WithProject(string projectId)
61-
{
62-
return WithCommand("--project", projectId);
63-
}
55+
/// <summary>
56+
///
57+
/// </summary>
58+
/// <param name="projectId"></param>
59+
/// <returns></returns>
60+
public BigQueryBuilder WithProject(string projectId)
61+
{
62+
return WithCommand("--project", projectId);
63+
}
6464

65-
/// <inheritdoc />
66-
public override BigQueryContainer Build()
67-
{
68-
Validate();
69-
return new BigQueryContainer(DockerResourceConfiguration);
70-
}
65+
/// <inheritdoc />
66+
public override BigQueryContainer Build()
67+
{
68+
Validate();
69+
return new BigQueryContainer(DockerResourceConfiguration);
70+
}
7171

72-
/// <inheritdoc />
73-
protected override BigQueryBuilder Init()
74-
{
75-
return base.Init()
76-
.WithImage(BigQueryImage)
77-
.WithPortBinding(BigQueryPort, true)
78-
.WithProject(DefaultProjectId)
79-
.WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("(?s).*listening.*$"));
80-
}
72+
/// <inheritdoc />
73+
protected override BigQueryBuilder Init()
74+
{
75+
return base.Init()
76+
.WithImage(BigQueryImage)
77+
.WithPortBinding(BigQueryPort, true)
78+
.WithProject(DefaultProjectId)
79+
.WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("(?s).*listening.*$"));
80+
}
8181

82-
/// <inheritdoc />
83-
protected override BigQueryBuilder Clone(IResourceConfiguration<CreateContainerParameters> resourceConfiguration)
84-
{
85-
return Merge(DockerResourceConfiguration, new BigQueryConfiguration(resourceConfiguration));
86-
}
82+
/// <inheritdoc />
83+
protected override BigQueryBuilder Clone(IResourceConfiguration<CreateContainerParameters> resourceConfiguration)
84+
{
85+
return Merge(DockerResourceConfiguration, new BigQueryConfiguration(resourceConfiguration));
86+
}
8787

88-
/// <inheritdoc />
89-
protected override BigQueryBuilder Clone(IContainerConfiguration resourceConfiguration)
90-
{
91-
return Merge(DockerResourceConfiguration, new BigQueryConfiguration(resourceConfiguration));
92-
}
88+
/// <inheritdoc />
89+
protected override BigQueryBuilder Clone(IContainerConfiguration resourceConfiguration)
90+
{
91+
return Merge(DockerResourceConfiguration, new BigQueryConfiguration(resourceConfiguration));
92+
}
9393

94-
/// <inheritdoc />
95-
protected override BigQueryBuilder Merge(BigQueryConfiguration oldValue, BigQueryConfiguration newValue)
96-
{
97-
return new BigQueryBuilder(new BigQueryConfiguration(oldValue, newValue));
98-
}
94+
/// <inheritdoc />
95+
protected override BigQueryBuilder Merge(BigQueryConfiguration oldValue, BigQueryConfiguration newValue)
96+
{
97+
return new BigQueryBuilder(new BigQueryConfiguration(oldValue, newValue));
98+
}
9999
}

src/Testcontainers.Bigtable/BigtableBuilder.cs

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -4,85 +4,85 @@ namespace Testcontainers.Bigtable;
44
[PublicAPI]
55
public sealed class BigtableBuilder : ContainerBuilder<BigtableBuilder, BigtableContainer, BigtableConfiguration>
66
{
7-
public const string GoogleCloudCliImage = "gcr.io/google.com/cloudsdktool/google-cloud-cli:446.0.1-emulators";
7+
public const string GoogleCloudCliImage = "gcr.io/google.com/cloudsdktool/google-cloud-cli:446.0.1-emulators";
88

9-
public const ushort BigtablePort = 9000;
9+
public const ushort BigtablePort = 9000;
1010

11-
/// <summary>
12-
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
13-
/// </summary>
14-
[Obsolete("Use the constructor with the image argument instead: https://github.com/testcontainers/testcontainers-dotnet/issues/1540.")]
15-
public BigtableBuilder()
16-
: this(GoogleCloudCliImage)
17-
{
18-
}
11+
/// <summary>
12+
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
13+
/// </summary>
14+
[Obsolete("Use the constructor with the image argument instead: https://github.com/testcontainers/testcontainers-dotnet/issues/1540.")]
15+
public BigtableBuilder()
16+
: this(GoogleCloudCliImage)
17+
{
18+
}
1919

20-
/// <summary>
21-
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
22-
/// </summary>
23-
/// <param name="image">Docker image tag. Available tags can be found here: <see href="https://console.cloud.google.com/artifacts/docker/google.com:cloudsdktool/us/gcr.io/google-cloud-cli?pli=1">https://console.cloud.google.com/artifacts/docker/google.com:cloudsdktool/us/gcr.io/google-cloud-cli?pli=1</see>.</param>
24-
public BigtableBuilder(string image)
25-
: this(new BigtableConfiguration())
26-
{
27-
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
28-
}
20+
/// <summary>
21+
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
22+
/// </summary>
23+
/// <param name="image">Docker image tag. Available tags can be found here: <see href="https://console.cloud.google.com/artifacts/docker/google.com:cloudsdktool/us/gcr.io/google-cloud-cli?pli=1">https://console.cloud.google.com/artifacts/docker/google.com:cloudsdktool/us/gcr.io/google-cloud-cli?pli=1</see>.</param>
24+
public BigtableBuilder(string image)
25+
: this(new BigtableConfiguration())
26+
{
27+
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
28+
}
2929

30-
/// <summary>
31-
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
32-
/// </summary>
33-
/// <param name="image">Image instance to use in configuration.</param>
34-
public BigtableBuilder(IImage image)
35-
: this(new BigtableConfiguration())
36-
{
37-
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
38-
}
30+
/// <summary>
31+
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
32+
/// </summary>
33+
/// <param name="image">Image instance to use in configuration.</param>
34+
public BigtableBuilder(IImage image)
35+
: this(new BigtableConfiguration())
36+
{
37+
DockerResourceConfiguration = Init().WithImage(image).DockerResourceConfiguration;
38+
}
3939

40-
/// <summary>
41-
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
42-
/// </summary>
43-
/// <param name="resourceConfiguration">The Docker resource configuration.</param>
44-
private BigtableBuilder(BigtableConfiguration resourceConfiguration)
45-
: base(resourceConfiguration)
46-
{
47-
DockerResourceConfiguration = resourceConfiguration;
48-
}
40+
/// <summary>
41+
/// Initializes a new instance of the <see cref="BigtableBuilder" /> class.
42+
/// </summary>
43+
/// <param name="resourceConfiguration">The Docker resource configuration.</param>
44+
private BigtableBuilder(BigtableConfiguration resourceConfiguration)
45+
: base(resourceConfiguration)
46+
{
47+
DockerResourceConfiguration = resourceConfiguration;
48+
}
4949

50-
/// <inheritdoc />
51-
protected override BigtableConfiguration DockerResourceConfiguration { get; }
50+
/// <inheritdoc />
51+
protected override BigtableConfiguration DockerResourceConfiguration { get; }
5252

53-
/// <inheritdoc />
54-
public override BigtableContainer Build()
55-
{
56-
Validate();
57-
return new BigtableContainer(DockerResourceConfiguration);
58-
}
53+
/// <inheritdoc />
54+
public override BigtableContainer Build()
55+
{
56+
Validate();
57+
return new BigtableContainer(DockerResourceConfiguration);
58+
}
5959

60-
/// <inheritdoc />
61-
protected override BigtableBuilder Init()
62-
{
63-
return base.Init()
64-
.WithImage(GoogleCloudCliImage)
65-
.WithPortBinding(BigtablePort, true)
66-
.WithEntrypoint("gcloud")
67-
.WithCommand("beta", "emulators", "bigtable", "start", "--host-port", "0.0.0.0:" + BigtablePort)
68-
.WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("(?s).*running.*$"));
69-
}
60+
/// <inheritdoc />
61+
protected override BigtableBuilder Init()
62+
{
63+
return base.Init()
64+
.WithImage(GoogleCloudCliImage)
65+
.WithPortBinding(BigtablePort, true)
66+
.WithEntrypoint("gcloud")
67+
.WithCommand("beta", "emulators", "bigtable", "start", "--host-port", "0.0.0.0:" + BigtablePort)
68+
.WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("(?s).*running.*$"));
69+
}
7070

71-
/// <inheritdoc />
72-
protected override BigtableBuilder Clone(IResourceConfiguration<CreateContainerParameters> resourceConfiguration)
73-
{
74-
return Merge(DockerResourceConfiguration, new BigtableConfiguration(resourceConfiguration));
75-
}
71+
/// <inheritdoc />
72+
protected override BigtableBuilder Clone(IResourceConfiguration<CreateContainerParameters> resourceConfiguration)
73+
{
74+
return Merge(DockerResourceConfiguration, new BigtableConfiguration(resourceConfiguration));
75+
}
7676

77-
/// <inheritdoc />
78-
protected override BigtableBuilder Clone(IContainerConfiguration resourceConfiguration)
79-
{
80-
return Merge(DockerResourceConfiguration, new BigtableConfiguration(resourceConfiguration));
81-
}
77+
/// <inheritdoc />
78+
protected override BigtableBuilder Clone(IContainerConfiguration resourceConfiguration)
79+
{
80+
return Merge(DockerResourceConfiguration, new BigtableConfiguration(resourceConfiguration));
81+
}
8282

83-
/// <inheritdoc />
84-
protected override BigtableBuilder Merge(BigtableConfiguration oldValue, BigtableConfiguration newValue)
85-
{
86-
return new BigtableBuilder(new BigtableConfiguration(oldValue, newValue));
87-
}
83+
/// <inheritdoc />
84+
protected override BigtableBuilder Merge(BigtableConfiguration oldValue, BigtableConfiguration newValue)
85+
{
86+
return new BigtableBuilder(new BigtableConfiguration(oldValue, newValue));
87+
}
8888
}

0 commit comments

Comments
 (0)