Skip to content

Replace personal-looking name in selfheal test fixture - #4

Merged
FoxesRCool1 merged 1 commit into
mainfrom
grok/fake-test-email
Dec 5, 2026
Merged

FoxesRCool1 merged 1 commit into
mainfrom
grok/fake-test-email

Conversation

@FoxesRCool1

Copy link
Copy Markdown
Owner

What

In update/selfheal_linux_test.go, a systemd template-unit fixture used a personal given name as the instance (foxtrack-bridge@<name>.service in the cgroup path and in the expected unit name). That is now foxtrack-bridge@test.service.

The test still checks the same behavior: unitFromCgroup must return the last path component when it ends in .service. The instance was not replaced with test@example.invalid because that suffix would make the helper return an empty string and would weaken the case.

No other *_test.go or testdata file had a real-looking personal email. Remaining address-like strings in tests are already example.com placeholders, the standard systemd user@1000.service unit, or fake RTSP logins on .local hosts.

Why

This is a public repo. Test fixtures should only use obviously fake data, including names inside systemd unit strings that look like email addresses.

Tested

In /workspace/fd14-bridge on grok/fake-test-email:

  • CGO_ENABLED=0 go test -tags headless ./... : all packages with tests passed (including foxtrack-bridge/update)
  • CGO_ENABLED=0 go vet -tags headless ./... : clean
  • Re-grepped the tree for email-like strings. No real-looking personal addresses remain in tests.

Not tested

  • A live systemd install of the foxtrack-bridge@.service template. The change is test-fixture only.
  • Non-test files were left alone. A Bambu developer contact address in docs/bambu-cloud.md, and TP-Link factory default usernames in plug/klap.go and plug/tapo_aes.go, still appear in production or docs code.

A systemd template-unit fixture in update/selfheal_linux_test.go used a
personal given name as the instance. It is now foxtrack-bridge@test.service.
The assertion is unchanged: unitFromCgroup must still return that last
.service component.
@hacktron-app

hacktron-app Bot commented Dec 5, 2026

Copy link
Copy Markdown

Hacktron Security Check - Skipped

Reason: Code Review is not active for this organization

Start a free trial (no credit card required), subscribe, or add a payment method from organization billing settings

Go to: https://app.hacktron.ai/fox-track/billing

@FoxesRCool1
FoxesRCool1 merged commit 29d52dc into main Dec 5, 2026
3 checks passed
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.

1 participant