π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
wall: stage e2e post assets
Neeraj Gupta49824dea5eff
diff --git a/rust/e2e/tests/support/wall.rs b/rust/e2e/tests/support/wall.rsindex 540664212f..a2e5135346 100644--- a/rust/e2e/tests/support/wall.rs+++ b/rust/e2e/tests/support/wall.rs@@ -1,8 +1,6 @@use ente_core::http::Error as HttpError;use ente_rs::models::account::App;-use ente_wall::{- AccountWallCtx, OpenAccountWallCtxInput, PostObjectPayload, PrivateKeySource, WallError,-};+use ente_wall::{AccountWallCtx, OpenAccountWallCtxInput, PrivateKeySource, WallError};use crate::support::auth::TestAccount;@@ -25,16 +23,6 @@ pub fn profile_payload(display_name: &str, bio: &str) -> Vec<u8> {format!(r#"{{"displayName":"{display_name}","bio":"{bio}"}}"#).into_bytes()}-pub fn fake_post_object(name: &str) -> PostObjectPayload {- PostObjectPayload {- object_key: format!("wall-e2e/{name}"),- size: Some(1),- position: Some(0),- blur_hash_cipher: None,- variant: Some("full".to_string()),- }-}-pub fn assert_http_status<T>(result: Result<T, WallError>, expected_status: u16) {match result {Err(WallError::Http(HttpError::Http { status, .. })) if status == expected_status => {}diff --git a/rust/e2e/tests/wall_e2e.rs b/rust/e2e/tests/wall_e2e.rsindex 6b0994757d..f570b1912b 100644--- a/rust/e2e/tests/wall_e2e.rs+++ b/rust/e2e/tests/wall_e2e.rs@@ -97,13 +97,17 @@ async fn wall_bootstrap_posts_follow_share_and_link_suite() {assert_eq!(looked_up.wall_id, owner_wall.wall_id);assert_eq!(looked_up.wall_slug, updated_slug);- let object = wall::fake_post_object("post-1");+ let post_key = owner_ctx.generate_post_key();+ let object = owner_ctx+ .upload_post_asset(&post_key, b"wall e2e encrypted post asset", Some(0))+ .await+ .expect("post asset upload should succeed");let (post_id, post_key) = owner_ctx.create_post(&owner_wall.wall_id,&[object],Some(br#"{"caption":"hello world"}"#),- None,+ Some(&post_key),).await.expect("post creation should succeed");