-
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.
- Loading branch information
Showing
14 changed files
with
210 additions
and
145 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
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,66 +1,3 @@ | ||
use bundle::Test; | ||
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, | ||
#[serde(rename = "clientVersion")] | ||
pub client_version: String, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize)] | ||
pub struct CreateBundleUploadResponse { | ||
pub id: String, | ||
#[serde(rename = "idV2")] | ||
pub id_v2: String, | ||
pub url: String, | ||
pub key: String, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, PartialEq, Eq)] | ||
pub enum BundleUploadStatus { | ||
#[serde(rename = "PENDING")] | ||
Pending, | ||
#[serde(rename = "UPLOAD_COMPLETE")] | ||
UploadComplete, | ||
#[serde(rename = "UPLOAD_FAILED")] | ||
UploadFailed, | ||
#[serde(rename = "DRY_RUN")] | ||
DryRun, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, PartialEq, Eq)] | ||
pub struct UpdateBundleUploadRequest { | ||
pub id: String, | ||
#[serde(rename = "uploadStatus")] | ||
pub upload_status: BundleUploadStatus, | ||
} | ||
|
||
#[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, | ||
#[serde(rename = "testIdentifiers")] | ||
pub test_identifiers: Vec<Test>, | ||
} | ||
|
||
#[derive(Debug, Serialize, Clone, Deserialize, Default)] | ||
pub struct QuarantineConfig { | ||
#[serde(rename = "isDisabled")] | ||
pub is_disabled: bool, | ||
#[serde(rename = "testIds")] | ||
pub quarantined_tests: Vec<String>, | ||
} | ||
mod call_api; | ||
pub mod client; | ||
pub mod message; |
Oops, something went wrong.