Commit graph

6325 commits

Author SHA1 Message Date
Maciej Szlosarczyk
ad8dfcc28f
Make authentication errors more consistent with other errors 2018-08-07 14:52:33 +03:00
Maciej Szlosarczyk
c1ea79615f
Make API return errors array 2018-07-30 11:07:44 +03:00
Maciej Szlosarczyk
ed1afb78f6
Make tests conform with #924 2018-07-30 10:30:57 +03:00
Maciej Szlosarczyk
3adb85001a
Insert space into configuration example 2018-07-26 10:39:58 +03:00
Maciej Szlosarczyk
82d5349c02
Merge branch 'master' into registry-918 2018-07-24 16:57:26 +03:00
Maciej Szlosarczyk
aac76b333c
Revert "Use inflector rule to acronym Api to API"
This reverts commit 06f5eb10d4.
2018-07-24 12:53:51 +03:00
Maciej Szlosarczyk
90b2455032
Fix codeclimate issues 2018-07-24 12:29:25 +03:00
Maciej Szlosarczyk
06f5eb10d4
Use inflector rule to acronym Api to API 2018-07-24 12:02:58 +03:00
Maciej Szlosarczyk
42004f933f
Add IP block on authentication via EID
Also, correct mistakenly used 403 error code.
Update aplication-example.yml to include new functionality.
2018-07-24 11:33:51 +03:00
Maciej Szlosarczyk
8f234a5852
Create base controller class 2018-07-23 16:23:56 +03:00
Maciej Szlosarczyk
65676ae637
Rename private method 2018-07-23 15:00:37 +03:00
Maciej Szlosarczyk
f92ece5467
Refactor common part of the find_or_create_by_x into a private method 2018-07-23 14:29:16 +03:00
Maciej Szlosarczyk
75119aff2e
Add registrant test class 2018-07-23 13:50:48 +03:00
Maciej Szlosarczyk
35c3f0a5bf
Change Base64 encoding to be url_safe, add crude implementation of a Controller 2018-07-20 17:29:13 +03:00
Maciej Szlosarczyk
dc8230dcc2
Create AuthTokenCreator and AuthTokenDecryptor classes 2018-07-20 15:21:10 +03:00
Timo Võhmar
311aa503b3
Merge pull request #920 from internetee/fix-typo-in-assertions-filename
Fix typo in assertions filename (assetions -> assertions)
2018-07-20 12:25:29 +03:00
Maciej Szlosarczyk
dad57ba528
Implement the basic interface for the Authentication endpoint
* Handle errors as 422
* Require parameters through strong_parameters
* Use a custom rescue_from
2018-07-19 16:20:58 +03:00
Maciej Szlosarczyk
e6d3895b75
Fix typo in assertions filename 2018-07-19 10:40:42 +03:00
Maciej Szlosarczyk
1c6b838b2b
Add auth-token class 2018-07-19 10:31:31 +03:00
Maciej Szlosarczyk
d67e777ea8
Create a Registrant auth controller 2018-07-18 16:24:55 +03:00
Timo Võhmar
9ff27beba8
Merge pull request #915 from internetee/regenerate-db-structure
Regenerate structure.sql
2018-07-17 15:19:34 +03:00
Timo Võhmar
9de6c62560
Merge pull request #912 from internetee/update-grape-gem
Update "grape" gem
2018-07-16 11:42:53 +03:00
Artur Beljajev
fe530f4c9f Remove "hashie-forbidden_attributes" gem
Not required since Grape v1.0.0
https://github.com/ruby-grape/grape/pull/1714
2018-07-14 15:26:48 +03:00
Artur Beljajev
d09eac3fc3 Update "grape" gem 2018-07-14 15:24:01 +03:00
Artur Beljajev
5b5ed97b30 Regenerate structure.sql
Starting from version 9.4.17, pg_dump writes schemas explicitly

