Skip to content

Commit

Permalink
cliccl: Change license acquisition URL
Browse files Browse the repository at this point in the history
Change the cockroach demo license acquisition URLs to point to a new URL.

Release note: None
  • Loading branch information
Rohan Yadav committed Sep 10, 2019
1 parent 746d213 commit 4bcebaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkg/ccl/cliccl/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ import (
"github.com/cockroachdb/errors"
)

// TODO (rohany): change this once another endpoint is setup for getting licenses.
// This URL grants a license that is valid for 1 hour.
const licenseURL = "https://register.cockroachdb.com/api/prodtest"
// This URL grants a license that is valid for 24 hours.
const licenseURL = "https://register.cockroachdb.com/api/license"

func getLicense(clusterID uuid.UUID) (string, error) {
client := &http.Client{
Expand All @@ -36,7 +35,8 @@ func getLicense(clusterID uuid.UUID) (string, error) {
}
// Send some extra information to the endpoint.
q := req.URL.Query()
q.Add("type", "demo")
// Let the endpoint know we are requesting a demo license.
q.Add("kind", "demo")
q.Add("version", build.VersionPrefix())
q.Add("clusterid", clusterID.String())
req.URL.RawQuery = q.Encode()
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ environment variable "COCKROACH_SKIP_ENABLING_DIAGNOSTIC_REPORTING".
}),
}

const demoOrg = "Cockroach Labs - Production Testing"
const demoOrg = "Cockroach Demo"

const defaultGeneratorName = "movr"

Expand Down

0 comments on commit 4bcebaf

Please sign in to comment.