-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split out api, test_utils, and bundlerepo from cli
- Loading branch information
1 parent
9d7fa72
commit c72e8f9
Showing
21 changed files
with
741 additions
and
703 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "api" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
context = { path = "../context" } | ||
serde = { version = "1.0.130", default-features = false, features = ["derive"] } | ||
serde_json = "1.0.68" |
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,42 @@ | ||
use std::collections::HashSet; | ||
|
||
use context::repo::RepoUrlParts; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, PartialEq, Eq)] | ||
pub struct CreateBundleUploadRequest { | ||
pub repo: RepoUrlParts, | ||
#[serde(rename = "orgUrlSlug")] | ||
pub org_url_slug: String, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize)] | ||
pub struct CreateBundleUploadResponse { | ||
pub id: String, | ||
pub url: String, | ||
pub key: String, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, PartialEq, Eq)] | ||
pub struct CreateRepoRequest { | ||
pub repo: RepoUrlParts, | ||
#[serde(rename = "orgUrlSlug")] | ||
pub org_url_slug: String, | ||
#[serde(rename = "remoteUrls")] | ||
pub remote_urls: Vec<String>, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, PartialEq, Eq)] | ||
pub struct GetQuarantineBulkTestStatusRequest { | ||
pub repo: RepoUrlParts, | ||
#[serde(rename = "orgUrlSlug")] | ||
pub org_url_slug: String, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, Default)] | ||
pub struct QuarantineConfig { | ||
#[serde(rename = "isPreview")] | ||
pub is_preview_mode: bool, | ||
#[serde(rename = "testIds")] | ||
pub quarantined_tests: HashSet<String>, | ||
} |
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
Oops, something went wrong.