MCPcopy Create free account
hub / github.com/ddd/gpb / test_auth_credentials_fetch

Function test_auth_credentials_fetch

src/auth/auth.rs:170–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169 #[test]
170 fn test_auth_credentials_fetch() {
171 // Create a tokio runtime for async testing
172 let rt = Runtime::new().unwrap();
173
174 // Use the runtime to run our async test
175 rt.block_on(async {
176 // Test fetching credentials
177 let result = fetch_auth_credentials().await;
178
179 match result {
180 Ok((cookie, gxf, azt, ist)) => {
181 // Check that we got valid credentials
182 assert!(cookie.contains("__Host-GAPS"), "Cookie should contain __Host-GAPS");
183
184 println!("Successfully retrieved credentials:");
185 println!("Cookie: {}", cookie);
186 println!("GXF: {}", gxf);
187 println!("AZT: {}", azt);
188 println!("IST: {}", ist);
189 },
190 Err(e) => {
191 panic!("Failed to fetch auth credentials: {}", e);
192 }
193 }
194 });
195 }
196
197 #[test]
198 fn test_regex_extraction() {

Callers

nothing calls this directly

Calls 1

fetch_auth_credentialsFunction · 0.85

Tested by

no test coverage detected