1
0
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:
Joel Speed 2021-07-02 17:22:57 +01:00 committed by GitHub
commit 98f8195902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})
}
})
})
}
}