svn commit: samba r11887 - in
branches/SAMBA_4_0/source/torture/nbt: .
metze at samba.org
metze at samba.org
Thu Nov 24 09:22:39 GMT 2005
Author: metze
Date: 2005-11-24 09:22:38 +0000 (Thu, 24 Nov 2005)
New Revision: 11887
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11887
Log:
reorder some tests
metze
Modified:
branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
===================================================================
--- branches/SAMBA_4_0/source/torture/nbt/winsreplication.c 2005-11-23 22:08:57 UTC (rev 11886)
+++ branches/SAMBA_4_0/source/torture/nbt/winsreplication.c 2005-11-24 09:22:38 UTC (rev 11887)
@@ -501,6 +501,27 @@
}
};
+static const struct wrepl_ip addresses_X_1_2[] = {
+ {
+ .owner = TEST_OWNER_X_ADDRESS,
+ .ip = TEST_ADDRESS_X_PREFIX".1"
+ },
+ {
+ .owner = TEST_OWNER_X_ADDRESS,
+ .ip = TEST_ADDRESS_X_PREFIX".2"
+ }
+};
+static const struct wrepl_ip addresses_X_3_4[] = {
+ {
+ .owner = TEST_OWNER_X_ADDRESS,
+ .ip = TEST_ADDRESS_X_PREFIX".3"
+ },
+ {
+ .owner = TEST_OWNER_X_ADDRESS,
+ .ip = TEST_ADDRESS_X_PREFIX".4"
+ }
+};
+
static struct test_wrepl_conflict_conn *test_create_conflict_ctx(TALLOC_CTX *mem_ctx,
const char *address)
{
@@ -3985,13 +4006,13 @@
* special group vs special group section,
*/
/*
- * sgroup,active vs. sgroup,active different addresses
- * => should be merged
+ * sgroup,active vs. sgroup,active same addresses
+ * => should be NOT replaced
*/
{
.line = __location__,
.name = _NBT_NAME("_DIFF_OWNER", 0x00, NULL),
- .comment= "A:A_3_4 vs. B:B_3_4 => C:A_3_4_B_3_4",
+ .comment= "A:A_3_4 vs. B:A_3_4",
.extra = True,
.r1 = {
.owner = &ctx->a,
@@ -4001,7 +4022,7 @@
.is_static = False,
.num_ips = ARRAY_SIZE(addresses_A_3_4),
.ips = addresses_A_3_4,
- .apply_expected = True,
+ .apply_expected = True
},
.r2 = {
.owner = &ctx->b,
@@ -4009,20 +4030,20 @@
.state = WREPL_STATE_ACTIVE,
.node = WREPL_NODE_B,
.is_static = False,
- .num_ips = ARRAY_SIZE(addresses_B_3_4),
- .ips = addresses_B_3_4,
- .sgroup_merge = True,
- .sgroup_cleanup = True,
+ .num_ips = ARRAY_SIZE(addresses_A_3_4),
+ .ips = addresses_A_3_4,
+ .apply_expected = False,
+ .sgroup_cleanup = True
}
},
/*
- * sgroup,active vs. sgroup,active same addresses
- * => should be NOT replaced
+ * sgroup,active vs. sgroup,active subset addresses, special case...
+ * => should NOT be replaced
*/
{
.line = __location__,
.name = _NBT_NAME("_DIFF_OWNER", 0x00, NULL),
- .comment= "A:A_3_4 vs. B:A_3_4",
+ .comment= "A:A_3_4_X_3_4 vs. B:A_3_4",
.extra = True,
.r1 = {
.owner = &ctx->a,
@@ -4030,9 +4051,9 @@
.state = WREPL_STATE_ACTIVE,
.node = WREPL_NODE_B,
.is_static = False,
- .num_ips = ARRAY_SIZE(addresses_A_3_4),
- .ips = addresses_A_3_4,
- .apply_expected = True
+ .num_ips = ARRAY_SIZE(addresses_A_3_4_X_3_4),
+ .ips = addresses_A_3_4_X_3_4,
+ .apply_expected = True,
},
.r2 = {
.owner = &ctx->b,
@@ -4042,8 +4063,32 @@
.is_static = False,
.num_ips = ARRAY_SIZE(addresses_A_3_4),
.ips = addresses_A_3_4,
+ .apply_expected = False,
+ }
+ },
+ {
+ .line = __location__,
+ .name = _NBT_NAME("_DIFF_OWNER", 0x00, NULL),
+ .cleanup= True,
+ .r1 = {
+ .owner = &ctx->a,
+ .type = WREPL_TYPE_SGROUP,
+ .state = WREPL_STATE_ACTIVE,
+ .node = WREPL_NODE_B,
+ .is_static = False,
+ .num_ips = 0,
+ .ips = NULL,
.apply_expected = False,
- .sgroup_cleanup = True
+ },
+ .r2 = {
+ .owner = &ctx->x,
+ .type = WREPL_TYPE_SGROUP,
+ .state = WREPL_STATE_ACTIVE,
+ .node = WREPL_NODE_B,
+ .is_static = False,
+ .num_ips = 0,
+ .ips = NULL,
+ .apply_expected = False,
}
},
/*
@@ -4140,13 +4185,44 @@
}
},
/*
+ * sgroup,active vs. sgroup,active different addresses
+ * => should be merged
+ */
+ {
+ .line = __location__,
+ .name = _NBT_NAME("_DIFF_OWNER", 0x00, NULL),
+ .comment= "A:A_3_4 vs. B:B_3_4 => C:A_3_4_B_3_4",
+ .extra = True,
+ .r1 = {
+ .owner = &ctx->a,
+ .type = WREPL_TYPE_SGROUP,
+ .state = WREPL_STATE_ACTIVE,
+ .node = WREPL_NODE_B,
+ .is_static = False,
+ .num_ips = ARRAY_SIZE(addresses_A_3_4),
+ .ips = addresses_A_3_4,
+ .apply_expected = True,
+ },
+ .r2 = {
+ .owner = &ctx->b,
+ .type = WREPL_TYPE_SGROUP,
+ .state = WREPL_STATE_ACTIVE,
+ .node = WREPL_NODE_B,
+ .is_static = False,
+ .num_ips = ARRAY_SIZE(addresses_B_3_4),
+ .ips = addresses_B_3_4,
+ .sgroup_merge = True,
+ .sgroup_cleanup = True,
+ }
+ },
+ /*
* sgroup,active vs. sgroup,active different addresses, special case...
* => should be merged
*/
{
.line = __location__,
.name = _NBT_NAME("_DIFF_OWNER", 0x00, NULL),
- .comment= "A:B_3_4_X_3_4 vs. B:A_3_4 => B:X_3_4",
+ .comment= "A:B_3_4_X_3_4 vs. B:A_3_4 => B:A_3_4_X_3_4",
.extra = True,
.r1 = {
.owner = &ctx->a,
@@ -4197,13 +4273,13 @@
}
},
/*
- * sgroup,active vs. sgroup,active subset addresses, special case...
- * => should NOT be replaced
+ * sgroup,active vs. sgroup,active different addresses, special case...
+ * => should be merged
*/
{
.line = __location__,
.name = _NBT_NAME("_DIFF_OWNER", 0x00, NULL),
- .comment= "A:A_3_4_X_3_4 vs. B:A_3_4",
+ .comment= "A:X_3_4 vs. B:A_3_4 => C:A_3_4_X_3_4",
.extra = True,
.r1 = {
.owner = &ctx->a,
@@ -4211,8 +4287,8 @@
.state = WREPL_STATE_ACTIVE,
.node = WREPL_NODE_B,
.is_static = False,
- .num_ips = ARRAY_SIZE(addresses_A_3_4_X_3_4),
- .ips = addresses_A_3_4_X_3_4,
+ .num_ips = ARRAY_SIZE(addresses_X_3_4),
+ .ips = addresses_X_3_4,
.apply_expected = True,
},
.r2 = {
@@ -4223,7 +4299,8 @@
.is_static = False,
.num_ips = ARRAY_SIZE(addresses_A_3_4),
.ips = addresses_A_3_4,
- .apply_expected = False,
+ .sgroup_merge = True,
+ .sgroup_cleanup = False
}
},
{
More information about the samba-cvs
mailing list