mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
test: Update configs and revert changes during testing (#5393)
This commit is contained in:
parent
2626143fc5
commit
c3b3e02f21
@ -25,6 +25,8 @@ func TestFileTypeChange(t *testing.T) {
|
|||||||
fld := cfg.Folders()["default"]
|
fld := cfg.Folders()["default"]
|
||||||
fld.Versioning = config.VersioningConfiguration{}
|
fld.Versioning = config.VersioningConfiguration{}
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
|
os.Rename("h2/config.xml", "h2/config.xml.orig")
|
||||||
|
defer os.Rename("h2/config.xml.orig", "h2/config.xml")
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
testFileTypeChange(t)
|
testFileTypeChange(t)
|
||||||
@ -40,6 +42,8 @@ func TestFileTypeChangeSimpleVersioning(t *testing.T) {
|
|||||||
Params: map[string]string{"keep": "5"},
|
Params: map[string]string{"keep": "5"},
|
||||||
}
|
}
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
|
os.Rename("h2/config.xml", "h2/config.xml.orig")
|
||||||
|
defer os.Rename("h2/config.xml.orig", "h2/config.xml")
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
testFileTypeChange(t)
|
testFileTypeChange(t)
|
||||||
@ -54,6 +58,8 @@ func TestFileTypeChangeStaggeredVersioning(t *testing.T) {
|
|||||||
Type: "staggered",
|
Type: "staggered",
|
||||||
}
|
}
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
|
os.Rename("h2/config.xml", "h2/config.xml.orig")
|
||||||
|
defer os.Rename("h2/config.xml.orig", "h2/config.xml")
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
testFileTypeChange(t)
|
testFileTypeChange(t)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<configuration version="28">
|
<configuration version="28">
|
||||||
<folder id="default" label="" path="s1/" type="readwrite" rescanIntervalS="10" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="default" label="" path="s1/" type="sendreceive" rescanIntervalS="10" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<markerName>.stfolder</markerName>
|
<markerName>.stfolder</markerName>
|
||||||
<useLargeBlocks>true</useLargeBlocks>
|
<useLargeBlocks>true</useLargeBlocks>
|
||||||
</folder>
|
</folder>
|
||||||
<folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-1/" type="readwrite" rescanIntervalS="10" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-1/" type="sendreceive" rescanIntervalS="10" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
@ -49,6 +49,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" name="s1" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" name="s1" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22001</address>
|
<address>tcp://127.0.0.1:22001</address>
|
||||||
@ -56,6 +57,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22002</address>
|
<address>tcp://127.0.0.1:22002</address>
|
||||||
@ -63,6 +65,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22003</address>
|
<address>tcp://127.0.0.1:22003</address>
|
||||||
@ -70,6 +73,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="7PBCTLL-JJRYBSA-MOWZRKL-MSDMN4N-4US4OMX-SYEXUS4-HSBGNRY-CZXRXAT" name="s4" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="7PBCTLL-JJRYBSA-MOWZRKL-MSDMN4N-4US4OMX-SYEXUS4-HSBGNRY-CZXRXAT" name="s4" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22004</address>
|
<address>tcp://127.0.0.1:22004</address>
|
||||||
@ -77,6 +81,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<gui enabled="true" tls="false" debugging="true">
|
<gui enabled="true" tls="false" debugging="true">
|
||||||
<address>127.0.0.1:8081</address>
|
<address>127.0.0.1:8081</address>
|
||||||
@ -85,6 +90,7 @@
|
|||||||
<apikey>abc123</apikey>
|
<apikey>abc123</apikey>
|
||||||
<theme>default</theme>
|
<theme>default</theme>
|
||||||
</gui>
|
</gui>
|
||||||
|
<ldap></ldap>
|
||||||
<options>
|
<options>
|
||||||
<listenAddress>tcp://127.0.0.1:22001</listenAddress>
|
<listenAddress>tcp://127.0.0.1:22001</listenAddress>
|
||||||
<globalAnnounceServer>default</globalAnnounceServer>
|
<globalAnnounceServer>default</globalAnnounceServer>
|
||||||
@ -122,6 +128,7 @@
|
|||||||
<trafficClass>0</trafficClass>
|
<trafficClass>0</trafficClass>
|
||||||
<defaultFolderPath>~</defaultFolderPath>
|
<defaultFolderPath>~</defaultFolderPath>
|
||||||
<setLowPriority>true</setLowPriority>
|
<setLowPriority>true</setLowPriority>
|
||||||
|
<maxConcurrentScans>0</maxConcurrentScans>
|
||||||
<minHomeDiskFreePct>0</minHomeDiskFreePct>
|
<minHomeDiskFreePct>0</minHomeDiskFreePct>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<configuration version="28">
|
<configuration version="28">
|
||||||
<folder id="default" label="" path="s2" type="readwrite" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="default" label="" path="s2" type="sendreceive" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<markerName>.stfolder</markerName>
|
<markerName>.stfolder</markerName>
|
||||||
<useLargeBlocks>true</useLargeBlocks>
|
<useLargeBlocks>true</useLargeBlocks>
|
||||||
</folder>
|
</folder>
|
||||||
<folder id="s23" label="" path="s23-2" type="readwrite" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="s23" label="" path="s23-2" type="sendreceive" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" introducedBy=""></device>
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" introducedBy=""></device>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<markerName>.stfolder</markerName>
|
<markerName>.stfolder</markerName>
|
||||||
<useLargeBlocks>true</useLargeBlocks>
|
<useLargeBlocks>true</useLargeBlocks>
|
||||||
</folder>
|
</folder>
|
||||||
<folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-2" type="readwrite" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-2" type="sendreceive" rescanIntervalS="15" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
@ -69,6 +69,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22002</address>
|
<address>tcp://127.0.0.1:22002</address>
|
||||||
@ -76,6 +77,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22003</address>
|
<address>tcp://127.0.0.1:22003</address>
|
||||||
@ -83,12 +85,14 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<gui enabled="true" tls="false" debugging="true">
|
<gui enabled="true" tls="false" debugging="true">
|
||||||
<address>127.0.0.1:8082</address>
|
<address>127.0.0.1:8082</address>
|
||||||
<apikey>abc123</apikey>
|
<apikey>abc123</apikey>
|
||||||
<theme>default</theme>
|
<theme>default</theme>
|
||||||
</gui>
|
</gui>
|
||||||
|
<ldap></ldap>
|
||||||
<options>
|
<options>
|
||||||
<listenAddress>dynamic+https://relays.syncthing.net/endpoint</listenAddress>
|
<listenAddress>dynamic+https://relays.syncthing.net/endpoint</listenAddress>
|
||||||
<listenAddress>tcp://127.0.0.1:22002</listenAddress>
|
<listenAddress>tcp://127.0.0.1:22002</listenAddress>
|
||||||
@ -127,6 +131,7 @@
|
|||||||
<trafficClass>0</trafficClass>
|
<trafficClass>0</trafficClass>
|
||||||
<defaultFolderPath>~</defaultFolderPath>
|
<defaultFolderPath>~</defaultFolderPath>
|
||||||
<setLowPriority>true</setLowPriority>
|
<setLowPriority>true</setLowPriority>
|
||||||
|
<maxConcurrentScans>0</maxConcurrentScans>
|
||||||
<minHomeDiskFreePct>0</minHomeDiskFreePct>
|
<minHomeDiskFreePct>0</minHomeDiskFreePct>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<configuration version="28">
|
<configuration version="28">
|
||||||
<folder id="default" label="" path="s3" type="readwrite" rescanIntervalS="20" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="default" label="" path="s3" type="sendreceive" rescanIntervalS="20" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<markerName>.stfolder</markerName>
|
<markerName>.stfolder</markerName>
|
||||||
<useLargeBlocks>true</useLargeBlocks>
|
<useLargeBlocks>true</useLargeBlocks>
|
||||||
</folder>
|
</folder>
|
||||||
<folder id="s23" label="" path="s23-3" type="readwrite" rescanIntervalS="20" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="s23" label="" path="s23-3" type="sendreceive" rescanIntervalS="20" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
|
||||||
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" introducedBy=""></device>
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" introducedBy=""></device>
|
||||||
@ -50,6 +50,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22002</address>
|
<address>tcp://127.0.0.1:22002</address>
|
||||||
@ -57,6 +58,7 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://127.0.0.1:22003</address>
|
<address>tcp://127.0.0.1:22003</address>
|
||||||
@ -64,12 +66,14 @@
|
|||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
<autoAcceptFolders>false</autoAcceptFolders>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>0</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
|
<maxRequestKiB>0</maxRequestKiB>
|
||||||
</device>
|
</device>
|
||||||
<gui enabled="true" tls="false" debugging="true">
|
<gui enabled="true" tls="false" debugging="true">
|
||||||
<address>127.0.0.1:8083</address>
|
<address>127.0.0.1:8083</address>
|
||||||
<apikey>abc123</apikey>
|
<apikey>abc123</apikey>
|
||||||
<theme>default</theme>
|
<theme>default</theme>
|
||||||
</gui>
|
</gui>
|
||||||
|
<ldap></ldap>
|
||||||
<options>
|
<options>
|
||||||
<listenAddress>dynamic+https://relays.syncthing.net/endpoint</listenAddress>
|
<listenAddress>dynamic+https://relays.syncthing.net/endpoint</listenAddress>
|
||||||
<listenAddress>tcp://127.0.0.1:22003</listenAddress>
|
<listenAddress>tcp://127.0.0.1:22003</listenAddress>
|
||||||
@ -108,6 +112,7 @@
|
|||||||
<trafficClass>0</trafficClass>
|
<trafficClass>0</trafficClass>
|
||||||
<defaultFolderPath>~</defaultFolderPath>
|
<defaultFolderPath>~</defaultFolderPath>
|
||||||
<setLowPriority>true</setLowPriority>
|
<setLowPriority>true</setLowPriority>
|
||||||
|
<maxConcurrentScans>0</maxConcurrentScans>
|
||||||
<minHomeDiskFreePct>0</minHomeDiskFreePct>
|
<minHomeDiskFreePct>0</minHomeDiskFreePct>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -28,8 +28,8 @@ func TestOverride(t *testing.T) {
|
|||||||
fld := cfg.Folders()["default"]
|
fld := cfg.Folders()["default"]
|
||||||
fld.Type = config.FolderTypeSendOnly
|
fld.Type = config.FolderTypeSendOnly
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
os.Rename("h1/config.xml", "h1/config.xml.orig")
|
t.Log(os.Rename("h1/config.xml", "h1/config.xml.orig"))
|
||||||
defer os.Rename("h1/config.xml.orig", "h1/config.xml")
|
defer t.Log(os.Rename("h1/config.xml.orig", "h1/config.xml"))
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
log.Println("Cleaning...")
|
log.Println("Cleaning...")
|
||||||
|
@ -29,6 +29,8 @@ func TestSymlinks(t *testing.T) {
|
|||||||
fld := cfg.Folders()["default"]
|
fld := cfg.Folders()["default"]
|
||||||
fld.Versioning = config.VersioningConfiguration{}
|
fld.Versioning = config.VersioningConfiguration{}
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
|
os.Rename("h2/config.xml", "h2/config.xml.orig")
|
||||||
|
defer os.Rename("h2/config.xml.orig", "h2/config.xml")
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
testSymlinks(t)
|
testSymlinks(t)
|
||||||
@ -48,6 +50,8 @@ func TestSymlinksSimpleVersioning(t *testing.T) {
|
|||||||
Params: map[string]string{"keep": "5"},
|
Params: map[string]string{"keep": "5"},
|
||||||
}
|
}
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
|
os.Rename("h2/config.xml", "h2/config.xml.orig")
|
||||||
|
defer os.Rename("h2/config.xml.orig", "h2/config.xml")
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
testSymlinks(t)
|
testSymlinks(t)
|
||||||
@ -66,6 +70,8 @@ func TestSymlinksStaggeredVersioning(t *testing.T) {
|
|||||||
Type: "staggered",
|
Type: "staggered",
|
||||||
}
|
}
|
||||||
cfg.SetFolder(fld)
|
cfg.SetFolder(fld)
|
||||||
|
os.Rename("h2/config.xml", "h2/config.xml.orig")
|
||||||
|
defer os.Rename("h2/config.xml.orig", "h2/config.xml")
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
|
|
||||||
testSymlinks(t)
|
testSymlinks(t)
|
||||||
|
Loading…
Reference in New Issue
Block a user