nodeinfo
: Add two basic (failing) tests
This commit is contained in:
parent
00befc432d
commit
707d6d3d54
1 changed files with 26 additions and 0 deletions
26
acrate-nodeinfo/tests/discover_test.rs
Normal file
26
acrate-nodeinfo/tests/discover_test.rs
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
|
use acrate_nodeinfo::*;
|
||||||
|
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn discover_hostmeta__junimo_party() {
|
||||||
|
let client = reqwest::Client::new();
|
||||||
|
let base: reqwest::Url = "https://junimo.party".parse()
|
||||||
|
.expect("a valid URL");
|
||||||
|
|
||||||
|
HostMetaDocument::discover_hostmeta(&client, base)
|
||||||
|
.await
|
||||||
|
.expect("host-meta discovery to succeed");
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn discover_nodeinfo__junimo_party() {
|
||||||
|
let client = reqwest::Client::new();
|
||||||
|
let base: reqwest::Url = "https://junimo.party".parse()
|
||||||
|
.expect("a valid URL");
|
||||||
|
|
||||||
|
HostMetaDocument::discover_nodeinfo(&client, base)
|
||||||
|
.await
|
||||||
|
.expect("nodeinfo discovery to succeed");
|
||||||
|
}
|
Loading…
Reference in a new issue