Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
1a214003
Commit
1a214003
authored
Feb 14, 2020
by
Leon
Committed by
Sietse Ringers
Mar 03, 2020
Browse files
use new storage removal method in tests
parent
66cd8647
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/sessiontest/session_test.go
View file @
1a214003
...
...
@@ -120,7 +120,7 @@ func TestLargeAttribute(t *testing.T) {
client
,
_
:=
parseStorage
(
t
)
defer
test
.
ClearTestStorage
(
t
)
require
.
NoError
(
t
,
client
.
Remove
AllCredentials
())
require
.
NoError
(
t
,
client
.
Remove
Storage
())
issuanceRequest
:=
getSpecialIssuanceRequest
(
false
,
"1234567890123456789012345678901234567890"
)
// 40 chars
sessionHelper
(
t
,
issuanceRequest
,
"issue"
,
client
)
...
...
@@ -204,7 +204,7 @@ that they have been fixed. */
func
TestAttributeByteEncoding
(
t
*
testing
.
T
)
{
client
,
_
:=
parseStorage
(
t
)
defer
test
.
ClearTestStorage
(
t
)
require
.
NoError
(
t
,
client
.
Remove
AllCredentials
())
require
.
NoError
(
t
,
client
.
Remove
Storage
())
/* After bitshifting the presence bit into the large attribute below, the most significant
bit is 1. In the bigint->[]byte conversion that happens before hashing this attribute, in
...
...
@@ -229,7 +229,7 @@ func TestOutdatedClientIrmaConfiguration(t *testing.T) {
defer
test
.
ClearTestStorage
(
t
)
// Remove old studentCard credential from before support for optional attributes, and issue a new one
require
.
NoError
(
t
,
client
.
Remove
AllCredentials
())
require
.
NoError
(
t
,
client
.
Remove
Storage
())
require
.
Nil
(
t
,
requestorSessionHelper
(
t
,
getIssuanceRequest
(
true
),
client
)
.
Err
)
// client does not have updated irma_configuration with new attribute irma-demo.RU.studentCard.newAttribute,
...
...
@@ -249,7 +249,7 @@ func TestDisclosureNewAttributeUpdateSchemeManager(t *testing.T) {
require
.
False
(
t
,
client
.
Configuration
.
CredentialTypes
[
credid
]
.
ContainsAttribute
(
attrid
))
// Remove old studentCard credential from before support for optional attributes, and issue a new one
require
.
NoError
(
t
,
client
.
Remove
AllCredentials
())
require
.
NoError
(
t
,
client
.
Remove
Storage
())
require
.
Nil
(
t
,
requestorSessionHelper
(
t
,
getIssuanceRequest
(
true
),
client
)
.
Err
)
// Trigger downloading the updated irma_configuration using a disclosure request containing the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment