Skip to content
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

systemtest: fix missing error check #4683

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

axw
Copy link
Member

@axw axw commented Feb 4, 2021

Motivation/summary

Check error in test to avoid surprises later on.

How to test these changes

cd systemtest && go test -v -run Fleet

Related issues

None.

@codecov-io
Copy link

Codecov Report

Merging #4683 (eda965f) into master (f12b3c2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4683   +/-   ##
=======================================
  Coverage   76.16%   76.16%           
=======================================
  Files         161      161           
  Lines        9873     9873           
=======================================
  Hits         7520     7520           
  Misses       2353     2353           
Impacted Files Coverage Δ
...ack/apm-server/aggregation/txmetrics/aggregator.go 93.36% <0.00%> (ø)

@apmmachine
Copy link
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #4683 opened

    • Start Time: 2021-02-04T04:42:04.087+0000
  • Duration: 42 min 38 sec

  • Commit: eda965f

Test stats 🧪

Test Results
Failed 0
Passed 4613
Skipped 124
Total 4737

Steps errors 3

Expand to view the steps failures

Compress
  • Took 0 min 0 sec . View more details on here
  • Description: tar --exclude=coverage-files.tgz -czf coverage-files.tgz coverage
Compress
  • Took 0 min 0 sec . View more details on here
  • Description: tar --exclude=system-tests-linux-files.tgz -czf system-tests-linux-files.tgz system-tests
Test Sync
  • Took 3 min 24 sec . View more details on here
  • Description: ./.ci/scripts/sync.sh

@axw
Copy link
Member Author

axw commented Feb 4, 2021

Trivial fix, merging without review.

@axw axw merged commit f2ae40a into elastic:master Feb 4, 2021
@axw axw deleted the systemtest-missing-assertion branch February 4, 2021 05:34
axw added a commit to axw/apm-server that referenced this pull request Feb 19, 2021
axw added a commit to axw/apm-server that referenced this pull request Feb 19, 2021
axw added a commit that referenced this pull request Feb 19, 2021
…: fix missing error check (#4683) | systemtest: compensate for Fleet API bug (#4693) (#4832)

* systemtest: test apm-server in Fleet mode (#4650)

* systemtest: test apm-server in Fleet mode

We run a custom package registry into which
the "apm" integration package is bind-mounted
from the tree, enabling us to test with
unreleased package changes.

Add a system test that runs Elastic Agent in
Fleet mode, with a locally built APM Server
binary injected into the container. The test
adds the "apm" integration package to a new
agent policy, waits for elastic-agent to start
apm-server, and verifies it is functional.
# Conflicts:
#	systemtest/elasticsearch.go

* systemtest: fix missing error check (#4683)

* systemtest: compensate for Fleet API bug (#4693)

* systemtest: compensate for Fleet API bug

elastic/kibana#90544 is
causing the system test to respond with 404 Not Found,
despite the policy existing and being successfully
deleted.

Update the test to temporarily expect a 404 response to
avoid failing all our builds. Once the Kibana bug is
resolved this will start failing, and we can again check
that no error is returned.
axw added a commit that referenced this pull request Feb 20, 2021
… fix missing error check (#4683) | systemtest: compensate for Fleet API bug (#4693) (#4831)

* systemtest: test apm-server in Fleet mode (#4650)

* systemtest: test apm-server in Fleet mode

We run a custom package registry into which
the "apm" integration package is bind-mounted
from the tree, enabling us to test with
unreleased package changes.

Add a system test that runs Elastic Agent in
Fleet mode, with a locally built APM Server
binary injected into the container. The test
adds the "apm" integration package to a new
agent policy, waits for elastic-agent to start
apm-server, and verifies it is functional.
# Conflicts:
#	systemtest/elasticsearch.go

* systemtest: fix missing error check (#4683)

* systemtest: compensate for Fleet API bug (#4693)

* systemtest: compensate for Fleet API bug

elastic/kibana#90544 is
causing the system test to respond with 404 Not Found,
despite the policy existing and being successfully
deleted.

Update the test to temporarily expect a 404 response to
avoid failing all our builds. Once the Kibana bug is
resolved this will start failing, and we can again check
that no error is returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants