projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12483: Compress adjacent segments when writing filetokens.
[arvados.git]
/
sdk
/
go
/
arvadostest
/
run_servers.go
diff --git
a/sdk/go/arvadostest/run_servers.go
b/sdk/go/arvadostest/run_servers.go
index 7edc482639e585effa23629552fd3a1bea216be8..c567560bc1a3d5188916cb3333e04c61b1f25ee4 100644
(file)
--- a/
sdk/go/arvadostest/run_servers.go
+++ b/
sdk/go/arvadostest/run_servers.go
@@
-1,3
+1,7
@@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
package arvadostest
import (
package arvadostest
import (
@@
-22,6
+26,15
@@
func ResetEnv() {
}
}
}
}
+// APIHost returns the address:port of the current test server.
+func APIHost() string {
+ h := authSettings["ARVADOS_API_HOST"]
+ if h == "" {
+ log.Fatal("arvadostest.APIHost() was called but authSettings is not populated")
+ }
+ return h
+}
+
// ParseAuthSettings parses auth settings from given input
func ParseAuthSettings(authScript []byte) {
scanner := bufio.NewScanner(bytes.NewReader(authScript))
// ParseAuthSettings parses auth settings from given input
func ParseAuthSettings(authScript []byte) {
scanner := bufio.NewScanner(bytes.NewReader(authScript))