Skip to content
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

Restore instance tests to #5172 #5294

Conversation

andrewjstone
Copy link
Contributor

Restore instance tests added in #4691 so that they work with the latest updates in #5172. The tests now use the new StorageManagerTestHarness from #5172 instead of the since removed FakeStorageManager. Additionally, the dns server code from sled-agent/src/fakes/nexus is used rather than the reimplementation in #4691. This shrinks the amount of code added with these tests.

Restore instance tests added in #4691 so that they work with the latest
updates in #5172. The tests now use the new `StorageManagerTestHarness`
from #5172 instead of the since removed `FakeStorageManager`.
Additionally, the dns server code from `sled-agent/src/fakes/nexus` is
used rather than the reimplementation in #4691. This shrinks the amount
of code added with these tests.
@andrewjstone andrewjstone requested a review from smklein March 20, 2024 05:55
Copy link
Collaborator

@smklein smklein left a comment

Choose a reason for hiding this comment

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

Thank you for restoring this! I'm thankful to not need to revive the FakeStorageManager

sled-agent/src/instance.rs Show resolved Hide resolved
@smklein smklein merged commit f129287 into sled-agent-api-to-manage-phys-disks Mar 21, 2024
19 of 21 checks passed
@smklein smklein deleted the ajs/sled-agent-api-to-manage-phys-disks/instance-tests branch March 21, 2024 02:19
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.

2 participants