22 lines
492 B
Go
22 lines
492 B
Go
package e2e
|
|
|
|
import (
|
|
"fmt"
|
|
"gitlab.hpi.de/codeocean/codemoon/poseidon/api"
|
|
"gitlab.hpi.de/codeocean/codemoon/poseidon/config"
|
|
"strings"
|
|
)
|
|
|
|
/*
|
|
* # E2E Tests
|
|
*
|
|
* 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)
|
|
|
|
func buildURL(parts ...string) (url string) {
|
|
parts = append([]string{baseURL, api.RouteBase}, parts...)
|
|
return strings.Join(parts, "")
|
|
}
|