-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#280: agent and server compatibility for Additional Data PATCH operation #283
Merged
Merged
Changes from 4 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a0e7045
#280: agent and server compatibility in AD
lsulak 6f10138
#280: agent and server compatibility in AD
lsulak 550d557
Merge branch 'master' into feature/280-adopt-agent-to-server-in-v0-3-0
lsulak 978ea21
#280: removing unnecessary DTOs and refactoring
lsulak 74f3837
#280: unit test of DTO Base 64 encoder
lsulak ae9875d
#280: replacing HTTP backend, 'HttpURLConnectionBackend' doesn't supp…
lsulak 242452d
#280: adding E2E integration test using Balta
lsulak 88ec23d
#280: Adding e2e test - not part of CI yet!
lsulak 4bdeb99
#280: adding missing licence headers
lsulak d01aaea
#280: changing back - unit tests would be otherwise working with real…
lsulak 2534a6b
#280: changing back
lsulak a3519c9
#280: refactoring
lsulak b479c62
#280: ignoring e2e test for now
lsulak 204f1b1
#280: test file must be with this suffix
lsulak fd2c52f
#280: AgentWithServerIntegrationTests should run against local servic…
lsulak 10ff455
#280: ignoring e2e test for now
lsulak caae842
#280: ignoring e2e test for now - proper way
lsulak 068dc66
#280: adding exclusions to jacoco coverage ignore - these 2 dispatche…
lsulak c785a49
#280: adding exclusions to jacoco coverage ignore - envelope DTOs are…
lsulak 95cbe0a
#280: post-review improvements
lsulak 4ead4dc
#280: syndrome under control
lsulak 0cdc465
#280: actually using Atum HTTP Dispatcher config
lsulak 9b344b5
#280: post-review changes, refactoring simplification, removing old u…
lsulak 7d856d3
Merge remote-tracking branch 'origin/master' into feature/280-adopt-a…
lsulak 522ad56
#280: post-merge conflict resolutions
lsulak 2b20f17
#280: post-merge conflict resolutions
lsulak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
database/src/main/postgres/runs/V0.2.0.22__get_partitioning_additional_data.sql
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ package za.co.absa.atum.database.runs | |
import za.co.absa.balta.DBTestSuite | ||
import za.co.absa.balta.classes.JsonBString | ||
|
||
class GetPartitioningAdditionalDataIntegrationTests extends DBTestSuite{ | ||
class GetPartitioningAdditionalDataIntegrationTests extends DBTestSuite { | ||
|
||
private val fncGetPartitioningAdditionalData = "runs.get_partitioning_additional_data" | ||
|
||
|
@@ -88,19 +88,21 @@ class GetPartitioningAdditionalDataIntegrationTests extends DBTestSuite{ | |
) | ||
|
||
function(fncGetPartitioningAdditionalData) | ||
.setParam("i_partitioning", partitioning1) | ||
.setParam("i_partitioning_id", fkPartitioning1) | ||
.execute { queryResult => | ||
val results = queryResult.next() | ||
assert(results.getInt("status").contains(11)) | ||
assert(results.getString("status_text").contains("OK")) | ||
assert(results.getString("ad_name").contains("ad_1")) | ||
assert(results.getString("ad_value").contains("This is the additional data for Joseph")) | ||
assert(results.getString("ad_author").contains("Joseph")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Really need to switch to Balta 0.3, so much tidier 😉 |
||
|
||
val results2 = queryResult.next() | ||
assert(results2.getInt("status").contains(11)) | ||
assert(results2.getString("status_text").contains("OK")) | ||
assert(results2.getString("ad_name").contains("ad_2")) | ||
assert(results2.getString("ad_value").contains("This is the additional data for Joseph")) | ||
assert(results2.getString("ad_author").contains("Joseph")) | ||
|
||
assert(!queryResult.hasNext) | ||
} | ||
|
@@ -124,8 +126,11 @@ class GetPartitioningAdditionalDataIntegrationTests extends DBTestSuite{ | |
val fkPartitioning: Long = table("runs.partitionings").fieldValue("partitioning", partitioning2, "id_partitioning").get.get | ||
|
||
function(fncGetPartitioningAdditionalData) | ||
.setParam("i_partitioning", partitioning2) | ||
.setParam("i_partitioning_id", fkPartitioning) | ||
.execute { queryResult => | ||
val result = queryResult.next() | ||
assert(result.getInt("status").contains(16)) | ||
assert(result.getString("status_text").contains("No additional data found")) | ||
assert(!queryResult.hasNext) | ||
} | ||
|
||
|
@@ -135,20 +140,8 @@ class GetPartitioningAdditionalDataIntegrationTests extends DBTestSuite{ | |
} | ||
|
||
test("Get partitioning additional data should return error status code on non existing partitioning") { | ||
val partitioning = JsonBString( | ||
""" | ||
|{ | ||
| "version": 1, | ||
| "keys": ["key1"], | ||
| "keysToValuesMap": { | ||
| "key1": "value1" | ||
| } | ||
|} | ||
|""".stripMargin | ||
) | ||
|
||
function(fncGetPartitioningAdditionalData) | ||
.setParam("i_partitioning", partitioning) | ||
.setParam("i_partitioning_id", 0L) | ||
.execute { queryResult => | ||
val results = queryResult.next() | ||
assert(results.getInt("status").contains(41)) | ||
|
153 changes: 0 additions & 153 deletions
153
...scala/za/co/absa/atum/database/runs/GetPartitioningAdditionalDataV2IntegrationTests.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know, that you don't have to name the params, you can put them there positionally? Especially in one param functions, it's easier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I know, but I find it nicer - more readable if it's named, especially if there are more functions; but for 1-2 params I think you are right, can be ommited