Update ExpectedAuthorizeCodeSessionJSONFromFuzzing.

We stared at this very carefully and we don't think there are any structural changes. Maybe something small happened to get the RNG off by one?

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2020-12-17 15:14:20 -06:00
parent 3e15e184ef
commit 8db9331fed
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D
2 changed files with 142 additions and 142 deletions

View File

@ -168,161 +168,161 @@ func (e *errSerializationFailureWithCause) Error() string {
// ExpectedAuthorizeCodeSessionJSONFromFuzzing is used for round tripping tests. // ExpectedAuthorizeCodeSessionJSONFromFuzzing is used for round tripping tests.
// It is exported to allow integration tests to use it. // It is exported to allow integration tests to use it.
const ExpectedAuthorizeCodeSessionJSONFromFuzzing = `{ const ExpectedAuthorizeCodeSessionJSONFromFuzzing = `{
"active": true, "active": true,
"request": { "request": {
"id": "嫎l蟲aƖ啘艿", "id": "曑x螠Gæ鄋楨",
"requestedAt": "2082-11-10T18:36:11.627253638Z", "requestedAt": "2082-11-10T18:36:11.627253638Z",
"client": { "client": {
"id": "!ſɄĈp[述齛ʘUȻ.5ȿE", "id": ":NJ¸Ɣ8(黋馛ÄRɴJa¶z",
"client_secret": "UQ==", "client_secret": "UQ==",
"redirect_uris": [ "redirect_uris": [
"ǣ珑 ʑ飶畛Ȳ螤Yɫüeɯ紤邥翔勋\\", "ǖ枭kʍ切厦ȳ箦;¥ʊXĝ奨誷傥祩d",
"Bʒ;", "zŇZ",
"鿃攴Ųęʍ鎾ʦ©cÏN,Ġ/_" "優蒼ĊɌț訫DŽǽeʀO2ƚ&N"
], ],
"grant_types": [ "grant_types": [
"憉sHĒ尥窘挼Ŀʼn" "唐W6ɻ橩斚薛ɑƐ"
], ],
"response_types": [ "response_types": [
"4", "w",
"ʄÔ@}i{絧遗Ū^ȝĸ谋Vʋ鱴閇T" "ǔŭe[u@阽羂ŷ-Ĵ½輢OÅ濲喾H"
], ],
"scopes": [ "scopes": [
"R鴝順諲ŮŚ节ȭŀȋc剠鏯ɽÿ¸" "G螩歐湡ƙı唡ɸğƎ&胢輢Ƈĵƚ"
], ],
"audience": [ "audience": [
" "
], ],
"public": true, "public": false,
"jwks_uri": "BA瘪囷ɫCʄɢ雐譄uée'", "jwks_uri": "o*泞羅ʘ Ⱦķ瀊垰7ã\")",
"jwks": { "jwks": {
"keys": [ "keys": [
{ {
"kty": "OKP", "kty": "OKP",
"crv": "Ed25519", "crv": "Ed25519",
"x": "nK9xgX_iN7u3u_i8YOO7ZRT_WK028Vd_nhtsUu7Eo6E", "x": "nK9xgX_iN7u3u_i8YOO7ZRT_WK028Vd_nhtsUu7Eo6E",
"x5u": { "x5u": {
"Scheme": "", "Scheme": "",
"Opaque": "", "Opaque": "",
"User": null, "User": null,
"Host": "", "Host": "",
"Path": "", "Path": "",
"RawPath": "", "RawPath": "",
"ForceQuery": false, "ForceQuery": false,
"RawQuery": "", "RawQuery": "",
"Fragment": "", "Fragment": "",
"RawFragment": "" "RawFragment": ""
} }
}, },
{ {
"kty": "OKP", "kty": "OKP",
"crv": "Ed25519", "crv": "Ed25519",
"x": "UbbswQgzWhfGCRlwQmMp6fw_HoIoqkIaKT-2XN2fuYU", "x": "UbbswQgzWhfGCRlwQmMp6fw_HoIoqkIaKT-2XN2fuYU",
"x5u": { "x5u": {
"Scheme": "", "Scheme": "",
"Opaque": "", "Opaque": "",
"User": null, "User": null,
"Host": "", "Host": "",
"Path": "", "Path": "",
"RawPath": "", "RawPath": "",
"ForceQuery": false, "ForceQuery": false,
"RawQuery": "", "RawQuery": "",
"Fragment": "", "Fragment": "",
"RawFragment": "" "RawFragment": ""
} }
} }
] ]
}, },
"token_endpoint_auth_method": "ŚǗƳȕ暭Q0ņP羾,塐", "token_endpoint_auth_method": "ƿʥǟȒ伉<x¹T鼓c吏",
"request_uris": [ "request_uris": [
"lj翻LH^俤µDzɹ@©|\u003eɃ", "Ć捘j]=谅ʑɑɮ$Ól4Ȟ",
"[:c顎疻紵D" ",Q7钎漡臧n"
], ],
"request_object_signing_alg": "m1Ì恣S@T嵇LJV,Æ櫔袆鋹奘", "request_object_signing_alg": "3@¡廜+v,淬Ʋ4Dʧ呩锏緍场",
"token_endpoint_auth_signing_alg": "Fãƻʚ肈ą8O+a駣" "token_endpoint_auth_signing_alg": "(ưƓǴ罷ǹ~]ea胠"
}, },
"scopes": [ "scopes": [
"ɼk瘸'鴵yſǮŁ±\u003eFA曎餄FxD溪", "ĩv絹b垇IŕĩǀŻQ'k頂箨J-a稆",
"綻N镪p赌h%桙dĽ" "啶#昏Q遐*\\髎bŸ"
], ],
"grantedScopes": [ "grantedScopes": [
"癗E]Ņʘʟ車s" "慂UFƼĮǡ鑻Z"
], ],
"form": { "form": {
"蹬器ķ8ŷ萒寎廭#疶昄Ą-Ƃƞ轵": [ "褾攚ŝlĆ厦駳骪l拁乖¡J¿Ƈ妔": [
"熞ĝƌĆ1ȇyǴ濎=Tʉȼʁŀ\u003c", "懧¥ɂĵ~Čyʊ恀c\"NJřðȿ/",
"耡q戨稞R÷mȵg釽[ƞ@", "裢?霃谥vƘ:ƿ/濔Aʉ<",
"đ[嬧鱒Ȁ彆媚杨嶒ĤGÀ吧Lŷ" "ȭ$奍囀Dž悷鵱民撲ʓeŘ嬀j¤"
], ],
"餟": [ "诞": [
"蒍z\u0026(K鵢Kj ŏ9Q韉Ķ%", "狲N<Cq罉ZPſĝEK郊©l",
"輫ǘ(¨Ƞ亱6ě#嫀^xz ", "餚LJ/ɷȑ潠[ĝU噤'pX ",
"@耢ɝ^¡!犃ĹĐJí¿ō擫" "Y妶ǵ!ȁu狍ɶȳsčɦƦ"
] ]
}, },
"session": { "session": {
"Claims": { "Claims": {
"JTI": "懫砰¿C筽娴ƓaPu镈賆ŗɰ", "JTI": "攬林Ñz焁糳¿o>Q鱙翑ȲŻ",
"Issuer": "皶竇瞍涘¹焕iǢǽɽĺŧ", "Issuer": "锰劝旣樎Ȱ鍌#ȳńƩŴȭ",
"Subject": "矠M6ɡǜg炾ʙ$%o6肿Ȫ", "Subject": "绝TFNJĆw宵ɚeY48珎²",
"Audience": [ "Audience": [
"ƌÙ鯆GQơ鮫R嫁ɍUƞ9+u!Ȱ踾$" "éã越|j¦鲶H股ƲLŋZ-{5£踉4"
],
"Nonce": "5^驜Ŗ~ů崧軒q腟u尿",
"ExpiresAt": "2065-11-30T13:47:03.613000626Z",
"IssuedAt": "1976-02-22T09:57:20.479850437Z",
"RequestedAt": "2016-04-13T04:18:53.648949323Z",
"AuthTime": "2098-07-12T04:38:54.034043015Z",
"AccessTokenHash": "嫯R",
"AuthenticationContextClassReference": "¤'+ʣ",
"AuthenticationMethodsReference": "L&ɽ艄ʬʏ",
"CodeHash": "ğǫ\\aȊ4ț髄Al",
"Extra": {
"PƢ曰": {
"ĸŴB岺Ð嫹Sx镯荫ő": [
843216989
], ],
"Nonce": "us旸Ť/Õ薝隧;綡,鼞", "疂ư墫ɓ": {
"ExpiresAt": "2065-11-30T13:47:03.613000626Z", "\\BRë_g\"ʎ啴SƇMǃļ": {
"IssuedAt": "1976-02-22T09:57:20.479850437Z", "ʦ4": false
"RequestedAt": "2016-04-13T04:18:53.648949323Z", },
"AuthTime": "2098-07-12T04:38:54.034043015Z", "鶡萷ɵ啜s攦": null
"AccessTokenHash": "滮]",
"AuthenticationContextClassReference": "°3\u003eÙ",
"AuthenticationMethodsReference": "k?µ鱔ǤÂ",
"CodeHash": "Țƒ1v¸KĶ跭};",
"Extra": {
"=ſ氆": {
"Ƿī,廖ʡ彑V\\廳蟕Ț": [
843216989
],
"蔯ʠ浵Ī": {
"H\"nǕ=rlƆ褡{ǏSȳŅ": {
"Žg": false
},
"枱鰧ɛ鸁A渇": null
}
},
"斻遟a衪荖舃9闄岈锘肺ńʥƕU}j%": 2520197933
} }
}, },
"Headers": { "曓蓳n匟鯘磹*金爃鶴滱ůĮǐ_c3#": 2520197933
"Extra": { }
"熒ɘȏıȒ諃龟ŴŠ'耐Ƭ扵ƹ玄ɕwL": { },
"ýÏʥZq7烱藌\\捀¿őŧQ": { "Headers": {
"微'X焌襱ǭɕņ殥!_": null, "Extra": {
"荇届UȚ?戋璖$9\u00269舋": { "寱ĊƑ÷Ƒ螞费Ďğ~劰û橸ɽ銐ƭ?}": {
"ɕ餦ÑEǰ哤癨浦浏1Rk頓ć§蚲6": true "ȜʁɁ;Bd謺錳4帳ŅǃĊd": {
} "翢砜Fȏl鐉诳DT=3骜": {
}, "ų厷ɁOƪ穋嶿鳈恱va|载ǰɱ汶C": false
"鲒鿮禗O暒aJP鐜?ĮV嫎h譭ȉ]DĘ": [ },
954647573 "鸨EJ毕懴řĬń戹%c": null
] },
}, "室癑勦e骲v0H晦XŘO溪V蔓Ȍ+~ē": [
"皩Ƭ}Ɇ.雬Ɨ´唁": 1572524915 954647573
} ]
}, },
"ExpiresAt": { "麈ƵDǀ\\郂üţ垂": 1572524915
"\u003cqċ譈8ŪɎP绿MÅ": "2031-10-18T22:07:34.950803105Z", }
"ȸěaʜD捛?½ʀ+Ċ偢镳ʬÍɷȓ\u003c": "2049-05-13T15:27:20.968432454Z" },
}, "ExpiresAt": {
"Username": "1藍殙菥趏酱Nʎ\u0026^横懋ƶ峦Fïȫƅw", "'=ĸ闒NȢȰ.醋fʜ": "2031-10-18T22:07:34.950803105Z",
"Subject": "檾ĩĆ爨4犹|v炩f柏ʒ鴙*鸆偡" "ɦüHêQ仏1őƖ2Ė暮唍ǞʜƢú4": "2049-05-13T15:27:20.968432454Z"
},
"Username": "+韁臯氃妪婝rȤ\"h丬鎒ơ娻}ɼƟȥE",
"Subject": "龳ǽÙ龦O亾EW莛8嘶×姮c恭企"
}, },
"requestedAudience": [ "requestedAudience": [
"肯Ûx穞Ƀ", "邖ɐ5檄¬",
"ź蕴3ǐ薝Ƅ腲=ʐ诂鱰屾Ê窢ɋ鄊qɠ谫" "Ĭ葜SŦ餧Ĭ倏4ĵ嶼仒篻ɥ闣ʬ橳(ý綃"
], ],
"grantedAudience": [ "grantedAudience": [
"ǵƕ牀1鞊\\ȹ)}鉍商OɄƣ圔,xĪ", "ʚƟ覣k眐4ĈtC嵽痊w©Ź榨Q|ô",
"悾xn冏裻摼0Ʈ蚵Ȼ塕»£#稏扟X" "猊Ia瓕巈環_ɑƍ蛊ʚ£:設虝2"
] ]
}, },
"version": "1" "version": "1"
}` }`

View File

@ -391,5 +391,5 @@ func TestFuzzAndJSONNewValidEmptyAuthorizeCodeSession(t *testing.T) {
// while the fuzzer will panic if AuthorizeRequest changes in a way that cannot be fuzzed, // while the fuzzer will panic if AuthorizeRequest changes in a way that cannot be fuzzed,
// if it adds a new field that can be fuzzed, this check will fail // if it adds a new field that can be fuzzed, this check will fail
// thus if AuthorizeRequest changes, we will detect it here (though we could possibly miss an omitempty field) // thus if AuthorizeRequest changes, we will detect it here (though we could possibly miss an omitempty field)
require.Equal(t, ExpectedAuthorizeCodeSessionJSONFromFuzzing, authorizeCodeSessionJSONFromFuzzing) require.JSONEq(t, ExpectedAuthorizeCodeSessionJSONFromFuzzing, authorizeCodeSessionJSONFromFuzzing)
} }