Skip to content

Commit

Permalink
Update serde tokenization
Browse files Browse the repository at this point in the history
Recent Serde changes ([1], [2]) changed the internal representation of
enums, breaking our test.

[1]: serde-rs/serde#2496
[2]: serde-rs/serde#2505
  • Loading branch information
tgeoghegan committed Aug 15, 2023
1 parent a9df3db commit 58dbe9b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
15 changes: 12 additions & 3 deletions aggregator_api/src/lib.rs
Expand Up @@ -1726,7 +1726,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("ZW5jb2RlZA"),
Token::StructEnd,
Expand Down Expand Up @@ -1841,7 +1844,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
Token::StructEnd,
Expand All @@ -1852,7 +1858,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
Token::StructEnd,
Expand Down
15 changes: 12 additions & 3 deletions aggregator_core/src/task.rs
Expand Up @@ -1138,7 +1138,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("YWdncmVnYXRvciB0b2tlbg"),
Token::StructEnd,
Expand All @@ -1150,7 +1153,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("Bearer"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "Bearer",
},
Token::Str("token"),
Token::Str("Y29sbGVjdG9yIHRva2Vu"),
Token::StructEnd,
Expand Down Expand Up @@ -1334,7 +1340,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("Bearer"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "Bearer",
},
Token::Str("token"),
Token::Str("YWdncmVnYXRvciB0b2tlbg"),
Token::StructEnd,
Expand Down

0 comments on commit 58dbe9b

Please sign in to comment.