snipe-it/tests
Andrea Bergamasco c0c02eebd2 REST API - Refactoring of routes file, more tests added (#3345)
* Toggles the disabled state of auto_increment_prefix

To insert a prefix you had to toggle the checkbox, save the settings and reload. With this script it is immediate. Fixes #1390

* Delete asset image: made checkbox more visible

Related to #3153

* Added personal-access-token component

* Created basic API testing configuration

* First version of /components endpoind cest

* On-the-fly bearer token generation

* Completed testing of PATCH and PUT methods

* Added /components/{id}/assets route with tests

* Updated route and dataTable in view

* Completed test assertion

* Added links to assets in ComponentsAssets view

* Linked Company in AssetView page

* Fixed purchase_cost format expectation in ApiComponentsCest

* Refactored api routes file

Sorted all prefixes in alphabetical order, removed duplicate routes. For every prefix I placed first Route::resource and then any additional route in a Route::group. Expanded arrays for readability and consistency. Removed useless calls as create and edit everywhere.

* Refactored and added one more test to ApiComponentsAssetsCest

* Marked one test as incomplete, 404 response should return json

* Fixed value expectation

* Refactored getToken()

* Added API debugging routes

* Added more information to ValidationException reporting

Now the payload contains the validation errors for each invalid
attribute.

* /apitests: refactored expectations in component assertions

* Created ApiAssetsCest

* /apitests: Cleanup in Exceptions/Handler

* Reverted change to use

* Marked two tests as incomplete, looking for solutions
2017-02-23 16:32:35 -08:00
..
_data Update dump with new migration. 2016-12-29 14:06:16 -05:00
_envs Add presenters for models. (#3098) 2016-12-23 17:52:00 -08:00
_output Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
_support REST API - Refactoring of routes file, more tests added (#3345) 2017-02-23 16:32:35 -08:00
acceptance Make delete routes work. (#3077) 2016-12-19 10:42:33 -08:00
api REST API - Refactoring of routes file, more tests added (#3345) 2017-02-23 16:32:35 -08:00
functional Bugfixes based on functional tests (#3338) 2017-02-22 22:49:19 -08:00
unit Updated db column name test for various languages 2017-01-26 16:57:23 -08:00
_bootstrap.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
acceptance.suite.yml Switched configs around a little 2016-04-13 02:41:55 -07:00
api.suite.yml Components Assets view + stubbed API tests (#3325) 2017-02-21 14:26:46 -08:00
functional.suite.yml Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
TestCase.php Discussion: Moving to policies for controller based authorization (#3080) 2016-12-19 11:04:28 -08:00
TODO.testing Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
unit.suite.yml Move sanitization of input to the model attribute setters. This cleans up a lot of checks in the various controller methods and ensures data will be set in the model accurately regardless of where it's set. Add unit tests for these methods (#3102) 2016-12-26 15:17:46 -08:00