Skip to content

Commit

Permalink
print err
Browse files Browse the repository at this point in the history
  • Loading branch information
mieciu committed Oct 7, 2024
1 parent 7f0c8ad commit a5c5048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/it/testcases/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func setupElasticsearch(ctx context.Context) (testcontainers.Container, error) {

// Set password to Kibana system user
if retCode, _, err := elasticsearch.Exec(ctx, []string{"curl", "-H", "Content-type: application/json", "-k", "-u", "elastic:quesmaquesma", "http://localhost:9200/_security/user/kibana_system/_password", "-d", "{\"password\": \"kibanana\"}"}); retCode != 0 || err != nil {
panic(fmt.Sprintf("Failed to set password for kibana_system: returned=[%d] err=[%s]", retCode, err))
panic(fmt.Sprintf("Failed to set password for kibana_system: returned=[%d] err=[%v]", retCode, err))
}

return elasticsearch, nil
Expand Down

0 comments on commit a5c5048

Please sign in to comment.