-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for sidekiq builder and roadster cli
Integrate with `insta` to help with asserting the parsed values of the roadster cli.
- Loading branch information
1 parent
5fcb038
commit 7e9f0fb
Showing
21 changed files
with
237 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
use clap::Parser; | ||
use serde_derive::Serialize; | ||
|
||
#[derive(Debug, Parser)] | ||
#[derive(Debug, Parser, Serialize)] | ||
pub struct ListRoutesArgs {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/cli/snapshots/roadster__cli__tests__parse_cli@case_1.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
skip_validate_config = false | ||
allow_dangerous = false |
7 changes: 7 additions & 0 deletions
7
src/cli/snapshots/roadster__cli__tests__parse_cli@case_2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
environment = 'test' | ||
skip_validate_config = false | ||
allow_dangerous = false |
6 changes: 6 additions & 0 deletions
6
src/cli/snapshots/roadster__cli__tests__parse_cli@case_3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
skip_validate_config = true | ||
allow_dangerous = false |
6 changes: 6 additions & 0 deletions
6
src/cli/snapshots/roadster__cli__tests__parse_cli@case_4.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
skip_validate_config = false | ||
allow_dangerous = true |
12 changes: 12 additions & 0 deletions
12
src/cli/snapshots/roadster__cli__tests__parse_cli@list_routes.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
skip_validate_config = false | ||
allow_dangerous = false | ||
|
||
[command] | ||
type = 'Roadster' | ||
|
||
[command.command] | ||
type = 'ListRoutes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
skip_validate_config = false | ||
allow_dangerous = false | ||
|
||
[command] | ||
type = 'Roadster' | ||
|
||
[command.command] | ||
type = 'Migrate' | ||
|
||
[command.command.command] | ||
type = 'Up' |
13 changes: 13 additions & 0 deletions
13
src/cli/snapshots/roadster__cli__tests__parse_cli@open_api.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: src/cli/mod.rs | ||
expression: roadster_cli | ||
--- | ||
skip_validate_config = false | ||
allow_dangerous = false | ||
|
||
[command] | ||
type = 'Roadster' | ||
|
||
[command.command] | ||
type = 'OpenApi' | ||
pretty_print = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
pub mod serde_util; | ||
#[cfg(test)] | ||
pub mod test_util; |
Oops, something went wrong.