From f0ac0df921953490978664b3b916bafdf5ec8e03 Mon Sep 17 00:00:00 2001 From: Jason McIntosh Date: Tue, 19 Nov 2024 17:24:36 -0600 Subject: [PATCH] chore(upgrades): Add a simple constructor test --- .../swabbie/aws/exclusions/AmazonTagExclusionPolicyTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swabbie-aws/src/test/java/com/netflix/spinnaker/swabbie/aws/exclusions/AmazonTagExclusionPolicyTest.kt b/swabbie-aws/src/test/java/com/netflix/spinnaker/swabbie/aws/exclusions/AmazonTagExclusionPolicyTest.kt index 210d7849..afd89d72 100644 --- a/swabbie-aws/src/test/java/com/netflix/spinnaker/swabbie/aws/exclusions/AmazonTagExclusionPolicyTest.kt +++ b/swabbie-aws/src/test/java/com/netflix/spinnaker/swabbie/aws/exclusions/AmazonTagExclusionPolicyTest.kt @@ -131,7 +131,7 @@ object AmazonTagExclusionPolicyTest { @Test fun `should handle high precision date times`() { val now = LocalDateTime.ofInstant(Instant.from(DateTimeFormatter.ISO_INSTANT.parse("2024-11-15T23:42:18.592945345Z")), ZoneId.of("America/Chicago")) - AwsTestResource( + val resource = AwsTestResource( id = "1", creationDate = now.toString() ).withDetail( @@ -140,6 +140,7 @@ object AmazonTagExclusionPolicyTest { mapOf("expiration_time" to "10d") ) ) + resource.createTs shouldMatch equalTo(now.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()) } }