Skip to content

Commit

Permalink
XXX debug insights
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Jul 18, 2023
1 parent 6140828 commit 18be272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,6 @@ srpm_build_deps:
# use the nicely formatted release NEWS from our upstream release, instead of git shortlog
copy_upstream_release_description: true
jobs:
- job: tests
trigger: pull_request
targets:
- fedora-37
- fedora-38
- fedora-latest-aarch64
- fedora-development
- centos-stream-8-x86_64
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# run build/unit tests on some interesting architectures
- job: copr_build
trigger: pull_request
targets:
# 32 bit
- fedora-development-i386
# big-endian
- fedora-development-s390x

- job: copr_build
trigger: release
owner: "@cockpit"
Expand Down
4 changes: 4 additions & 0 deletions test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,8 @@ fi
m = self.machine
b = self.browser

m.verbose = True

# insights-client might get started during boot and might then
# run concurrently with our explicit "insights-client
# --register" below. insights-client is not designed to be
Expand All @@ -863,6 +865,7 @@ fi
self.restore_dir("/etc/insights-client")
self.restore_dir("/etc/yum")
self.restore_dir("/var/lib/insights")
self.addCleanup(m.execute, "systemctl status insights-client >&2 || true; pgrep -af [i]nsight >&2 || true; pgrep -f [i]nsight | xargs systemctl status >&2 || true")

# Pretend that the Subscriptions page can do Insights stuff
self.write_file("/etc/cockpit/subscription-manager.override.json", '{ "features": { "insights": true } }')
Expand All @@ -888,6 +891,7 @@ password=foobar

# Initially we are not registered
self.login_and_go('/system')
b.cdp.trace = True
b.wait_text(".system-health-insights a", "Not connected to Insights")

# Enable insights, results should appear automatically
Expand Down

0 comments on commit 18be272

Please sign in to comment.