Skip to content

Commit

Permalink
remove unnecessary default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ranim-n committed Jan 10, 2025
1 parent fce02d3 commit fc7966c
Showing 1 changed file with 21 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand All @@ -226,8 +225,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timerel = Timerel.AFTER,
timeAt = now.minusHours(1),
timeproperty = AttributeInstance.TemporalProperty.CREATED_AT
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand All @@ -252,8 +250,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timerel = Timerel.AFTER,
timeAt = now.minusHours(1),
timeproperty = AttributeInstance.TemporalProperty.CREATED_AT
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand All @@ -278,8 +275,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timerel = Timerel.AFTER,
timeAt = now.minusHours(1),
timeproperty = AttributeInstance.TemporalProperty.MODIFIED_AT
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand All @@ -298,8 +294,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand All @@ -315,7 +310,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
}

attributeInstanceService.search(
gimmeTemporalEntitiesQuery(buildDefaultTestTemporalQuery(), TemporalRepresentation.NORMALIZED),
gimmeTemporalEntitiesQuery(buildDefaultTestTemporalQuery()),
incomingAttribute
)
.shouldSucceedWith {
Expand Down Expand Up @@ -415,8 +410,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timerel = Timerel.AFTER,
timeAt = ZonedDateTime.parse("2022-07-01T00:00:00Z"),
instanceLimit = 5
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
Expand All @@ -442,8 +436,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timeAt = ZonedDateTime.parse("2022-07-01T00:00:00Z"),
endTimeAt = ZonedDateTime.parse("2022-07-05T00:00:00Z"),
instanceLimit = 5
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
Expand All @@ -470,8 +463,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timeAt = now.minusHours(1),
instanceLimit = 5,
lastN = 5
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand Down Expand Up @@ -533,8 +525,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith { results ->
Expand All @@ -556,8 +547,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(
temporalEntitiesQuery,
Expand All @@ -578,8 +568,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.plusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith {
Expand Down Expand Up @@ -820,8 +809,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = ZonedDateTime.parse("1970-01-01T00:00:00Z")
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.modifyAttributeInstance(
Expand Down Expand Up @@ -859,8 +847,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = ZonedDateTime.parse("1970-01-01T00:00:00Z")
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.modifyAttributeInstance(
Expand Down Expand Up @@ -899,8 +886,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = ZonedDateTime.parse("1970-01-01T00:00:00Z")
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.modifyAttributeInstance(
Expand Down Expand Up @@ -944,8 +930,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = ZonedDateTime.parse("1970-01-01T00:00:00Z")
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.modifyAttributeInstance(
Expand Down Expand Up @@ -984,7 +969,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
).shouldSucceed()

attributeInstanceService.search(
gimmeTemporalEntitiesQuery(buildDefaultTestTemporalQuery(), TemporalRepresentation.NORMALIZED),
gimmeTemporalEntitiesQuery(buildDefaultTestTemporalQuery()),
incomingAttribute
)
.shouldSucceedWith {
Expand Down Expand Up @@ -1058,8 +1043,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, incomingAttribute)
.shouldSucceedWith { assertThat(it).isEmpty() }
Expand All @@ -1069,8 +1053,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
timerel = Timerel.AFTER,
timeAt = now.minusHours(1),
timeproperty = AttributeInstance.TemporalProperty.CREATED_AT
),
TemporalRepresentation.NORMALIZED
)
)

attributeInstanceService.search(temporalEntitiesAuditQuery, incomingAttribute)
Expand All @@ -1096,8 +1079,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, outgoingAttribute)
.shouldSucceedWith { assertThat(it).hasSize(5) }
Expand All @@ -1124,8 +1106,7 @@ class AttributeInstanceServiceTests : WithTimescaleContainer, WithKafkaContainer
buildDefaultTestTemporalQuery(
timerel = Timerel.AFTER,
timeAt = now.minusHours(1)
),
TemporalRepresentation.NORMALIZED
)
)
attributeInstanceService.search(temporalEntitiesQuery, outgoingAttribute)
.shouldSucceedWith { assertThat(it).hasSize(5) }
Expand Down

0 comments on commit fc7966c

Please sign in to comment.