mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-02 13:29:36 +00:00
Use different image
This commit is contained in:
parent
a25558ce2d
commit
2b5ecf5de0
|
@ -1,8 +1,15 @@
|
|||
pipeline:
|
||||
cargo_fmt:
|
||||
image: rustdocker/rust:nightly
|
||||
image: rust:1.70-bullseye
|
||||
environment:
|
||||
# store cargo data in repo folder so that it gets cached between steps
|
||||
CARGO_HOME: .cargo
|
||||
commands:
|
||||
- /root/.cargo/bin/cargo fmt -- --check
|
||||
# need make existing toolchain available
|
||||
- cp -r -n /usr/local/cargo .cargo
|
||||
- rustup toolchain install nightly
|
||||
- rustup component add rustfmt --toolchain nightly
|
||||
- cargo +nightly fmt -- --check
|
||||
|
||||
cargo_check:
|
||||
image: rust:1.70-bullseye
|
||||
|
|
|
@ -285,7 +285,7 @@ pub mod test {
|
|||
|
||||
#[tokio::test]
|
||||
async fn test_sign() {
|
||||
let mut headers = generate_request_headers(&INBOX_URL.as_str()).unwrap();
|
||||
let mut headers = generate_request_headers(INBOX_URL.as_str()).unwrap();
|
||||
// use hardcoded date in order to test against hardcoded signature
|
||||
headers.insert(
|
||||
"date",
|
||||
|
@ -327,7 +327,7 @@ pub mod test {
|
|||
|
||||
#[tokio::test]
|
||||
async fn test_verify() {
|
||||
let headers = generate_request_headers(&INBOX_URL.as_str()).unwrap();
|
||||
let headers = generate_request_headers(INBOX_URL.as_str()).unwrap();
|
||||
let request_builder = ClientWithMiddleware::from(Client::new())
|
||||
.post(INBOX_URL.to_string())
|
||||
.headers(headers);
|
||||
|
|
Loading…
Reference in a new issue