Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 5e1a1b7

Browse files
committed
Update to 0.12.4
1 parent 371719d commit 5e1a1b7

4 files changed

Lines changed: 14 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM datacatering/data-caterer:0.12.3
1+
FROM datacatering/data-caterer:0.12.4
22

33
COPY --chown=app:app build/libs/data-caterer-example-0.1.0.jar /opt/app/job.jar

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ version=0.1.0
88

99
scalaVersion=2.12
1010
scalaSpecificVersion=2.12.19
11-
dataCatererVersion=0.12.3
11+
dataCatererVersion=0.12.4
1212
sparkMajorVersion=3.5

helm/data-caterer/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image:
88
repository: "datacatering/data-caterer"
99
pullPolicy: "IfNotPresent"
1010
# Overrides the image tag whose default is the chart appVersion.
11-
tag: "0.12.3"
11+
tag: "0.12.4"
1212

1313
imagePullSecrets: []
1414
nameOverride: ""

src/main/scala/io/github/datacatering/plan/AdvancedHttpPlanRun.scala

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.github.datacatering.plan
22

33
import io.github.datacatering.datacaterer.api.PlanRun
4-
import io.github.datacatering.datacaterer.api.model.Constants.ROWS_PER_SECOND
4+
import io.github.datacatering.datacaterer.api.model.Constants.{ROWS_PER_SECOND, VALIDATION_IDENTIFIER}
55

66
class AdvancedHttpPlanRun extends PlanRun {
77

@@ -10,6 +10,15 @@ class AdvancedHttpPlanRun extends PlanRun {
1010
.schema(field.name("bodyContent").schema(field.name("id").regex("ID[0-9]{8}")))
1111
.count(count.records(2))
1212

13+
val httpGetTask = http("get_http", options = Map(VALIDATION_IDENTIFIER -> "GET/pets/{id}"))
14+
.validations(
15+
validation.col("request.method").isEqual("GET"),
16+
validation.col("request.method").isEqualCol("response.statusText"),
17+
validation.col("response.statusCode").isEqual(200),
18+
validation.col("response.headers.Content-Length").greaterThan(0),
19+
validation.col("response.headers.Content-Type").isEqual("application/json"),
20+
)
21+
1322
val myPlan = plan.addForeignKeyRelationship(
1423
foreignField("my_http", "POST/pets", "bodyContent.id"),
1524
foreignField("my_http", "DELETE/pets/{id}", "pathParamid"),
@@ -19,5 +28,5 @@ class AdvancedHttpPlanRun extends PlanRun {
1928
val conf = configuration.enableGeneratePlanAndTasks(true)
2029
.generatedReportsFolderPath("/opt/app/data/report")
2130

22-
execute(myPlan, conf, httpTask)
31+
execute(myPlan, conf, httpTask, httpGetTask)
2332
}

0 commit comments

Comments
 (0)