Updates for Go client rename, update vendor dependencies

This commit is contained in:
Derek Collison
2016-11-20 13:15:37 -08:00
parent f902ba5b49
commit 61e0b758d7
13 changed files with 23 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ import (
"crypto/tls"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
type serverInfo struct {
@@ -658,7 +658,7 @@ func TestUnsubRace(t *testing.T) {
func TestTLSCloseClientConnection(t *testing.T) {
opts, err := ProcessConfigFile("./configs/tls.conf")
if err != nil {
t.Fatalf("Error processign config file: %v", err)
t.Fatalf("Error processing config file: %v", err)
}
opts.Authorization = ""
opts.TLSTimeout = 100

View File

@@ -9,12 +9,12 @@ import (
"net/http"
"net/url"
"strings"
"sync"
"testing"
"time"
"unicode"
"github.com/nats-io/nats"
"sync"
"github.com/nats-io/go-nats"
)
const CLIENT_PORT = 11224

View File

@@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
const PING_CLIENT_PORT = 11228

View File

@@ -7,11 +7,11 @@ import (
"net"
"net/url"
"reflect"
"strconv"
"testing"
"time"
"github.com/nats-io/nats"
"strconv"
"github.com/nats-io/go-nats"
)
func TestRouteConfig(t *testing.T) {

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"testing"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
func TestMultipleUserAuth(t *testing.T) {

View File

@@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
func TestServerRestartReSliceIssue(t *testing.T) {

View File

@@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
func TestMaxPayload(t *testing.T) {

View File

@@ -14,7 +14,7 @@ import (
"time"
"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
const CLIENT_PORT = 11422

View File

@@ -15,7 +15,7 @@ import (
"time"
"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)
func TestTLSConnection(t *testing.T) {

View File

@@ -19,6 +19,9 @@ import (
// that is started at a pseudo random number and increments with a pseudo-random increment.
// Total is 22 bytes of base 62 ascii text :)
// Version of the library
const Version = "1.0.0"
const (
digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
base = 62

View File

@@ -12,10 +12,9 @@ import (
"crypto/subtle"
"errors"
"fmt"
"golang.org/x/crypto/blowfish"
"io"
"strconv"
"golang.org/x/crypto/blowfish"
)
const (

View File

@@ -39,7 +39,7 @@ func NewCipher(key []byte) (*Cipher, error) {
// NewSaltedCipher creates a returns a Cipher that folds a salt into its key
// schedule. For most purposes, NewCipher, instead of NewSaltedCipher, is
// sufficient and desirable. For bcrypt compatiblity, the key can be over 56
// sufficient and desirable. For bcrypt compatibility, the key can be over 56
// bytes.
func NewSaltedCipher(key, salt []byte) (*Cipher, error) {
if len(salt) == 0 {

9
vendor/manifest vendored
View File

@@ -4,14 +4,16 @@
{
"importpath": "github.com/nats-io/nuid",
"repository": "https://github.com/nats-io/nuid",
"revision": "a5152d67cf63cbfb5d992a395458722a45194715",
"vcs": "git",
"revision": "289cccf02c178dc782430d534e3c1f5b72af807f",
"branch": "master",
"notests": true
},
{
"importpath": "golang.org/x/crypto/bcrypt",
"repository": "https://go.googlesource.com/crypto",
"revision": "9e7f5dc375abeb9619ea3c5c58502c428f457aa2",
"vcs": "git",
"revision": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd",
"branch": "master",
"path": "/bcrypt",
"notests": true
@@ -19,7 +21,8 @@
{
"importpath": "golang.org/x/crypto/blowfish",
"repository": "https://go.googlesource.com/crypto",
"revision": "9e7f5dc375abeb9619ea3c5c58502c428f457aa2",
"vcs": "git",
"revision": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd",
"branch": "master",
"path": "/blowfish",
"notests": true