mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-02-13 13:59:53 +02:00
Merge pull request #1262 from oauth2-proxy/fix-encryption-finicky-tests
Remove finicky encryption test
This commit is contained in:
commit
98f8195902
@ -264,22 +264,6 @@ func TestEncodeAndDecodeSessionState(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
t.Run("Mixed cipher types cause errors", func(t *testing.T) {
|
||||
for testName, ss := range testCases {
|
||||
t.Run(testName, func(t *testing.T) {
|
||||
cfbEncoded, err := ss.EncodeSessionState(cfb, false)
|
||||
assert.NoError(t, err)
|
||||
_, err = DecodeSessionState(cfbEncoded, gcm, false)
|
||||
assert.Error(t, err)
|
||||
|
||||
gcmEncoded, err := ss.EncodeSessionState(gcm, false)
|
||||
assert.NoError(t, err)
|
||||
_, err = DecodeSessionState(gcmEncoded, cfb, false)
|
||||
assert.Error(t, err)
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user