Skip to content

Commit

Permalink
current path for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Mar 21, 2024
1 parent d49e868 commit 9b3f03f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dev-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'services/transaction-by-id/**'
- 'services/transactions-by-account/**'
- 'migrations/schema/**'
- 'test/**'
- 'tests/**'
branches-ignore:
- 'master'

Expand Down
3 changes: 3 additions & 0 deletions tests/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,19 @@ mod tests {
let reader = BufReader::new(file);
let test_intra_transaction: IntraTransaction = serde_json::from_reader(reader).unwrap();

// create a test transaction request
let create_request = r::create_request_http(
test_intra_transaction.auth_account.unwrap(),
test_intra_transaction.transaction.transaction_items.clone(),
)
.await;

// get the debitor account from the transaction request
let debitor = test_intra_transaction.transaction.transaction_items.0[0]
.debitor
.clone();

// get the debitors transaction request by id
let got =
r::get_request_by_id_http(debitor.clone(), debitor, create_request.id.unwrap()).await;

Expand Down

0 comments on commit 9b3f03f

Please sign in to comment.