-
Notifications
You must be signed in to change notification settings - Fork 90
Migrate Cassandra configuration to Spring Boot 3.0 in properties format #491
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
Migrate Cassandra configuration to Spring Boot 3.0 in properties format #491
Conversation
12db6c9
to
b0aea7a
Compare
thank you for this contribution 🚀 |
Nice, thank you 👍 Could you replace the - org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.data.cassandra
newPropertyKey: spring.cassandra which will do the same as the |
Forgive me, I wanted to be nice and used the GitHub UI to resolve a merge conflict but broke the integration test leaving a |
@fabapp2 Tried with the
I tried as above but test is failing and it does not remove the data property. Please let me know if I am missing something. |
Hm, I share your observation. Update: public class ChangeKeyTest {
@Test
void test_renameMe() {
String properties =
"spring.data.cassandra=value";
List<Properties.File> propertiesFiles = new PropertiesParser().parse(properties);
RecipeRun run = new ChangePropertyKey("spring.data.cassandra", "spring.cassandra", null, null).run(
propertiesFiles);
assertThat(run.getResults().get(0).getAfter().printAll()).isEqualTo("spring.cassandra=value");
}
} "Noticed, this works fine if we provide the full property name." --> missed this sentence... wait Update2: then the test fails. Will get back to you/this when I'm back from lunch... |
you know what... let's keep your visitor and get this into main? |
Sure, changed the PR status from Draft to Open. If no other changes required on this PR, feel free to merge it. |
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.
Thank you for your contribution @kuldeepsidhu88 🚀
bca806a
to
a9a9cab
Compare
Migrate Cassandra configuration to Spring Boot 3.0 in properties format
Fixes #442