Use url from config
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package e2e
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.hpi.de/codeocean/codemoon/poseidon/api"
|
||||
"gitlab.hpi.de/codeocean/codemoon/poseidon/config"
|
||||
"strings"
|
||||
@ -13,7 +12,7 @@ import (
|
||||
* For the e2e tests a nomad cluster must be connected and poseidon must be running.
|
||||
*/
|
||||
|
||||
var baseURL = fmt.Sprintf("http://%s:%d", config.Config.Server.Address, config.Config.Server.Port)
|
||||
var baseURL = config.Config.PoseidonAPIURL().String()
|
||||
|
||||
func buildURL(parts ...string) (url string) {
|
||||
parts = append([]string{baseURL, api.RouteBase}, parts...)
|
||||
|
Reference in New Issue
Block a user