-
Notifications
You must be signed in to change notification settings - Fork 0
38 improve google login retry behaviour #45
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
Draft
rob-h-w
wants to merge
13
commits into
main
Choose a base branch
from
38-improve-google-login-retry-behaviour
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7b86ef4
Correct Warnings
rob-h-w 85dc664
Retry After Initialized
rob-h-w b50fe7d
Factor out the Client
rob-h-w c5c798c
Turn CLI Tests into a General Test
rob-h-w 6a8eefe
Add Source Initialisation Wait Test
rob-h-w 9d310b7
Check Init Causes Confirmation
rob-h-w 1b7eb20
Test Stopping Early
rob-h-w eaabe70
Make a Test Client
rob-h-w 8ab2057
Separate Functional Tests
rob-h-w 4b229ff
Solve Execution Failure in CI
rob-h-w 553b20f
Build the App Under Test Before Measuring Coverage
rob-h-w 053bcab
Remove Functional Test Main
rob-h-w 2174e33
WIP Make Oauth2 Client & Config Pluggable
rob-h-w File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -99,4 +99,4 @@ lcov.info | |
| *.json | ||
| config*.yaml | ||
| state/ | ||
| *password* | ||
| *password*.yaml | ||
This file contains hidden or 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,55 +1,9 @@ | ||
| [package] | ||
| name = "cloud_scraper" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
| acme2 = "0.5.1" | ||
| async-trait = "0.1.77" | ||
| chrono = { version = "0.4.35", features = ["serde"] } | ||
| clap = { version = "4.0", features = ["derive"] } | ||
| derive-getters = "0.5.0" | ||
| derive_builder = "0.20.1" | ||
| env_logger = "0.11.1" | ||
| google-tasks1 = "6.0.0" | ||
| handlebars = "6.0.0" | ||
| hex = "0.4.3" | ||
| hmac = "0.12.1" | ||
| hyper-util = "0.1.7" | ||
| lazy_static = "1.4.0" | ||
| log = "0.4.20" | ||
| oauth2 = "4.4.2" | ||
| parking_lot = "0.12.1" | ||
| paste = "1.0.15" | ||
| pbkdf2 = "0.12.2" | ||
| rand = "0.8.5" | ||
| rpassword = "7.3.1" | ||
| serde = { version = "1.0.193", features = ["derive"] } | ||
| serde_yaml = { version = "0.9.29", features = [] } | ||
| sha2 = "0.10.8" | ||
| tokio = { version = "1.35.1", features = ["macros", "process", "rt", "rt-multi-thread", "signal", "time"] } | ||
| tokio-stream = "0.1.15" | ||
| url = "2.5.2" | ||
| uuid = { version = "1.6.1", features = ["serde", "v4"] } | ||
| warp = { version = "0.3", features = ["tls"] } | ||
| x509-parser = "0.16.0" | ||
|
|
||
| [dev-dependencies] | ||
| cucumber = "0.21.1" | ||
| mockall = "0.13.0" | ||
| once_cell = "1.19.0" | ||
| regex = "1.11.0" | ||
| reqwest = "0.12.9" | ||
| tokio-test = "0.4.3" | ||
| [workspace] | ||
| members = ["cloud_scraper", "functional_tests"] | ||
| resolver = "2" | ||
|
|
||
| [profile.release] | ||
| panic = "abort" | ||
|
|
||
| [profile.dev] | ||
| panic = "abort" | ||
|
|
||
| [[test]] | ||
| name = "cucumber_cli" | ||
| harness = false |
This file contains hidden or 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 hidden or 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,43 @@ | ||
| [package] | ||
| name = "cloud_scraper" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
| acme2 = "0.5.1" | ||
| async-trait = "0.1.77" | ||
| chrono = { version = "0.4.35", features = ["serde"] } | ||
| clap = { version = "4.0", features = ["derive"] } | ||
| derive-getters = "0.5.0" | ||
| derive_builder = "0.20.1" | ||
| env_logger = "0.11.1" | ||
| google-tasks1 = "6.0.0" | ||
| handlebars = "6.0.0" | ||
| hex = "0.4.3" | ||
| hmac = "0.12.1" | ||
| hyper-util = "0.1.7" | ||
| lazy_static = "1.4.0" | ||
| log = "0.4.20" | ||
| oauth2 = "4.4.2" | ||
| parking_lot = "0.12.1" | ||
| paste = "1.0.15" | ||
| pbkdf2 = "0.12.2" | ||
| rand = "0.8.5" | ||
| rpassword = "7.3.1" | ||
| serde = { version = "1.0.193", features = ["derive"] } | ||
| serde_yaml = { version = "0.9.29", features = [] } | ||
| sha2 = "0.10.8" | ||
| tokio = { version = "1.35.1", features = ["macros", "process", "rt", "rt-multi-thread", "signal", "time"] } | ||
| tokio-stream = "0.1.15" | ||
| url = "2.5.2" | ||
| uuid = { version = "1.6.1", features = ["serde", "v4"] } | ||
| warp = { version = "0.3", features = ["tls"] } | ||
| x509-parser = "0.16.0" | ||
|
|
||
| [dev-dependencies] | ||
| mockall = "0.13.0" | ||
| once_cell = "1.19.0" | ||
| tempfile = "3.15.0" | ||
| tokio-test = "0.4.3" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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,24 @@ | ||
| use async_trait::async_trait; | ||
| use std::path::PathBuf; | ||
| use tokio::fs; | ||
|
|
||
| #[async_trait] | ||
| pub trait ModuleState { | ||
| fn path() -> &'static str; | ||
| async fn path_for<Module>() -> Result<PathBuf, std::io::Error> | ||
| where | ||
| Module: NamedModule, | ||
| { | ||
| Self::path_for_name(Module::name()).await | ||
| } | ||
|
|
||
| async fn path_for_name(name: &str) -> Result<PathBuf, std::io::Error> { | ||
| let path = PathBuf::from(Self::path()).join(name); | ||
| fs::create_dir_all(&path).await?; | ||
| Ok(path) | ||
| } | ||
| } | ||
|
|
||
| pub trait NamedModule { | ||
| fn name() -> &'static str; | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / clippy
unused imports: `ApplicationSecret` and `ExtraParameters`