Skip to content
GitLab
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
6fc0cfac
Commit
6fc0cfac
authored
Jun 19, 2018
by
Sietse Ringers
Browse files
Clean stuff afterwards in new unit tests
parent
a69466d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaclient/irmaclient_test.go
View file @
6fc0cfac
...
...
@@ -363,6 +363,8 @@ func TestDisclosureNewAttributeUpdateSchemeManager(t *testing.T) {
client
.
Configuration
.
Download
(
&
disclosureRequest
)
require
.
True
(
t
,
client
.
Configuration
.
CredentialTypes
[
credid
]
.
ContainsAttribute
(
attrid
))
test
.
ClearTestStorage
(
t
)
}
func
TestIssueNewAttributeUpdateSchemeManager
(
t
*
testing
.
T
)
{
...
...
@@ -377,6 +379,8 @@ func TestIssueNewAttributeUpdateSchemeManager(t *testing.T) {
issuanceRequest
.
Credentials
[
0
]
.
Attributes
[
"newAttribute"
]
=
"foobar"
client
.
Configuration
.
Download
(
issuanceRequest
)
require
.
True
(
t
,
client
.
Configuration
.
CredentialTypes
[
credid
]
.
ContainsAttribute
(
attrid
))
test
.
ClearTestStorage
(
t
)
}
func
TestIssueOptionalAttributeUpdateSchemeManager
(
t
*
testing
.
T
)
{
...
...
@@ -391,6 +395,8 @@ func TestIssueOptionalAttributeUpdateSchemeManager(t *testing.T) {
delete
(
issuanceRequest
.
Credentials
[
0
]
.
Attributes
,
"level"
)
client
.
Configuration
.
Download
(
issuanceRequest
)
require
.
True
(
t
,
client
.
Configuration
.
CredentialTypes
[
credid
]
.
AttributeDescription
(
attrid
)
.
IsOptional
())
test
.
ClearTestStorage
(
t
)
}
// Test installing a new scheme manager from a qr, and do a(n issuance) session
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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