File: deactivate-network-test.patch

package info (click to toggle)
golang-github-joyent-gocommon 0.0~git20161202.b787089-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 188 kB
  • sloc: makefile: 2
file content (36 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download
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
Description: tests with network access can not run on buildd
Author: Thorsten Alteholz <debian@alteholz.de>
Index: golang-github-joyent-gocommon/client/client_test.go
===================================================================
--- golang-github-joyent-gocommon.orig/client/client_test.go	2019-08-22 19:27:06.832242682 +0000
+++ golang-github-joyent-gocommon/client/client_test.go	2019-11-04 00:58:11.943342249 +0000
@@ -14,11 +14,11 @@
 	"fmt"
 	"github.com/joyent/gocommon/client"
 	joyenthttp "github.com/joyent/gocommon/http"
-	"github.com/joyent/gocommon/jpc"
+//	"github.com/joyent/gocommon/jpc"
 	"github.com/joyent/gosign/auth"
 	gc "launchpad.net/gocheck"
 	"net/http"
-	"testing"
+//	"testing"
 	"time"
 )
 
@@ -28,6 +28,7 @@
 
 var keyName = flag.String("key.name", "", "Specify the full path to the private key, defaults to ~/.ssh/id_rsa")
 
+/* test with keys not feasible
 func Test(t *testing.T) {
 	creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
 	if err != nil {
@@ -37,6 +38,7 @@
 	gc.Suite(&ClientSuite{creds: creds})
 	gc.TestingT(t)
 }
+*/
 
 func (s *ClientSuite) TestNewClient(c *gc.C) {
 	cl := client.NewClient(s.creds.SdcEndpoint.URL, "", s.creds, nil)