mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-04 23:59:34 +08:00
Fix ServerRateLimitsSyncServiceTest.php test
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user