You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TestUseSystemMetadataCollection returns true if Sync Gateway should use the system metadata collection in tests. Default: DefaultTestUseSystemMetadataCollection
Copy file name to clipboardExpand all lines: rest/utilities_testing.go
+34-27Lines changed: 34 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -51,33 +51,34 @@ import (
51
51
52
52
// RestTesterConfig represents configuration for sync gateway
53
53
typeRestTesterConfigstruct {
54
-
GuestEnabledbool// If this is true, Admin Party is in full effect
55
-
SyncFnstring// put the sync() function source in here (optional)
56
-
ImportFilterstring// put the import filter function source in here (optional)
57
-
DatabaseConfig*DatabaseConfig// Supports additional config options. BucketConfig, Name, Sync, Unsupported will be ignored (overridden)
58
-
MutateStartupConfigfunc(config*StartupConfig) // Function to mutate the startup configuration before the server context gets created. This overrides options the RT sets.
59
-
InitSyncSequint64// If specified, initializes _sync:seq on bucket creation. Not supported when running against walrus
60
-
AllowConflictsbool// Enable conflicts mode. By default, conflicts will not allowed
61
-
EnableUserQueriesbool// Enable the feature-flag for user N1QL/etc queries
62
-
CustomTestBucket*base.TestBucket// If set, use this bucket instead of requesting a new one.
63
-
LeakyBucketConfig*base.LeakyBucketConfig// Set to create and use a leaky bucket on the RT and DB. A test bucket cannot be passed in if using this option.
64
-
adminInterfacestring// adminInterface overrides the default admin interface.
65
-
SgReplicateEnabledbool// SgReplicateManager disabled by default for RestTester
66
-
AutoImport*bool
67
-
HideProductInfobool
68
-
AdminInterfaceAuthenticationbool
69
-
metricsInterfaceAuthenticationbool
70
-
enableAdminAuthPermissionsCheckbool
71
-
useTLSServerbool// If true, TLS will be required for communications with CBS. Default: false
72
-
PersistentConfigbool
73
-
GroupID*string
74
-
serverlessbool// Runs SG in serverless mode. Must be used in conjunction with persistent config
75
-
collectionConfigcollectionConfiguration
76
-
numCollectionsint
77
-
nodeClusterCompatVersion*base.ClusterCompatVersion// alternate cluster compat version this node identifies as. Defaults to base.NodeClusterCompatVersion.
78
-
allowDbConfigEnvVars*bool
79
-
maxConcurrentRevs*int
80
-
UseXattrConfigbool
54
+
GuestEnabledbool// If this is true, Admin Party is in full effect
55
+
SyncFnstring// put the sync() function source in here (optional)
56
+
ImportFilterstring// put the import filter function source in here (optional)
57
+
DatabaseConfig*DatabaseConfig// Supports additional config options. BucketConfig, Name, Sync, Unsupported will be ignored (overridden)
58
+
MutateStartupConfigfunc(config*StartupConfig) // Function to mutate the startup configuration before the server context gets created. This overrides options the RT sets.
59
+
InitSyncSequint64// If specified, initializes _sync:seq on bucket creation. Not supported when running against walrus
60
+
AllowConflictsbool// Enable conflicts mode. By default, conflicts will not allowed
61
+
EnableUserQueriesbool// Enable the feature-flag for user N1QL/etc queries
62
+
CustomTestBucket*base.TestBucket// If set, use this bucket instead of requesting a new one.
63
+
LeakyBucketConfig*base.LeakyBucketConfig// Set to create and use a leaky bucket on the RT and DB. A test bucket cannot be passed in if using this option.
64
+
adminInterfacestring// adminInterface overrides the default admin interface.
65
+
SgReplicateEnabledbool// SgReplicateManager disabled by default for RestTester
66
+
AutoImport*bool
67
+
HideProductInfobool
68
+
AdminInterfaceAuthenticationbool
69
+
metricsInterfaceAuthenticationbool
70
+
enableAdminAuthPermissionsCheckbool
71
+
useTLSServerbool// If true, TLS will be required for communications with CBS. Default: false
72
+
PersistentConfigbool
73
+
GroupID*string
74
+
serverlessbool// Runs SG in serverless mode. Must be used in conjunction with persistent config
75
+
collectionConfigcollectionConfiguration
76
+
numCollectionsint
77
+
nodeClusterCompatVersion*base.ClusterCompatVersion// alternate cluster compat version this node identifies as. Defaults to base.NodeClusterCompatVersion.
78
+
allowDbConfigEnvVars*bool
79
+
maxConcurrentRevs*int
80
+
UseXattrConfigbool
81
+
UseSystemScopeMetadataCollection*bool
81
82
}
82
83
83
84
typecollectionConfigurationuint8
@@ -274,6 +275,12 @@ func (rt *RestTester) Bucket() base.Bucket {
0 commit comments