DaneEveritt
e313dff674
Massively simplify API binding logic
...
Changes the API internals to use normal Laravel binding which automatically supports nested-models and can determine their relationships. This removes a lot of confusingly complex internal logic and replaces it with standard Laravel code.
This also removes a deprecated "getModel" method and fully replaces it with a "parameter" method that does stricter type-checking.
2022-05-22 14:10:01 -04:00
DaneEveritt
d4bf6bd46a
Add test coverage and fix permissions mistake
2022-05-15 17:30:57 -04:00
DaneEveritt
cca0010a00
Update egg import/update logic to all use the same pathwaus
2022-05-15 14:40:19 -04:00
DaneEveritt
6554164252
Add test coverage for the SSH key endpoints
2022-05-14 18:08:48 -04:00
DaneEveritt
5705d7dbdd
Run php-cs-fixer
2022-05-14 16:03:50 -04:00
DaneEveritt
e88d24e0db
Don't allow allocations to be deleted by users if no limit is defined; closes #3703
2022-05-07 15:05:28 -04:00
DaneEveritt
34ffaebd3e
Run cs-fix, ensure we only install dependency versions supporting 7.4+
2022-05-04 19:01:29 -04:00
Paul Vogel
dcbc1360a9
Improve test coverage for LocationController ( #3779 )
...
By adding tests for create, update, delete
2021-12-04 10:50:36 -08:00
Matthew Penner
cc31a0a6d0
tests(integration): don't expect non-required fields
2021-11-15 11:29:22 -07:00
Dane Everitt
2b3303c46b
Fix changing a user password to not incorrectly handle logging out old sessions; closes #3531
2021-08-15 17:37:12 -07:00
Dane Everitt
25d9ba4779
Run php-cs-fixer
2021-08-15 17:20:36 -07:00
Dane Everitt
22f1341fea
reformat
2021-08-07 09:19:21 -07:00
Dane Everitt
75e0a862e7
Add another sanity check for websocket permissions
2021-08-07 09:16:29 -07:00
Charles Morgan
91ea0a4f41
Update core eggs to new docker yolk images ( #3382 )
2021-07-17 10:02:00 -07:00
Dane Everitt
d3e3b1db38
Test that a deleted backup makes an audit log entry
2021-07-11 12:15:39 -07:00
Charles Morgan
76ac1998cf
Don't allow backups to be made via schedules if limit = 0 ( #3323 )
2021-05-16 09:47:36 -07:00
Julien Tant
b10f6184e0
remove the test preventing disabled schedule to be manually executed
2021-04-24 18:30:48 -07:00
Dane Everitt
f5ca391400
Get tests back in working order
2021-04-17 12:02:08 -07:00
Dane Everitt
8c7d785c9e
Ensure a created_at value is set on recovery tokens; closes #3163
2021-03-21 10:43:01 -07:00
Dane Everitt
be26921fcc
Merge branch 'develop' into dane/restore-backups
2021-01-30 10:10:29 -08:00
Dane Everitt
5515871b2f
Turns out I hate that huge space formatting, disable that mess
2021-01-27 20:52:11 -08:00
Dane Everitt
663143de0b
Merge branch 'develop' into dane/restore-backups
2021-01-25 19:16:40 -08:00
Dane Everitt
c449ca5155
Use more standardized phpcs
2021-01-23 12:33:34 -08:00
Dane Everitt
a043071e3c
Update to Laravel 8
...
Co-authored-by: Matthew Penner <me@matthewp.io>
2021-01-23 12:12:54 -08:00
Dane Everitt
aab353d91e
Merge pull request #3011 from AreYouRlyScared/addcronmonth
...
Adds months for schedules
2021-01-20 20:10:26 -08:00
Dane Everitt
63f945bc3a
Add test coverage to cehck the authorization state of client resources
2021-01-19 21:20:55 -08:00
Dane Everitt
eecd550c48
Make debugging test failures easier
2021-01-19 20:11:00 -08:00
Dane Everitt
a75a347d65
Remove suspended & installing fields, replace with single status field
2021-01-17 15:51:56 -08:00
Charles Morgan
ffeedf17e4
Adds months for schedules
...
Adds month variable for schedules
2021-01-16 22:07:39 -05:00
Dane Everitt
45a3533f1e
Update WebsocketControllerTest.php
2020-12-24 10:23:04 -08:00
Dane Everitt
ef787bbd78
Update DeleteSubuserTest.php
2020-12-06 15:26:20 -08:00
Dane Everitt
7ebe04fb91
Don't allow blank passwords on the password change endpoint; closes #2750
2020-11-29 13:28:46 -08:00
Dane Everitt
c20d53bb17
Always return the primary allocation for a server, even without the allocation permissions
2020-11-07 09:57:53 -08:00
Dane Everitt
f99ac0ecde
Fix some failing test cases
2020-11-06 22:33:39 -08:00
Dane Everitt
d493685518
Add test coverage for allocation assignment endpoint
2020-10-31 21:57:27 -07:00
Dane Everitt
73b795faba
Correctly reset a schedule if there is an exception during the run stage; closes #2550
2020-10-26 20:54:15 -07:00
Dane Everitt
65d04d0c05
Correctly handle schedule task deletion and avoid errors; closes #2534
2020-10-22 20:54:58 -07:00
Dane Everitt
cd3572730b
Add test coverage to ensure filters don't unexpectedly get broken
2020-10-15 21:52:26 -07:00
Dane Everitt
40d44598da
Add test coverage for change to endpoint
2020-10-15 21:32:49 -07:00
Dane Everitt
e7c64bc60e
Add test coverage for schedule execution
2020-10-14 21:06:27 -07:00
Dane Everitt
1f7fe093ae
Correctly validate description for API keys to match model expectations; closes #2457
2020-10-10 17:15:30 -07:00
Dane Everitt
d8228f2da8
Allow passing empty values through for variables, covers with test, closes #2433
2020-10-10 16:45:24 -07:00
Dane Everitt
d087bebc93
Add some additional test coverage and clean up modification service and suspension service
2020-10-07 21:56:44 -07:00
Dane Everitt
2d01c7b988
Reset is_processing state of a schedule when toggling active/inactive; closes #2425
2020-10-03 19:47:52 -07:00
Dane Everitt
f31a6d3967
Fix parameter bindings for client API routes; closes pterodactyl/panel#2359
2020-09-27 10:39:18 -07:00
Dane Everitt
47697e07cf
Add test coverage for creating a subuser
2020-09-26 17:25:14 -07:00
Dane Everitt
12fe3f1a4e
Fix failing integration tests
2020-09-13 12:02:39 -07:00
Dane Everitt
3c7ffaaadb
Remove all references of packs from the Panel
2020-09-13 11:13:37 -07:00
Dane Everitt
90ba76c237
Return integration tests to passing state
2020-08-27 21:22:05 -07:00
Dane Everitt
1e19e02398
Fix integration tests to properly account for the rule position in the API
2020-08-27 21:19:01 -07:00