Fix ServerRateLimitsSyncServiceTest.php test

This commit is contained in:
Eric Wang
2024-10-12 12:54:38 -04:00
parent 27e9e821b6
commit 8fe890a5e1

View File

@@ -6,14 +6,16 @@ use Illuminate\Support\Facades\Http;
it('can rate limit servers if over limit', function () {
Http::fake([
'/api2/json/nodes/*/qemu/*/config' => Http::response([
file_get_contents(
base_path(
'tests/Fixtures/Repositories/Server/GetServerConfigData.json',
'/api2/json/nodes/*/qemu/*/config' => Http::sequence([
Http::response([
file_get_contents(
base_path(
'tests/Fixtures/Repositories/Server/GetServerConfigData.json',
),
),
),
], 200),
'*' => Http::response(['data' => 'dummy-upid'], 200),
], 200),
Http::response(['data' => 'dummy-upid'], 200)
]),
]);
[$_, $_, $node, $server] = createServerModel();