Commit graph

417 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
3673c69319
Add Registrant/Contacts endpoint 2018-08-01 14:57:41 +03:00
Maciej Szlosarczyk
5c39cb6917
Merge branch 'registry-918' into registry-922 2018-07-31 15:29:36 +03:00
Maciej Szlosarczyk
c476680a91
Add pagination to index 2018-07-31 15:14:21 +03:00
Maciej Szlosarczyk
10d42a0d74
Add domain index action (without pagination yet) 2018-07-30 15:09:48 +03:00
Maciej Szlosarczyk
13562aeb06
Move file to another folder 2018-07-30 13:56:54 +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
Artur Beljajev
cc36e3ccea Forbid cancelling force delete procedure when a domain is discarded 2018-07-29 20:42:29 +03:00
Artur Beljajev
4b30234c86 Merge branch 'registry-791' into registry-790 2018-07-27 16:18:28 +03:00
Maciej Szlosarczyk
b33ad0d4e8
Add show action 2018-07-27 11:00:35 +03:00
Maciej Szlosarczyk
526a9ccd58
Change test structure to follow closer newer Rails 5 rules
* Create new class called ApplicationIntegrationTest, so we don't have
  to override ActionDispatch::IntegrationTest
* Move UI tests to inherit from ApplicationSystemTestCase
* Existing REST API or EPP tests inherit from
  ApplicationIntegrationTest.
* Move `require 'application_system_test_case'` at the end of
  `test_helper`

I don't particularly agree with the Rails' convention of treating UI
tests as system tests and API tests as integration tests, but I see no
benefit in actively fighting against it.
2018-07-27 09:36:27 +03:00
Maciej Szlosarczyk
0ab9f6333f
Add API/Registrant/Domains route 2018-07-26 14:46:03 +03:00
Artur Beljajev
e21d428afd Merge branch 'master' into registry-791 2018-07-25 13:27:21 +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
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
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
Artur Beljajev
07bc0546bb Handle past domains.delete_at 2018-07-22 23:58:25 +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
Artur Beljajev
c1066f12c6 Fix registrar area authenticated root path 2018-07-19 21:50:03 +03:00
Artur Beljajev
106592e53e Merge branch 'master' into registry-791
# Conflicts:
#	db/structure.sql
2018-07-19 20:40:45 +03:00
Artur Beljajev
e4305e7865 Merge branch 'master' into registry-790 2018-07-19 17:28:56 +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
Artur Beljajev
bf33565d0e Improve readability 2018-07-19 00:40:43 +03:00
Artur Beljajev
e369d90e20 Make UI consistent 2018-07-19 00:23:17 +03:00
Artur Beljajev
5561825584 Use standard Devise sessions controller in admin area
Fixes a bug when retrying to login with correct credentials
2018-07-18 20:02:05 +03:00
Maciej Szlosarczyk
d67e777ea8
Create a Registrant auth controller 2018-07-18 16:24:55 +03:00
Artur Beljajev
a2451f4a13 Fix test name 2018-07-18 12:14:24 +03:00
Artur Beljajev
989bb32548 Improve readability 2018-07-16 01:31:36 +03:00
Artur Beljajev
6f0c886236 Add tests 2018-07-16 00:58:22 +03:00
Artur Beljajev
02aad0d781 Add tests 2018-07-15 19:01:43 +03:00
Artur Beljajev
7a054ca893 Fix tests and specs 2018-07-13 23:12:01 +03:00
Artur Beljajev
32ecf36057 Rename users.password to users.plain_text_password
Otherwise it conflicts with Devise
2018-07-13 23:09:21 +03:00
Artur Beljajev
8b7769e19e Merge branch 'master' into refactor-devise-integration
# Conflicts:
#	spec/features/registrar/sign_in/mobile_id_spec.rb
2018-07-12 18:59:11 +03:00
Artur Beljajev
e5cdb2e8db Merge branch 'master' into refactor-devise-integration
# Conflicts:
#	app/controllers/registrant/contacts_controller.rb
#	config/routes.rb
2018-07-10 18:09:03 +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
Maciej Szlosarczyk
0fa30591a8
Add mocked challenge_id to be displayed inside flash message 2018-07-09 16:10:40 +03:00
Maciej Szlosarczyk
2bcedd0fac
Move transactional fixtures to base class 2018-07-09 12:45:48 +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
f327bdf6b6
Rewrite mobile id spec to a test 2018-07-09 10:16:44 +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