rings: RingZeroPrefix()/RingZeroAddress()
Ring zero corresponds to the backbone that connects all zones. Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -6,6 +6,15 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestRingZeroAddress(t *testing.T) {
|
||||
RZNTest(t, "RingZeroAddress", RingZeroAddress, []RZNTestCase{
|
||||
{1, 1, 50, MustParseAddr("10.0.17.50")},
|
||||
{1, 2, 50, MustParseAddr("10.0.18.50")},
|
||||
{2, 3, 1, MustParseAddr("10.0.35.1")},
|
||||
{2, 3, 300, netip.Addr{}},
|
||||
})
|
||||
}
|
||||
|
||||
func TestRingOneAddress(t *testing.T) {
|
||||
RZNTest(t, "RingOneAddress", RingOneAddress, []RZNTestCase{
|
||||
{1, 1, 50, MustParseAddr("10.1.16.50")},
|
||||
|
||||
Reference in New Issue
Block a user