Skip to content

spline #1193 Admin: add --dry-run option#1194

Merged
wajda merged 5 commits into
developfrom
feature/spline-1193-dry-run
Apr 14, 2023
Merged

spline #1193 Admin: add --dry-run option#1194
wajda merged 5 commits into
developfrom
feature/spline-1193-dry-run

Conversation

@wajda
Copy link
Copy Markdown
Contributor

@wajda wajda commented Mar 22, 2023

fixes #1193

@wajda wajda requested a review from cerveada as a code owner March 22, 2023 15:25
Comment thread persistence/src/main/scala/za/co/absa/spline/persistence/DryRunnable.scala Outdated
dryRunModeCaptor.getValue should be(true)
output should include("Dry-run mode activated")
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some "integration" test validating that when dry run is set there is no interaction with the parts of the code that should not be called, could be also useful. Maybe in different filet though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it, but it has to be an integration test with a real ArangoDB. Unfortunately capturing this behavior with mocks is impossible. Due to the nature of the ArangoDB driver there is no one place where you can intercept all write operations, or isolate all write method calls. The guard conditions are spread almost freely over the Admin codebase.
I'll see what I can do.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added ArangoDb test container, fixtures and a couple of integration tests

@wajda wajda force-pushed the feature/spline-1193-dry-run branch from fe10eb8 to dac967e Compare April 14, 2023 00:25
@wajda wajda requested a review from cerveada April 14, 2023 09:02
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wajda wajda merged commit 4ab665b into develop Apr 14, 2023
@wajda wajda deleted the feature/spline-1193-dry-run branch April 14, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin: add --dry-run option

2 participants