Commit 50a45763 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Test for some known values in test irma_configuration

parent e7b55810
package irmago package irmago
import ( import (
"fmt"
"testing" "testing"
"github.com/stretchr/testify/assert"
) )
func TestParseStore(t *testing.T) { func TestParseStore(t *testing.T) {
...@@ -10,5 +11,15 @@ func TestParseStore(t *testing.T) { ...@@ -10,5 +11,15 @@ func TestParseStore(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
fmt.Printf("%+v\n", MetaStore.issuers["irma-demo.MijnOverheid"].CurrentPublicKey())
assert.NotNil(t, MetaStore.issuers["irma-demo.RU"].CurrentPublicKey().N, "irma-demo.RU public key has no modulus")
assert.Equal(t, MetaStore.managers["irma-demo"].HRName, "Irma Demo", "irma-demo scheme manager has unexpected name")
assert.Equal(t,
"Radboud Universiteit Nijmegen",
MetaStore.issuers["irma-demo.RU"].HRName,
"irma-demo.RU issuer has unexpected name")
assert.Equal(t,
"Student Card",
MetaStore.credentials["irma-demo.RU.studentCard"].HRShortName,
"irma-demo.RU.studentCard has unexpected name")
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment