-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapcera_test.go
More file actions
42 lines (32 loc) · 749 Bytes
/
Copy pathapcera_test.go
File metadata and controls
42 lines (32 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//go:build !windows && apcera
// +build !windows,apcera
package sshkrb5_test
import (
"testing"
"github.com/bodgit/sshkrb5"
"github.com/stretchr/testify/assert"
)
func TestNewClient(t *testing.T) {
t.Parallel()
whoami, err := testNewClient(t)
if err != nil {
t.Fatal(err)
}
assert.Regexp(t, `\btest$`, whoami)
}
func TestNewClientWithCredentials(t *testing.T) {
t.Parallel()
_, err := testNewClientWithCredentials(t)
assert.ErrorIs(t, err, sshkrb5.ErrNotSupported)
}
func TestNewClientWithKeytab(t *testing.T) {
t.Parallel()
_, err := testNewClientWithKeytab(t)
assert.ErrorIs(t, err, sshkrb5.ErrNotSupported)
}
func TestNewServer(t *testing.T) {
t.Parallel()
if err := testNewServer(t); err != nil {
t.Fatal(err)
}
}