[verified] Harden Etsy MCP validation and scheduled token refresh
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 38s

This commit is contained in:
2026-11-07 21:54:33 +00:00
parent 960189d14b
commit c8c5822166
13 changed files with 455 additions and 89 deletions
+18 -1
View File
@@ -67,7 +67,24 @@ class SchedulerTest extends TestCase
$this->assertNotNull($sync);
$this->assertNotNull($tokenRefresh);
$this->assertSame('*/15 * * * *', $sync->expression);
$this->assertSame('*/45 * * * *', $tokenRefresh->expression);
$this->assertSame('*/5 * * * *', $tokenRefresh->expression);
}
public function test_etsy_stale_overlap_locks_expire_within_five_minutes(): void
{
$this->freezeTime();
$events = collect(app(Schedule::class)->events())
->filter(fn ($event): bool => str_contains((string) $event->command, 'etsy:'));
foreach ($events as $event) {
$this->assertTrue($event->mutex->create($event));
$this->assertTrue($event->mutex->exists($event));
}
$this->travel(6)->minutes();
foreach ($events as $event) {
$this->assertFalse($event->mutex->exists($event));
}
}
public function test_changing_a_stored_frequency_changes_what_gets_scheduled(): void