mirror of https://github.com/docker/docs.git
commit
0540e5e295
|
@ -7,7 +7,7 @@ script:
|
|||
- make dco
|
||||
- make fmt
|
||||
# - make lint
|
||||
# - make vet
|
||||
- make vet
|
||||
- make test-short
|
||||
- make test-long
|
||||
- make coverage-send
|
||||
|
|
|
@ -35,5 +35,5 @@ endif
|
|||
default: build
|
||||
clean: coverage-clean build-clean
|
||||
build: build-simple
|
||||
test: dco fmt test-short
|
||||
test: dco fmt vet test-short
|
||||
validate: dco fmt vet lint test-short test-long
|
|
@ -4,6 +4,6 @@ import "testing"
|
|||
|
||||
func TestActionValue(t *testing.T) {
|
||||
if Restart.String() != "restart" {
|
||||
t.Fatal("Expected %q but got %q", "install", Restart.String())
|
||||
t.Fatalf("Expected %s but got %s", "install", Restart.String())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ func (kp *KeyPair) WriteToFile(privateKeyPath string, publicKeyPath string) erro
|
|||
}{
|
||||
{
|
||||
File: privateKeyPath,
|
||||
Value: pem.EncodeToMemory(&pem.Block{"RSA PRIVATE KEY", nil, kp.PrivateKey}),
|
||||
Value: pem.EncodeToMemory(&pem.Block{Type: "RSA PRIVATE KEY", Headers: nil, Bytes: kp.PrivateKey}),
|
||||
},
|
||||
{
|
||||
File: publicKeyPath,
|
||||
|
|
|
@ -11,7 +11,7 @@ func TestNewKeyPair(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if privPem := pem.EncodeToMemory(&pem.Block{"RSA PRIVATE KEY", nil, pair.PrivateKey}); len(privPem) == 0 {
|
||||
if privPem := pem.EncodeToMemory(&pem.Block{Type: "RSA PRIVATE KEY", Headers: nil, Bytes: pair.PrivateKey}); len(privPem) == 0 {
|
||||
t.Fatal("No PEM returned")
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ func TestGetLatestBoot2DockerReleaseUrl(t *testing.T) {
|
|||
|
||||
expectedUrl := fmt.Sprintf("%s/boot2docker/boot2docker/releases/download/0.1/boot2docker.iso", ts.URL)
|
||||
if isoUrl != expectedUrl {
|
||||
t.Fatalf("expected url %s; received %s", isoUrl)
|
||||
t.Fatalf("expected url %s; received %s", isoUrl, expectedUrl)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ func TestCopyFile(t *testing.T) {
|
|||
}
|
||||
|
||||
if string(data) != testStr {
|
||||
t.Fatalf("expected data \"%s\"; received \"%\"", testStr, string(data))
|
||||
t.Fatalf("expected data \"%s\"; received \"%s\"", testStr, string(data))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue