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
ac486ccb
Commit
ac486ccb
authored
Feb 05, 2018
by
Sietse Ringers
Browse files
Fix and expand TestDownloadSchemeManager
parent
bf351908
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaclient/irmaclient_test.go
View file @
ac486ccb
...
...
@@ -290,9 +290,6 @@ func TestWrongSchemeManager(t *testing.T) {
// within this manager to test the autmatic downloading of credential definitions,
// issuers, and public keys.
func
TestDownloadSchemeManager
(
t
*
testing
.
T
)
{
// Disabled
//return
client
:=
parseStorage
(
t
)
// Remove irma-demo scheme manager as we need to test adding it
...
...
@@ -317,5 +314,20 @@ func TestDownloadSchemeManager(t *testing.T) {
jwt
:=
getCombinedJwt
(
"testip"
,
irma
.
NewAttributeTypeIdentifier
(
"irma-demo.RU.studentCard.studentID"
))
sessionHelper
(
t
,
jwt
,
"issue"
,
client
)
require
.
Contains
(
t
,
client
.
Configuration
.
SchemeManagers
,
irmademo
)
require
.
Contains
(
t
,
client
.
Configuration
.
Issuers
,
irma
.
NewIssuerIdentifier
(
"irma-demo.RU"
))
require
.
Contains
(
t
,
client
.
Configuration
.
CredentialTypes
,
irma
.
NewCredentialTypeIdentifier
(
"irma-demo.RU.studentCard"
))
basepath
:=
"testdata/storage/test/irma_configuration/irma-demo"
exists
,
err
:=
fs
.
PathExists
(
basepath
+
"/description.xml"
)
require
.
NoError
(
t
,
err
)
require
.
True
(
t
,
exists
)
exists
,
err
=
fs
.
PathExists
(
basepath
+
"/RU/description.xml"
)
require
.
NoError
(
t
,
err
)
require
.
True
(
t
,
exists
)
exists
,
err
=
fs
.
PathExists
(
basepath
+
"/RU/Issues/studentCard/description.xml"
)
require
.
NoError
(
t
,
err
)
require
.
True
(
t
,
exists
)
teardown
(
t
)
}
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