Commit graph

234 commits

Author SHA1 Message Date
Jure Grabnar
13bc664902
Merge pull request #1367 from jbargu/jg_2746_health_unit_tests
Add unit tests for status/health API endpoints
2018-11-19 13:14:38 +01:00
Luka Murn
e9c0b34662 Merge branch 'core-api' into 'master'
Conflicts:
	Gemfile
	app/services/api.rb
	config/initializers/api.rb
	config/initializers/extends.rb
	config/routes.rb
	db/schema.rb
	spec/controllers/api/api_controller_spec.rb
2018-11-14 16:59:04 +01:00
Jure Grabnar
7a320ae031 Update formating according to Hound 2018-11-12 17:51:23 +01:00
Jure Grabnar
1c08aa6a8b Add unit tests for status/health API endpoints
Closes [SCI-2746].
2018-11-12 17:17:47 +01:00
Oleksii Kriuchykhin
23ee4760ae Fix failing tests [SCI-2773] 2018-11-07 16:39:00 +01:00
Oleksii Kriuchykhin
30885e060d Merge latest core-api branch [SCI-2773] 2018-11-07 15:53:21 +01:00
Matej Zrimšek
2f6a6072e1 Fix repository ZIP export test to work with enabled workers [SCI-2646] 2018-11-07 06:14:40 +01:00
Matej Zrimšek
8fe0249f45 Fix test for repository ZIP export & return path for ZIP exports [SCI-2646] 2018-11-07 05:04:29 +01:00
Alex Kriuchykhin
b2f87561fe
Merge pull request #1335 from okriuchykhin/ok_SCI_2749
Add tests for CREATE Result endpoint [SCI-2749]
2018-10-30 09:43:45 +01:00
Alex Kriuchykhin
2f466383a5
Merge pull request #1333 from okriuchykhin/ok_SCI_2742
RESTful API for Object Querying (READ) - unit tests [SCI-2742]
2018-10-29 16:26:58 +01:00
Oleksii Kriuchykhin
04ff5870af Rename user_id to sub in JWT [SCI-2814] 2018-10-28 14:34:51 +01:00
Matej Zrimšek
4bb05040d6 Fix tests for project controller to work with changed code [SCI-2732] 2018-10-23 22:24:57 +02:00
Matej Zrimšek
17712f5142 Minor tests refactoring [SCI-2732] 2018-10-23 22:24:57 +02:00
Matej Zrimšek
98009939d1 Fix tests for project services to work with changed code [SCI-2732] 2018-10-23 22:24:57 +02:00
Matej Zrimšek
1c43077a5e Add visibility check to tests (redundant in most cases, but safer) [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
173ebdcf87 Fix some tests wich falsely passed locally; Some description refactoring [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
1be952fdbb Fix context block for ProjectsOverviewService#projects_datatable test with { filter: 'archived' } parameter 2018-10-23 19:51:50 +02:00
Matej Zrimšek
4bf1d904b7 Add project controller unit tests [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
e5129160fe Use the previous way of handling request params in rspec [SCI-2732] 2018-10-23 19:51:50 +02:00
Matej Zrimšek
d9281b66d5 Add test for sorting by column and order for ProjectsOverviewService#projects_datatable 2018-10-23 19:51:50 +02:00
Matej Zrimšek
5ea4a2ced3 Refactor ProjectsOverviewService tests to be request parameter friendly and hence more readable 2018-10-23 19:51:50 +02:00
Matej Zrimšek
b982ffe7c8 Improve & refactor #project_cards, add #projects_datatable tests for ProjectsOverviewService 2018-10-23 19:51:50 +02:00
Matej Zrimšek
2794f75215 Add ProjectsOverviewService#project_cards unit tests 2018-10-23 19:50:06 +02:00
Oleksii Kriuchykhin
b53f2c8347 Improve error messages in API [SCI-2773] 2018-10-23 17:52:48 +02:00
Oleksii Kriuchykhin
95cb6db4df Fix test [SCI-2733] 2018-10-19 10:47:55 +02:00
Oleksii Kriuchykhin
c2e36580ce Add tests for CREATE Result endpoint [SCI-2749] 2018-10-17 14:17:16 +02:00
Alex Kriuchykhin
18b1cad8a4
Merge pull request #1334 from okriuchykhin/ok_SCI_2772
Implement inventory column data type name mappings [SCI-2772]
2018-10-17 10:37:23 +02:00
Oleksii Kriuchykhin
b833ff6616 Rename MyModule serializer in tests [SCI-2742] 2018-10-16 17:45:29 +02:00
Oleksii Kriuchykhin
e4e66d3e5d Merge branch 'core-api' into ok_SCI_2742 2018-10-16 17:38:30 +02:00
Oleksii Kriuchykhin
02f536cd08 Merge latest features/export-all [SCI-2733] 2018-10-16 17:20:19 +02:00
Oleksii Kriuchykhin
ed46115b3f Implement inventory column data type name mappings [SCI-2772] 2018-10-16 15:35:02 +02:00
Oleksii Kriuchykhin
f6b039d54e Merge latest core-api branch [SCI-2765] 2018-10-16 12:07:47 +02:00
Jure Grabnar
d50f56e319 Disable/enable export proejct button
Fix filesystem saving
2018-10-16 11:01:58 +02:00
Oleksii Kriuchykhin
0db9ef44e2 Add experiment, task, result READ endpoints tests [SCI-2742] 2018-10-15 16:27:22 +02:00
Luka Murn
1093ea11f4 Merge branch 'lm-api-fixes' of https://github.com/Ducz0r/scinote-web into Ducz0r-lm-api-fixes
Conflicts:
	app/serializers/api/v1/activity_serializer.rb
	app/serializers/api/v1/inventory_column_serializer.rb
	app/serializers/api/v1/project_serializer.rb
2018-10-15 15:20:26 +02:00
Oleksii Kriuchykhin
dd17f1d5ad Add project READ endpoints [SCI-2742] 2018-10-12 17:43:36 +02:00
Luka Murn
2b7a94025e
Merge pull request #1320 from biosistemika/lm-mc-sci-2697
UPDATE Inventory item endpoint - unit tests [SCI-2697] (v2)
2018-10-11 15:20:37 +02:00
Luka Murn
028c0c6832 Remove 2 obsolete unit tests 2018-10-11 14:41:13 +02:00
Luka Murn
33b9c65c29 Fix Hound 2018-10-11 14:27:52 +02:00
Luka Murn
1e46631c02
Merge pull request #1316 from czbiohub/mc-SCI-2700
close sci-2700; add unit tests for inventory column update [SCI-2700]
2018-10-11 10:20:15 +02:00
Oleksii Kriuchykhin
af02f29fb5 Implement user state saving for projects overview [SCI-2733] 2018-10-10 16:15:31 +02:00
Oleksii Kriuchykhin
77e2371091 Add tests for inventory cell endpoints [SCI-2765] 2018-10-08 13:25:03 +02:00
Luka Murn
a8d56d32e2 Hound is love, Hound is life 2018-10-07 13:28:29 +02:00
Luka Murn
0bd3c81e39 Fix /users, /users/:id/identities endpoints 2018-10-07 13:07:27 +02:00
Luka Murn
d235dd7807 Update GET /inventory_items, GET /inventory_items/:id endpoints 2018-10-06 18:37:40 +02:00
Luka Murn
6625b4019e Update GET /inventory_columns, GET /inventory_columns/:id endpts 2018-10-06 13:47:41 +02:00
Luka Murn
7b5a65416a Update status endpoint 2018-10-06 11:47:23 +02:00
Oleksii Kriuchykhin
ed7c88f94d Improve tests [SCI-2741] 2018-10-04 12:00:50 +02:00
Oleksii Kriuchykhin
363c1e4a34 Add endpoints for managing inventory list items [SCI-2741] 2018-10-03 13:54:52 +02:00
Luka Murn
2dc09f080d Revert "Revert "Merge branch 'mc-SC-2697' of https://github.com/czbiohub/scinote-web-1 into core-api""
This reverts commit 7ef85a9b60.
2018-10-01 14:59:06 +02:00