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
e19d7a94
Commit
e19d7a94
authored
Nov 18, 2019
by
Sietse Ringers
Browse files
test: fix broken revocation test configuration
parent
e2a426af
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/sessiontest/server_test.go
View file @
e19d7a94
...
...
@@ -60,22 +60,24 @@ func StartRevocationServer(t *testing.T) {
irma
.
Logger
=
logger
dbstr
:=
"host=127.0.0.1 port=5432 user=testuser dbname=test password='testpassword' sslmode=disable"
cred
:=
irma
.
NewCredentialTypeIdentifier
(
"irma-demo.MijnOverheid.root"
)
settings
:=
map
[
irma
.
CredentialTypeIdentifier
]
*
irma
.
RevocationSetting
{
cred
:
{
Mode
:
irma
.
RevocationModeServer
},
}
irmaconf
,
err
:=
irma
.
NewConfiguration
(
filepath
.
Join
(
testdata
,
"irma_configuration"
),
irma
.
ConfigurationOptions
{
RevocationDB
:
dbstr
,
RevocationDB
:
dbstr
,
RevocationSettings
:
settings
,
})
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
irmaconf
.
ParseFolder
())
cred
:=
irma
.
NewCredentialTypeIdentifier
(
"irma-demo.MijnOverheid.root"
)
conf
:=
&
server
.
Configuration
{
Logger
:
logger
,
DisableSchemesUpdate
:
true
,
SchemesPath
:
filepath
.
Join
(
testdata
,
"irma_configuration"
),
RevocationSettings
:
map
[
irma
.
CredentialTypeIdentifier
]
*
irma
.
RevocationSetting
{
cred
:
{
Mode
:
irma
.
RevocationModeServer
},
},
IrmaConfiguration
:
irmaconf
,
RevocationDB
:
dbstr
,
RevocationSettings
:
settings
,
IrmaConfiguration
:
irmaconf
,
RevocationDB
:
dbstr
,
}
// Connect to database and clear records from previous test runs
...
...
Write
Preview
Supports
Markdown
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