Page MenuHomeFreeBSD

hastd: Add full lifecycle test
Needs ReviewPublic

Authored by des on Mon, Sep 14, 10:15 PM.
Tags
None
Referenced Files
F173059635: D59676.id.diff
Wed, Sep 23, 6:28 AM
F173042015: D59676.id.diff
Wed, Sep 23, 2:47 AM
Unknown Object (File)
Tue, Sep 22, 11:13 AM
Unknown Object (File)
Mon, Sep 21, 3:04 AM
Unknown Object (File)
Sun, Sep 20, 11:00 PM
Unknown Object (File)
Sun, Sep 20, 8:27 PM
Unknown Object (File)
Fri, Sep 18, 6:24 PM
Unknown Object (File)
Fri, Sep 18, 5:53 PM
Subscribers

Details

Reviewers
kevans
markj
gjb
pjd
Group Reviewers
tests
Summary

Add a test case that creates and starts two nodes, has one assume the
primary role and the other the secondary role, writes to the device,
verifies that the data is synced to both nodes, then switches the roles,
and finally shuts both nodes down and compares their backing stores.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76897
Build 73780: arc lint + arc unit

Event Timeline

des requested review of this revision.Mon, Sep 14, 10:15 PM

This relies specifically on IPv4. Can you use localhost instead of 127.0.0.1

sbin/hastd/tests/hastd_test.sh
143–146

This can be handled in the cleanup routine instead.

156–161

This just handles the cleanup once instead of doing it inline in the test.