-
Notifications
You must be signed in to change notification settings - Fork 90
LOG-1028: Rewrite e2e test in go #643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LOG-1028: Rewrite e2e test in go #643
Conversation
def7ee3
to
2bb8a30
Compare
2bb8a30
to
2d15dcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general it looks good to me. One question though, what is the purpose to keep the different bash-files as drivers of the golang tests?
if secret == nil { | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing block here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. Will fix. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Thanks for asking this question, @periklis ! I was trying to consolidate them into a single place. However, it is more complicated than I thought due to how the bash scripts and functions written in bash are organized. |
aaebe0f
to
99ba968
Compare
12f2bed
to
d8d691d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
os::log::info "---------------------------------------------------------------" | ||
os::cmd::expect_success_and_text "oc -n $TEST_NAMESPACE exec $pod -c elasticsearch -- es_util --query=foo-write/_doc/1 -d '{\"key\":\"value\"}' -XPUT -w %{http_code}" ".*201" | ||
TEST_WATCH_NAMESPACE=${TEST_NAMESPACE} TEST_OPERATOR_NAMESPACE=${TEST_NAMESPACE} \ | ||
go test -v ./test/e2e-olm/... -kubeconfig=${KUBECONFIG} -parallel=1 -timeout 1500s -run TestElasticsearchWrite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing passing this test to the junit report like here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks!
CLUSTERROLE=${CLUSTERROLE} AUTHORIZED_SA=${AUTHORIZED_SA} UNAUTHORIZED_SA=${UNAUTHORIZED_SA} \ | ||
TEST_OPERATOR_NAMESPACE=${TEST_NAMESPACE} \ | ||
TEST_WATCH_NAMESPACE=${TEST_NAMESPACE} \ | ||
go test -v ./test/e2e-olm/... -kubeconfig=${KUBECONFIG} -parallel=1 -timeout 1500s -run TestElasticsearchOperatorMetrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing passing this test to the junit report like here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks!
@periklis , I think the first one of the parent test name of the second one. I checked the results of other test file and find that they have similar structure. To avoid the confusion, how about change the test name like
What do you think? |
Renaming sounds good. However, my point is that if you check the junit report listing you will notice that the following tests are listed twice:
|
# allowed to retrieve metrices from elasticsearch | ||
set -euo pipefail | ||
|
||
KUBECONFIG=${KUBECONFIG:-$HOME/.kube/config} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to have the KUBECONFIG
here? the tests worked correctly before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we need KUBECONFIG here because the new operator sdk has removed its test framework, so we need to set KUBECONFIG for the go test
command. Actually, we have done similar change to test-001:
KUBECONFIG=${KUBECONFIG:-$HOME/.kube/config} |
one question about the |
please also squash your commits @huikang |
fe554bd
to
475a5b7
Compare
Hi, @periklis , it looks all other tests (like TestElasticsearchCluster/Invalid_master_count) appear twice in the junit page (https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_elasticsearch-operator/643/pull-ci-openshift-elasticsearch-operator-master-e2e-operator/1362067388459126784). It shows 2 matches found for each test case. |
retest |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
28 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Description
Rewrite e2e test in go
/cc @ewolinetz @periklis
/assign @ewolinetz
Links