test(e2e): Fix failure in migration test (#5277)
* test(e2e): Fix log path to avoid error * test(e2e): Be explicit about port definition to avoid dockertest issue * test(e2e): Add check for health
This commit is contained in:
1 parent
10370edf59
commit
66e8ec0f41
3 files changed
+7
-6
No files matched your search
@@ -181,16 +181,17 @@ func setupEnvironment(t testing.TB, c *config, boundaryRepo, boundaryTag string)
|
||||
|
||||
t.Log("Waiting for Boundary to finish loading...")
|
||||
err = pool.Retry(func() error {
|
||||
response, err := http.Get(b.UriLocalhost)
|
||||
response, err := http.Get(fmt.Sprintf("%s/health", b.UriLocalhost))
|
||||
if err != nil {
|
||||
t.Logf("Could not access Boundary URL: %s. Retrying...", err.Error())
|
||||
t.Logf("Could not access health endpoint: %s. Retrying...", err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
if response.StatusCode != http.StatusOK {
|
||||
return fmt.Errorf("Could not connect to %s. Status Code: %d", b.UriLocalhost, response.StatusCode)
|
||||
return fmt.Errorf("Health check returned an error. Status Code: %d", response.StatusCode)
|
||||
}
|
||||
|
||||
response.Body.Close()
|
||||
return nil
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
@@ -91,7 +91,7 @@ events {
|
||||
]
|
||||
|
||||
file {
|
||||
path = "/logs"
|
||||
path = "/boundary/logs"
|
||||
file_name = "audit.log"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user