Yes, they are the same keys, but in this case test #20 might report a
false positive.
The key generated in test #4 is already validated in tests #7 and #8.
Test #20 basically repeats those steps. The key archived in test #19 is
not validated, which I suppose is the purpose of test #20.
--
Endi S. Dewata
On 3/4/2014 8:49 PM, John Magne wrote:
I think you are correct, but they may be the same keys anway.
He looks like he has the same key archived under two different id's.
He's retrieving it at the end using the old id.
> Not sure if this is correct.
>
> Test #19 archives key1 with a new client_key_id. I suppose this will
> generate a new key record with a new key_id.
>
> Test #20 is getting the key_info with the above client_key_id, but then
> it retrieves the key data using an old key_id obtained from test #4, not
> from the key_info just obtained. Is the test comparing the right keys?