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

add smoke test for omdb #4101

Merged
merged 9 commits into from
Sep 20, 2023
Merged

add smoke test for omdb #4101

merged 9 commits into from
Sep 20, 2023

Conversation

davepacheco
Copy link
Collaborator

This is a simple expectorate-based test to verify output of omdb. The goal here is to help people iterate on omdb without unknowingly breaking basic functionality. At this point, I feel we should feel totally comfortable changing the output. The point of the test is to be able to tell when you're doing it (and how). The test is far from exhaustive.

One annoying thing is that the information omdb prints necessarily varies between test runs (e.g., timestamps, internal service TCP port numbers). So there's a process here for redacting that stuff so that the expectorate output looks the same.

@@ -34,17 +34,17 @@ pub struct NexusArgs {
#[derive(Debug, Subcommand)]
enum NexusCommands {
/// print information about background tasks
BackgroundTask(BackgroundTaskArgs),
BackgroundTasks(BackgroundTasksArgs),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just noticed the lack of plural was inconsistent with other subcommands.

Copy link
Contributor

@jordanhendricks jordanhendricks left a comment

Choose a reason for hiding this comment

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

Nice! Great idea.

@davepacheco davepacheco enabled auto-merge (squash) September 19, 2023 22:05
@davepacheco davepacheco merged commit 69a5b18 into main Sep 20, 2023
22 checks passed
@davepacheco davepacheco deleted the dap/bgtask3 branch September 20, 2023 03:55
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