//! Smoke tests against the real Outline API. //! //! Ignored by default. Run with: //! `OUTLINE_API_KEY=ol_api_... cargo test -- --ignored` use outline::Client; #[tokio::test] #[ignore] async fn auth_info_and_collections_list_succeed() { let client = Client::from_env().expect("OUTLINE_API_KEY (and optionally OUTLINE_URL) must be set"); let auth = client .auth() .info() .await .expect("auth.info should succeed with valid credentials"); println!("Signed in as {} ({})", auth.user.name, auth.team.name); let page = client .collections() .list() .limit(5) .send() .await .expect("collections.list should succeed"); println!("Fetched {} collection(s)", page.items.len()); }