New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Clears old keychain if the configuration changes #3853
Conversation
I'm not comfortable with leaving this unautomated. Let's have an out-of-band process populate they keychain with various states so we can test the new code behavior. Off the top of my head:
Plus we need to make sure we test different configurations:
It means a bit of extra work to write some utility methods, and it'll be slightly brittle since it it requires the test to know the internal storage details of the keychain. But I'd rather have a test that isn't quite as resilient to changes than have this important feature not have sufficient automated tests. |
f8faf09
to
70f4fca
Compare
Testing update 11. App without the fix , signIn then install app with the fixExpected behavior: The app should work as before, the effect will take place only on the next configuration change of the app. 1.1 Instal with same configuration 1.2 Instal with different configuration for CUP and CIDP 1.3 Instal with same configuration for CUP and no CIDP 1.4 Instal with same configuration for CIDP and no CUP 1.5 no configuration for CIDP and CUP |
Testing 22. App with the fix, signIn then2.1 Instal with same configuration 2.2 Instal with different configuration for CUP and CIDP 2.3 Instal with same configuration for CUP and no CIDP 2.4 Instal with same configuration for CIDP and no CUP 2.5 Instal with no configuration for CIDP and CUP |
@@ -0,0 +1,33 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file has not tests.. Remove it?
@@ -0,0 +1,23 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the format of the file headers we are going with? Or should it be
//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
The following scenario needs to be addressed:
|
56ae725
to
73fe601
Compare
73fe601
to
17a8090
Compare
Tested again all the above test cases and working fine. |
Issue #, if available:
Description of changes:
Check points:
Documentation update for the change if requiredBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.