Skip to content

Commit

Permalink
Fix ServerRateLimitsSyncServiceTest.php test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Oct 12, 2024
1 parent 8fe890a commit 80672e2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ This file is a running track of new features and fixes to each version of the pa

This project follows [Semantic Versioning](http://semver.org) guidelines.

## v4.2.2

### Changes

#### From v4.2.2-rc.2

- Fix US keyboard characters validation #80
- Fixed a visual bug on the bandwidth usage card where the text wasn't centered.

#### From v4.2.2-rc.1

- Fix special character support in environment file.
- Added checks in server creation to use unique VMID. #78
- Add error messages instead of generic server error messages. #49
- Scope route model binding by default to prevent unauthorized access of related resources.
- Removed a lot of dead code.
- Added more tests (getting closer to full release! 😁😩).

#### From v4.2.1-rc.1

- Potential fix for disk resize timeout?

## v4.2.2-rc.2

### Changes
Expand Down
7 changes: 7 additions & 0 deletions tests/Unit/Services/Nodes/ServerRateLimitsSyncServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
it('can rate limit servers if over limit', function () {
Http::fake([
'/api2/json/nodes/*/qemu/*/config' => Http::sequence([
Http::response([
file_get_contents(
base_path(
'tests/Fixtures/Repositories/Server/GetServerConfigData.json',
),
),
], 200),
Http::response([
file_get_contents(
base_path(
Expand Down

0 comments on commit 80672e2

Please sign in to comment.