Skip to content

Commit f63b042

Browse files
Copilotsamtrion
andcommitted
Add AWSSDK.EC2 package version to Directory.Packages.props
Co-authored-by: samtrion <[email protected]>
1 parent f548f87 commit f63b042

File tree

10 files changed

+14
-24
lines changed

10 files changed

+14
-24
lines changed

.editorconfig

100644100755
File mode changed.

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<ItemGroup>
1818
<PackageVersion Include="Apache.NMS.ActiveMQ" Version="2.1.1" />
1919
<PackageVersion Include="ArangoDBNetStandard" Version="3.1.0" />
20+
<PackageVersion Include="AWSSDK.EC2" Version="4.0.40.4" />
2021
<PackageVersion Include="AWSSDK.S3" Version="4.0.7.4" />
2122
<PackageVersion Include="AWSSDK.SimpleNotificationService" Version="4.0.1.3" />
2223
<PackageVersion Include="AWSSDK.SQS" Version="4.0.1.5" />

src/NetEvolve.HealthChecks.AWS.EC2/CreationMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ public enum CreationMode
99
/// Use basic authentication for client creation.
1010
/// </summary>
1111
BasicAuthentication = 0,
12-
}
12+
}

src/NetEvolve.HealthChecks.AWS.EC2/DependencyInjectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ params string[] tags
5959
}
6060

6161
private sealed partial class ElasticComputeCloudCheckMarker;
62-
}
62+
}

src/NetEvolve.HealthChecks.AWS.EC2/ElasticComputeCloudConfigure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ public ValidateOptionsResult Validate(string? name, ElasticComputeCloudOptions o
5252

5353
return ValidateOptionsResult.Success;
5454
}
55-
}
55+
}

src/NetEvolve.HealthChecks.AWS.EC2/ElasticComputeCloudHealthCheck.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ private static AmazonEC2Client CreateClient(ElasticComputeCloudOptions options)
5353
_ => new AmazonEC2Client(config),
5454
};
5555
}
56-
}
56+
}

src/NetEvolve.HealthChecks.AWS.EC2/ElasticComputeCloudOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ public sealed record ElasticComputeCloudOptions
4646
CreationMode.BasicAuthentication => new BasicAWSCredentials(AccessKey, SecretKey),
4747
_ => null,
4848
};
49-
}
49+
}

src/NetEvolve.HealthChecks.AWS.EC2/NetEvolve.HealthChecks.AWS.EC2.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<ItemGroup>
1212
<ProjectReference Include="..\NetEvolve.HealthChecks.Abstractions\NetEvolve.HealthChecks.Abstractions.csproj" />
1313
</ItemGroup>
14-
</Project>
14+
</Project>

tests/NetEvolve.HealthChecks.Tests.Integration/AWS.EC2/ElasticComputeCloudHealthCheckTests.cs

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -122,28 +122,17 @@ await RunAndVerify(
122122

123123
using (Assert.Multiple())
124124
{
125-
_ = await Assert
126-
.That(_response.Entries)
127-
.HasCount()
128-
.EqualTo(1);
125+
_ = await Assert.That(_response.Entries).HasCount().EqualTo(1);
129126

130127
var (name, healthReportEntry) = _response.Entries.Single();
131128

132129
_ = await Assert.That(name).IsEqualTo("TestContainerHealthy");
133130
_ = await Assert.That(healthReportEntry.Status).IsEqualTo(HealthStatus.Healthy);
134131

135-
_ = await Assert
136-
.That(healthReportEntry.Tags)
137-
.ContainsValue("aws");
138-
_ = await Assert
139-
.That(healthReportEntry.Tags)
140-
.ContainsValue("ec2");
141-
_ = await Assert
142-
.That(healthReportEntry.Tags)
143-
.ContainsValue("compute");
144-
_ = await Assert
145-
.That(healthReportEntry.Tags)
146-
.ContainsValue("custom");
132+
_ = await Assert.That(healthReportEntry.Tags).ContainsValue("aws");
133+
_ = await Assert.That(healthReportEntry.Tags).ContainsValue("ec2");
134+
_ = await Assert.That(healthReportEntry.Tags).ContainsValue("compute");
135+
_ = await Assert.That(healthReportEntry.Tags).ContainsValue("custom");
147136
}
148137
}
149-
}
138+
}

tests/NetEvolve.HealthChecks.Tests.Unit/AWS.EC2/ElasticComputeCloudHealthCheckTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ public async Task CheckHealthAsync_WhenOptionsAreNull_ShouldReturnUnhealthy()
6464
_ = await Assert.That(result.Description).IsEqualTo("Test: Missing configuration.");
6565
}
6666
}
67-
}
67+
}

0 commit comments

Comments
 (0)