13
config *persistencespb.NamespaceConfig,
14
targetCluster string,
16
>
detail := &persistencespb.NamespaceDetail{
17
>
Info: ensureInfo(info),
18
>
Config: ensureConfig(config),
19
>
ReplicationConfig: &persistencespb.NamespaceReplicationConfig{
20
>
ActiveClusterName: targetCluster,
21
>
Clusters: []string{targetCluster},
22
>
},
23
>
FailoverVersion: common.EmptyVersion,
24
>
}
25
>
factory := NewDefaultReplicationResolverFactory()
26
>
resolver := factory(detail)
27
>
ns, _ := FromPersistentState(detail, resolver, WithGlobalFlag(false))
28
>
return ns
29
>
}
30
31
// NewNamespaceForTest returns an entry with test data