Add link labyrinth, static robots.txt and robots bait paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b7027e2a72
commit
a25072e6fb
29 files changed
+774
-34
No files matched your search
@@ -89,7 +89,7 @@ public sealed class SettingsOverrideTests : IDisposable
|
||||
var store = host.Services.GetRequiredService<RuntimeSettingsStore>();
|
||||
string[] holdKeys = [.. SettingKeys.HoldMethod];
|
||||
|
||||
await store.SaveAsync(new HoldMethodSettings(DripContent.Text, TimeSpan.FromMilliseconds(200), TimeSpan.FromSeconds(2), 8, 16, 256, false, TimeSpan.FromMinutes(5)));
|
||||
await store.SaveAsync(new HoldMethodSettings(DripContent.Text, TimeSpan.FromMilliseconds(200), TimeSpan.FromSeconds(2), 8, 16, 256, false, 0, "/trap-a/", TimeSpan.FromMinutes(5)));
|
||||
await store.SaveAsync(new RuntimeSettings(50, 4, 90, true));
|
||||
|
||||
drip.CurrentValue.Content.ShouldBe(DripContent.Text);
|
||||
@@ -97,11 +97,17 @@ public sealed class SettingsOverrideTests : IDisposable
|
||||
drip.CurrentValue.MaxChunkSize.ShouldBe(16);
|
||||
drip.CurrentValue.HeadStartSize.ShouldBe(256);
|
||||
drip.CurrentValue.MatchPath.ShouldBeFalse();
|
||||
drip.CurrentValue.LinkSpacing.ShouldBe(0);
|
||||
drip.CurrentValue.BaitPaths.ShouldBe("/trap-a/");
|
||||
core.CurrentValue.MaxHoldDuration.ShouldBe(TimeSpan.FromMinutes(5));
|
||||
core.CurrentValue.MaxConnections.ShouldBe(50);
|
||||
(await store.HasOverridesAsync(holdKeys)).ShouldBeTrue();
|
||||
|
||||
await store.SaveAsync(new HoldMethodSettings(DripContent.Text, TimeSpan.FromMilliseconds(200), TimeSpan.FromSeconds(2), 8, 16, 256, false, 0, "", TimeSpan.FromMinutes(5)));
|
||||
drip.CurrentValue.BaitPaths.ShouldBe("");
|
||||
|
||||
await store.ResetAsync(holdKeys);
|
||||
drip.CurrentValue.BaitPaths.ShouldBe(BaitPaths.Default);
|
||||
|
||||
drip.CurrentValue.Content.ShouldBe(DripContent.Html);
|
||||
drip.CurrentValue.MinDelay.ShouldBe(TimeSpan.FromMilliseconds(50));
|
||||
|
||||
Reference in new issue
Block a user