mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
9302520ce5
commit
bbc2632474
|
@ -14,7 +14,7 @@ import (
|
||||||
func TestWithCommandExecIdInUserAgent(t *testing.T) {
|
func TestWithCommandExecIdInUserAgent(t *testing.T) {
|
||||||
ctx := withCommandExecIdInUserAgent(context.Background())
|
ctx := withCommandExecIdInUserAgent(context.Background())
|
||||||
|
|
||||||
// Check that the command trace ID is in the user agent string.
|
// Check that the command exec ID is in the user agent string.
|
||||||
ua := useragent.FromContext(ctx)
|
ua := useragent.FromContext(ctx)
|
||||||
re := regexp.MustCompile(`cmd-exec-id/([a-f0-9-]+)`)
|
re := regexp.MustCompile(`cmd-exec-id/([a-f0-9-]+)`)
|
||||||
matches := re.FindAllStringSubmatch(ua, -1)
|
matches := re.FindAllStringSubmatch(ua, -1)
|
||||||
|
|
Loading…
Reference in New Issue