Skip to content

Commit dd8eb26

Browse files
authored
agent-server tests (#301)
agent server compatibility tests
1 parent 1b3a032 commit dd8eb26

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/test_filenames_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
id: scan-test-files
3434
uses: AbsaOSS/[email protected]
3535
with:
36-
name-patterns: '*UnitTests.*,*IntegrationTests.*'
36+
name-patterns: '*UnitTests.*,*IntegrationTests.*,*CompatibilityTests.*'
3737
paths: '**/src/test/scala/**'
3838
report-format: 'console'
3939
excludes: |

.sbtrc

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ alias testDB=; project database; testOnly *
3030

3131
# Run all tests
3232
alias testAll=; testOnly *
33+
34+
# Run agent-server compatibility tests
35+
alias testCompatibility=; testOnly *CompatibilityTests

agent/src/test/scala/za/co/absa/atum/agent/AgentWithServerIntegrationTests.scala agent/src/test/scala/za/co/absa/atum/agent/AgentServerCompatibilityTests.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import za.co.absa.atum.agent.dispatcher.HttpDispatcher
2626

2727
import scala.collection.immutable.ListMap
2828

29-
class AgentWithServerIntegrationTests extends DBTestSuite {
29+
class AgentServerCompatibilityTests extends DBTestSuite {
3030

3131
private val testDataForRDD = Seq(
3232
Row("A", 8.0),
@@ -40,7 +40,7 @@ class AgentWithServerIntegrationTests extends DBTestSuite {
4040
.add(StructField("columnForSum", DoubleType))
4141

4242
// Need to add service & pg run in CI
43-
ignore("Agent should be compatible with server") {
43+
test("Agent should be compatible with server") {
4444

4545
val expectedMeasurement = JsonBString(
4646
"""{"mainValue": {"value": "4", "valueType": "Long"}, "supportValues": {}}""".stripMargin

0 commit comments

Comments
 (0)