MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / joining_node_without_creds_errors

Function joining_node_without_creds_errors

nodedb/src/control/cluster/tls.rs:523–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521
522 #[test]
523 fn joining_node_without_creds_errors() {
524 let dir = tempfile::tempdir().unwrap();
525 let self_addr: SocketAddr = "10.0.0.2:9400".parse().unwrap();
526 let first_seed: SocketAddr = "10.0.0.1:9400".parse().unwrap();
527 let s = settings(2, self_addr, vec![first_seed, self_addr]);
528 let err = resolve_credentials(&s, dir.path()).unwrap_err();
529 assert!(
530 err.to_string().contains("TLS credentials not found"),
531 "expected missing-creds error, got: {err}"
532 );
533 }
534
535 #[cfg(unix)]
536 #[test]

Callers

nothing calls this directly

Calls 4

settingsFunction · 0.85
resolve_credentialsFunction · 0.85
parseMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected