Merge branch 'master' into log-format
commit
2771996865
|
@ -74,11 +74,13 @@ Make sure you have Go installed. To build the project, execute the following com
|
|||
|
||||
```bash
|
||||
cd $GOPATH/src/github.com/influxdb
|
||||
go get -u ./...
|
||||
go get -u -f ./...
|
||||
go build ./...
|
||||
```
|
||||
|
||||
Once compilation completes, the binaries can be found in `$GOPATH/bin`. To set the version and commit flags pass the following to the build command:
|
||||
Once compilation completes, the binaries can be found in `$GOPATH/bin`. Please note that the InfluxDB binary is named `influxd`, not `influxdb`.
|
||||
|
||||
To set the version and commit flags during the build pass the following to the build command:
|
||||
|
||||
```bash
|
||||
-ldflags="-X main.version $VERSION -X main.commit $COMMIT"
|
||||
|
|
|
@ -577,13 +577,12 @@ func TestHandler_DeleteUser_DataNodeNotFound(t *testing.T) {
|
|||
// Perform a subset of endpoint testing, with authentication enabled.
|
||||
|
||||
func TestHandler_AuthenticatedCreateAdminUser(t *testing.T) {
|
||||
t.Skip()
|
||||
srvr := OpenServer(NewMessagingClient())
|
||||
s := NewAuthenticatedHTTPServer(srvr)
|
||||
defer s.Close()
|
||||
|
||||
// Attempting to create a non-admin user should fail.
|
||||
query := map[string]string{"q": "CREATE USER maeve WITH PASSWORD pass"}
|
||||
query := map[string]string{"q": "CREATE USER maeve WITH PASSWORD 'pass'"}
|
||||
status, _ := MustHTTP("GET", s.URL+`/query`, query, nil, "")
|
||||
if status != http.StatusUnauthorized {
|
||||
t.Fatalf("unexpected status: %d", status)
|
||||
|
@ -591,7 +590,7 @@ func TestHandler_AuthenticatedCreateAdminUser(t *testing.T) {
|
|||
|
||||
// Creating the first admin user, without supplying authentication
|
||||
// credentials should be OK.
|
||||
query = map[string]string{"q": "CREATE USER orla WITH PASSWORD pass WITH ALL PRIVILEGES"}
|
||||
query = map[string]string{"q": "CREATE USER orla WITH PASSWORD 'pass' WITH ALL PRIVILEGES"}
|
||||
status, _ = MustHTTP("GET", s.URL+`/query`, query, nil, "")
|
||||
if status != http.StatusOK {
|
||||
t.Fatalf("unexpected status: %d", status)
|
||||
|
@ -599,7 +598,7 @@ func TestHandler_AuthenticatedCreateAdminUser(t *testing.T) {
|
|||
|
||||
// Creating a second admin user, without supplying authentication
|
||||
// credentials should fail.
|
||||
query = map[string]string{"q": "CREATE USER louise WITH PASSWORD pass WITH ALL PRIVILEGES"}
|
||||
query = map[string]string{"q": "CREATE USER louise WITH PASSWORD 'pass' WITH ALL PRIVILEGES"}
|
||||
status, _ = MustHTTP("GET", s.URL+`/query`, query, nil, "")
|
||||
if status != http.StatusUnauthorized {
|
||||
t.Fatalf("unexpected status: %d", status)
|
||||
|
@ -608,7 +607,6 @@ func TestHandler_AuthenticatedCreateAdminUser(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestHandler_AuthenticatedDatabases_Unauthorized(t *testing.T) {
|
||||
t.Skip()
|
||||
srvr := OpenServer(NewMessagingClient())
|
||||
s := NewAuthenticatedHTTPServer(srvr)
|
||||
defer s.Close()
|
||||
|
|
Loading…
Reference in New Issue