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

Function upgrade_rejects_bad_token

nodedb/src/control/server/sync/security.rs:411–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409
410 #[test]
411 fn upgrade_rejects_bad_token() {
412 let config = JwtConfig::default();
413 let result = validate_upgrade_token("bad.token.here", &config);
414 assert!(matches!(result, UpgradeAuthResult::Rejected { .. }));
415 }
416
417 #[test]
418 fn delta_bytes_to_json_handles_opaque_bytes() {

Callers

nothing calls this directly

Calls 1

validate_upgrade_tokenFunction · 0.85

Tested by

no test coverage detected