mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 16:34:32 +01:00
20 lines
546 B
Go
20 lines
546 B
Go
|
package job
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
"github.com/zrepl/zrepl/endpoint"
|
||
|
"github.com/zrepl/zrepl/transport"
|
||
|
)
|
||
|
|
||
|
func TestFakeActiveSideDirectMethodInvocationClientIdentityDoesNotPassValidityTest(t *testing.T) {
|
||
|
jobid, err := endpoint.MakeJobID("validjobname")
|
||
|
require.NoError(t, err)
|
||
|
clientIdentity := FakeActiveSideDirectMethodInvocationClientIdentity(jobid)
|
||
|
t.Logf("%v", clientIdentity)
|
||
|
err = transport.ValidateClientIdentity(clientIdentity)
|
||
|
assert.Error(t, err)
|
||
|
}
|