Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-super committed Nov 18, 2024
1 parent 40f8d44 commit 0067b56
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ void uploadExternalSourceType() throws IOException {
.add("version", Json.createObjectBuilder()
.add("type", "number")
)
.add("wrkcat", Json.createObjectBuilder()
.add("operator", Json.createObjectBuilder()
.add("type", "string")
)
)
.add("required", Json.createArrayBuilder()
.add("version")
.add("wrkcat")
.add("operator")
)
.build();

Expand Down Expand Up @@ -136,8 +136,8 @@ void correctSourceAndEventAttributes() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
.add("wrkcat", "1A1")
.add("version", 1)
.add("operator", "alpha")
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down Expand Up @@ -172,8 +172,8 @@ void sourceMissingAttribute() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
// missing: wrkcat
.add("version", 1)
// missing: operator
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down Expand Up @@ -208,8 +208,8 @@ void sourceExtraAttribute() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
.add("wrkcat", "1A1")
.add("version", 1)
.add("operator", "alpha")
.add("extra", "attribute") // extra
)
.add("derivation_group_name", "TestDerivationGroup")
Expand Down Expand Up @@ -246,7 +246,7 @@ void sourceWrongTypeAttribute() throws IOException {
final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", "string") // expects int
.add("wrkcat", "1A1")
.add("operator", "alpha")
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down Expand Up @@ -281,8 +281,8 @@ void eventMissingAttribute() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
.add("wrkcat", "1A1")
.add("version", 1)
.add("operator", "alpha")
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down Expand Up @@ -319,8 +319,8 @@ void eventExtraAttribute() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
.add("wrkcat", "1A1")
.add("version", 1)
.add("operator", "alpha")
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down Expand Up @@ -356,8 +356,8 @@ void eventWrongTypeAttribute() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
.add("wrkcat", "1A1")
.add("version", 1)
.add("operator", "alpha")
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down Expand Up @@ -393,8 +393,8 @@ void wrongEventTypeForSource() throws IOException {

final var externalSource = Json.createObjectBuilder()
.add("attributes", Json.createObjectBuilder()
.add("version", 79)
.add("wrkcat", "1A1")
.add("version", 1)
.add("operator", "alpha")
)
.add("derivation_group_name", "TestDerivationGroup")
.add("end_time", "2024-01-28T00:00:00+00:00")
Expand Down

0 comments on commit 0067b56

Please sign in to comment.