File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
"github.com/stretchr/testify/suite"
8
8
9
- localtls "github.com/lxc/incus/v6/shared/tls"
9
+ "github.com/lxc/incus/v6/shared/tls/tlstest "
10
10
)
11
11
12
12
type objectSuite struct {
@@ -19,15 +19,15 @@ func TestObjectSuite(t *testing.T) {
19
19
20
20
func (s * objectSuite ) TestObjectCertificate () {
21
21
s .Assert ().NotPanics (func () {
22
- fingerprint := localtls .TestingKeyPair ().Fingerprint ()
22
+ fingerprint := tlstest .TestingKeyPair (s . T () ).Fingerprint ()
23
23
o := ObjectCertificate (fingerprint )
24
24
s .Equal (fmt .Sprintf ("certificate:%s" , fingerprint ), string (o ))
25
25
})
26
26
}
27
27
28
28
func (s * objectSuite ) TestObjectImage () {
29
29
s .Assert ().NotPanics (func () {
30
- fingerprint := localtls .TestingKeyPair ().Fingerprint ()
30
+ fingerprint := tlstest .TestingKeyPair (s . T () ).Fingerprint ()
31
31
o := ObjectImage ("default" , fingerprint )
32
32
s .Equal (fmt .Sprintf ("image:default/%s" , fingerprint ), string (o ))
33
33
})
You can’t perform that action at this time.
0 commit comments