Skip to content

Conversation

@Avery-Dunn
Copy link
Contributor

Final dependency changes in test classes, and cleanup of various unused methods/fields/imports/dependencies, to finish the work in #909

Except for pom.xml, the changes were made only in test classes. The actual behavior and coverage of those tests are the same as before, and the changes mainly affect classes that get test resources from the labs API plus a few small adjustments to use the new dependencies appropriately.

The PR makes the following changes:

  • Replace usage of json dependencies with azure-json, and replace usage of lombok code generation with actual implementations
    • CachePersistenceIT, Config, App, Lab, LabService, User, UserSecret, CacheFormatTests
  • Remove unused dependency imports from the Maven project definition
    • pom.xml
  • Remove unused code and make adjustments to use new helper methods
    • All the other files not mentioned above, shouldn't need a deep review

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner May 8, 2025 19:52
Copy link

@billwert billwert left a comment

Choose a reason for hiding this comment

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

couple questions but looks good!


<build>
<sourceDirectory>${project.build.directory}/delombok</sourceDirectory>
<sourceDirectory>src/main/java</sourceDirectory>
Copy link

Choose a reason for hiding this comment

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

nit: leaving this is probably fine but I would expect that to be the default value.

.get();
}

public void acquireTokensInHomeAndGuestClouds(String homeCloud) throws MalformedURLException {
Copy link

Choose a reason for hiding this comment

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

Surprised to just see a whole test getting removed - what's up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It wasn't a whole test, it was a helper for some tests (like the similarly named "acquireTokenInteractive" and "acquireTokenInteractive_instanceAware")

However, it it seems like other changes and refactoring over the years got rid of all usages of it and it must've been missed by whatever got rid of the last reference.

@Avery-Dunn Avery-Dunn merged commit 295f466 into avdunn/nimbus-removal May 12, 2025
3 checks passed
@Avery-Dunn Avery-Dunn deleted the avdunn/dependency-cleanup branch September 15, 2025 14:27
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.

4 participants