Skip to content

Commit

Permalink
Debug e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Trosien <[email protected]>
  • Loading branch information
otrosien committed May 7, 2019
1 parent bffb73d commit eb13b98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/e2e/autoscale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestEDSCPUAutoscaleUP6(t *testing.T) {
}

func runTestEDSCPUAutoScaleUP(t *testing.T, version, configMap string) {
edsName := "cpu-autoscale-up"
edsName := "cpu-autoscale-up-" + strings.Replace(version, ".", "", -1)
edsSpecFactory := NewTestEDSSpecFactory(edsName, version, configMap)
edsSpecFactory.Scaling(&zv1.ElasticsearchDataSetScaling{
Enabled: true,
Expand Down
3 changes: 2 additions & 1 deletion cmd/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ func (a *awaiter) await() error {
for {
retry, err := a.poll()
if err != nil {
a.t.Logf("%v", err)
if retry && time.Now().Before(deadline) {
a.t.Logf("%v", err)
time.Sleep(10 * time.Second)
continue
}
Expand All @@ -206,6 +206,7 @@ func resourceCreated(t *testing.T, kind string, name string, k8sInterface interf
})
err := result[1].Interface()
if err != nil {
t.Logf("%v", err)
return apiErrors.IsNotFound(err.(error)), err.(error)
}
return false, nil
Expand Down
1 change: 1 addition & 0 deletions manifests/es-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
- --operator-id={{{OPERATOR_ID}}}
- --interval=30s
- --namespace={{{NAMESPACE}}}
- --debug
resources:
limits:
cpu: 50m
Expand Down

0 comments on commit eb13b98

Please sign in to comment.