-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from systemaccounting/322-rust-integration-tests
322 rewrite node.js integration tests in rust
- Loading branch information
Showing
47 changed files
with
1,718 additions
and
10,078 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ members = [ | |
"crates/sqls", | ||
"crates/pg", | ||
"crates/httpclient", | ||
"tests", | ||
] | ||
|
||
[workspace.package] | ||
|
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,8 +1,50 @@ | ||
use crate::transaction; | ||
use crate::{ | ||
account_role::AccountRole, | ||
transaction::{Transaction, Transactions}, | ||
}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Eq, PartialEq, Debug, Deserialize, Serialize)] | ||
pub struct IntraTransaction { | ||
pub auth_account: Option<String>, | ||
pub transaction: transaction::Transaction, | ||
pub transaction: Transaction, | ||
} | ||
|
||
impl IntraTransaction { | ||
pub fn new(auth_account: String, transaction: Transaction) -> Self { | ||
Self { | ||
auth_account: Some(auth_account), | ||
transaction, | ||
} | ||
} | ||
} | ||
|
||
#[derive(Eq, PartialEq, Debug, Deserialize, Serialize)] | ||
pub struct IntraTransactions { | ||
pub auth_account: Option<String>, | ||
pub transactions: Transactions, | ||
} | ||
|
||
#[derive(Eq, PartialEq, Debug, Deserialize, Serialize)] | ||
pub struct RequestApprove { | ||
auth_account: String, | ||
id: String, | ||
account_name: String, | ||
account_role: AccountRole, | ||
} | ||
|
||
impl RequestApprove { | ||
pub fn new( | ||
auth_account: String, | ||
transaction_id: String, | ||
account_name: String, | ||
account_role: AccountRole, | ||
) -> Self { | ||
Self { | ||
auth_account, | ||
id: transaction_id, | ||
account_name, | ||
account_role, | ||
} | ||
} | ||
} |
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.