https://bucardo.org/postgres_all_versions.html#version_9.4.17
2018-07-13 21:06:28 +03:00
Timo Võhmar
2510159c70
Merge pull request #908 from internetee/update-capybara-gem
Update "capybara" gem
2018-07-12 14:56:22 +03:00
Artur Beljajev
11d645bb51 Update "capybara" gem 2018-07-12 13:48:37 +03:00
Timo Võhmar
00911b0efb
Merge pull request #907 from internetee/update-webmock-gem
Update "webmock" gem
2018-07-12 12:50:01 +03:00
Timo Võhmar
116a9e0ab7
Merge pull request #906 from internetee/Changelog_update_180712
Changelog update 180712
2018-07-12 12:46:08 +03:00
Artur Beljajev
ceeed8d23f Update "webmock" gem 2018-07-11 20:24:55 +03:00
Timo Võhmar
9bfc5d6be8
Changelog update 180712 2018-07-11 15:44:41 +03:00
Timo Võhmar
bb98825f76
Merge pull request #904 from internetee/registry-900
Add Javascript testing base class
2018-07-11 15:34:21 +03:00
Maciej Szlosarczyk
3acd605b90
Change inheritance structure to match the one from Rails 5 more
In the future, ApplicationSystemTestCase should inherit from
ActionDispatch::SystemTestCase and JavaScriptApplicationSystemTestCase
could possibly be removed if the `driven_by` method works as it is
promised in Rails documentation:

http://api.rubyonrails.org/v5.2/classes/ActionDispatch/SystemTestCase.html

Consider introducing another class between
ActionDispatch::IntegrationTest and other items inheriting from it, as
the general Rails practice seems to have `ApplicationIntegrationTest`,
as we do have `ApplicationRecord` and `ApplicationController`.
2018-07-10 17:10:26 +03:00
Timo Võhmar
2a5fa4e411
Merge pull request #905 from internetee/Changelog_update_180710
Changelog update 180710
2018-07-09 16:31:23 +03:00
Maciej Szlosarczyk
0fa30591a8
Add mocked challenge_id to be displayed inside flash message 2018-07-09 16:10:40 +03:00
Timo Võhmar
f1c7d9415d
Changelog update 180710 2018-07-09 14:58:49 +03:00
Maciej Szlosarczyk
2bcedd0fac
Move transactional fixtures to base class 2018-07-09 12:45:48 +03:00
Maciej Szlosarczyk
c1dd115b28
Add chromedriver to travis configuration 2018-07-09 11:06:31 +03:00
Maciej Szlosarczyk
1c09901466
Move puma to development, test group 2018-07-09 10:45:26 +03:00
Maciej Szlosarczyk
f5422d7058
Add chrome addon to travis CI 2018-07-09 10:37:46 +03:00
Maciej Szlosarczyk
0e86214d1c
Rewrite test to find the flash message 2018-07-09 10:35:57 +03:00
Maciej Szlosarczyk
e1f77c1d03
Add database cleaner to tests that cannot run in a transaction 2018-07-09 10:16:45 +03:00
Maciej Szlosarczyk
b164a58523
Add new base test class definition 2018-07-09 10:16:44 +03:00
Maciej Szlosarczyk
6e820592bc
Add selenium-webdriver gem 2018-07-09 10:16:44 +03:00
Maciej Szlosarczyk
f327bdf6b6
Rewrite mobile id spec to a test 2018-07-09 10:16:44 +03:00
Maciej Szlosarczyk
f757be4f77
Remove poltergeist gem, which is unused 2018-07-09 10:16:44 +03:00
Timo Võhmar
95d3269698
Merge pull request #903 from internetee/registry-835
Return affected domains from NS bulk change
2018-07-06 14:35:18 +03:00
Maciej Szlosarczyk
4d5dd1dae7
Fix rubocop issues 2018-07-05 17:58:22 +03:00
Maciej Szlosarczyk
6fb1e44cca
Move affected domains to the top of the hash, update integration test 2018-07-05 17:53:03 +03:00
Maciej Szlosarczyk
3e81366cfc
Add affected domain parameter to REST API response 2018-07-05 17:24:32 +03:00