Skip to content

Commit

Permalink
test: use CID hosted by us (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos authored Feb 1, 2024
1 parent 0868bce commit 3969010
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn start_daemon_and_request_cid() {
assert!(port > 0, "Lassie is listening on non-zero port number");

let url = format!(
"http://127.0.0.1:{port}/ipfs/bafybeib36krhffuh3cupjml4re2wfxldredkir5wti3dttulyemre7xkni"
"http://127.0.0.1:{port}/ipfs/bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq"
);
let response = ureq::get(&url)
.set("Accept", "application/vnd.ipld.car")
Expand All @@ -42,7 +42,7 @@ fn start_daemon_and_request_cid() {

assert_eq!(
content,
include_bytes!("testdata/bafybeib36krhffuh3cupjml4re2wfxldredkir5wti3dttulyemre7xkni.car")
include_bytes!("testdata/bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq.car")
);
}

Expand Down Expand Up @@ -115,7 +115,7 @@ fn it_rejects_anonymous_requests_when_configured_with_access_token() {
assert!(port > 0, "Lassie is listening on non-zero port number");

let url = format!(
"http://127.0.0.1:{port}/ipfs/bafybeib36krhffuh3cupjml4re2wfxldredkir5wti3dttulyemre7xkni"
"http://127.0.0.1:{port}/ipfs/bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq"
);
let response = ureq::get(&url)
.set("Accept", "application/vnd.ipld.car")
Expand All @@ -137,7 +137,7 @@ fn it_allows_authorized_requests_when_configured_with_access_token() {
assert!(port > 0, "Lassie is listening on non-zero port number");

let url = format!(
"http://127.0.0.1:{port}/ipfs/bafybeib36krhffuh3cupjml4re2wfxldredkir5wti3dttulyemre7xkni"
"http://127.0.0.1:{port}/ipfs/bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq"
);
let response = ureq::get(&url)
.set("Accept", "application/vnd.ipld.car")
Expand All @@ -162,7 +162,7 @@ fn it_rejects_incorrect_authorization_when_configured_with_access_token() {
assert!(port > 0, "Lassie is listening on non-zero port number");

let url = format!(
"http://127.0.0.1:{port}/ipfs/bafybeib36krhffuh3cupjml4re2wfxldredkir5wti3dttulyemre7xkni"
"http://127.0.0.1:{port}/ipfs/bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq"
);
let response = ureq::get(&url)
.set("Accept", "application/vnd.ipld.car")
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 3969010

Please sign in to comment.