Commit ffa1dd89 authored by David Venhoek's avatar David Venhoek Committed by Sietse Ringers
Browse files

Mark revocation tests as non-local, since they rely on an external database.

parent ae6a7de3
// +build !local_tests
package sessiontest
import (
......@@ -29,10 +31,6 @@ var (
revocationDbType, revocationDbStr = "mysql", "testuser:testpassword@tcp(127.0.0.1)/test"
revocationPkCounter uint = 2
revocationTestAttr = irma.NewAttributeTypeIdentifier("irma-demo.MijnOverheid.root.BSN")
revocationTestCred = revocationTestAttr.CredentialTypeIdentifier()
revKeyshareTestAttr = irma.NewAttributeTypeIdentifier("test.test.email.email")
revKeyshareTestCred = revKeyshareTestAttr.CredentialTypeIdentifier()
)
func testRevocation(t *testing.T, attr irma.AttributeTypeIdentifier, client *irmaclient.Client, handler irmaclient.ClientHandler) {
......
......@@ -13,7 +13,7 @@ import (
"github.com/privacybydesign/irmago/server/requestorserver"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
"github.com/x-cray/logrus-prefixed-formatter"
prefixed "github.com/x-cray/logrus-prefixed-formatter"
)
var (
......@@ -24,6 +24,11 @@ var (
logger = logrus.New()
testdata = test.FindTestdataFolder(nil)
revocationTestAttr = irma.NewAttributeTypeIdentifier("irma-demo.MijnOverheid.root.BSN")
revocationTestCred = revocationTestAttr.CredentialTypeIdentifier()
revKeyshareTestAttr = irma.NewAttributeTypeIdentifier("test.test.email.email")
revKeyshareTestCred = revKeyshareTestAttr.CredentialTypeIdentifier()
)
func init() {
......@@ -139,8 +144,8 @@ var JwtServerConfiguration = &requestorserver.Configuration{
},
},
},
ListenAddress: "localhost",
Port: 48682,
ListenAddress: "localhost",
Port: 48682,
DisableRequestorAuthentication: false,
MaxRequestAge: 3,
Permissions: requestorserver.Permissions{
......
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