Skip to content

Commit

Permalink
Add ignore to integration tests, comment out verifier test until comp…
Browse files Browse the repository at this point in the history
…leted
  • Loading branch information
lukehare committed Jun 23, 2023
1 parent 9b010c1 commit 8e88687
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
6 changes: 4 additions & 2 deletions trustchain-http/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ mod tests {
}

#[tokio::test]
#[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
#[ignore = "requires ION, MongoDB, IPFS and Bitcoin RPC"]
async fn test_resolve_did() {
let app = TrustchainRouter::from(HTTPConfig::default()).into_router();
let uri = "/did/did:ion:test:EiAtHHKFJWAk5AsM3tgCut3OiBY4ekHTf66AAjoysXL65Q".to_string();
Expand All @@ -205,7 +205,7 @@ mod tests {
}

#[tokio::test]
#[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
#[ignore = "requires ION, MongoDB, IPFS and Bitcoin RPC"]
async fn test_resolve_chain() {
let app = TrustchainRouter::from(HTTPConfig::default()).into_router();
let uri = "/did/chain/did:ion:test:EiAtHHKFJWAk5AsM3tgCut3OiBY4ekHTf66AAjoysXL65Q?root_event_time=1666265405".to_string();
Expand Down Expand Up @@ -233,6 +233,7 @@ mod tests {
}

#[tokio::test]
#[ignore = "requires ION, MongoDB, IPFS and Bitcoin RPC"]
// Test of the bundle endpoint by using the verifier `fetch_bundle()` method to get from the endpoint
async fn test_get_bundle() {
let app = TrustchainRouter::from(HTTPConfig::default()).into_router();
Expand All @@ -258,6 +259,7 @@ mod tests {
}

#[tokio::test]
#[ignore = "requires ION, MongoDB, IPFS and Bitcoin RPC"]
// Test of the bundle endpoint by using the verifier `fetch_bundle()` method to get from the endpoint
async fn test_fetch_bundle() {
// Using internals of the `TestClient` to make address available in test
Expand Down
23 changes: 12 additions & 11 deletions trustchain-http/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,17 @@ impl TrustchainVerifierHTTPHandler {

#[cfg(test)]
mod tests {
// Verifier integration tests
#[tokio::test]
#[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
async fn test_get_verifier_request() {
todo!()
}
// TODO: complete tests as part of verifier completion (#56)
// // Verifier integration tests
// #[tokio::test]
// #[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
// async fn test_get_verifier_request() {
// todo!()
// }

#[tokio::test]
#[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
async fn test_post_verifier_credential() {
todo!()
}
// #[tokio::test]
// #[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
// async fn test_post_verifier_credential() {
// todo!()
// }
}

0 comments on commit 8e88687

Please sign in to comment.