Commit graph

65 commits

Author SHA1 Message Date
Alex Sherman
85475f46df Fix possible transaction retries by setting idempotency 2021-08-31 12:37:59 +05:00
Oleg Hasjanov
6f431232f4 request and response have the same domain schema 2021-06-22 13:55:15 +03:00
Alex Sherman
3eb645a590 Refactor schema checking to custom assertion 2021-06-17 13:19:48 +05:00
Oleg Hasjanov
539cebe7ec refactoring 2021-06-01 15:33:11 +03:00
Oleg Hasjanov
20123c1618 added method in test_helper & updated method for compare schema version 2021-05-26 14:42:00 +03:00
Alex Sherman
929ada8fd0 Add sidekiq as a job backend 2021-04-12 17:22:36 +05:00
Alex Sherman
313731232e Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
Alex Sherman
43b3033991 Fix namespaces for Zeitwerk class loader 2021-03-05 19:09:24 +05:00
Georg
36ff1fcf39 Create ruby.yml
example workflow

Update ruby.yml

limit builds

Update ruby.yml

postgres service

Update ruby.yml

pg_port

copy config files

Update ruby.yml

Update ruby.yml

Update database_travis.yml

Update ruby.yml

Update ruby.yml

bump wkhtmltopdf-binary

Unlock gem 'wkhtmltopdf-binary'

Update ruby.yml

Update ruby.yml

Update ruby.yml

remove Lockfile

restore Gemfile

test only ubuntu-18.04

bundle env

remove deploy deps

remove mina dep

use rexml from bundle rather then std-lib to support ruby 3.0

install rexml

drop ruby 3.0, cleanup workflow

fix codeclimate sorting issue

Codeclimate reporting

stop using deprecated set-env

use simplecov formater

simplecov in after-build

fix yaml syntax

run in debug mode

Set correct env var to run coverage

cleanup, provide CC_TEST_REPORTER_ID secret

combine multiple results

more variables

pull/commit different envs

Change test command to get more coverage
2020-12-07 13:53:05 +05:00
Alex Sherman
c79042f789 Add registrant api companies endpoint 2020-10-12 16:32:37 +05:00
Karl Erik Õunapuu
73e9dd6870 Resolve merge errors 2020-09-02 16:25:34 +03:00
Karl Erik Õunapuu
75181f5bea Test boolean setting returns false for nil value 2020-08-18 12:15:35 +03:00
Karl Erik Õunapuu
2330e8eab1 Merge remote-tracking branch 'origin/master' into 1629-change-settings-storage-mechanism 2020-08-18 11:37:15 +03:00
Karl Erik Õunapuu
4c9fc76283 Fix Setting fixtures, correct seed.rb 2020-08-12 11:29:33 +03:00
Karl Erik Õunapuu
625bd459de Explicitly set address_processing to false in tests 2020-08-10 14:27:05 +03:00
Karl Erik Õunapuu
4173639049 Do not use parallel testing 2020-06-04 13:38:16 +03:00
Karl Erik Õunapuu
96b5eb881a Determine CPU count for parallelizing tests 2020-06-04 12:36:17 +03:00
Karl Erik Õunapuu
eed9f4baed Allow to run tests in multiple threads 2020-06-02 13:23:02 +03:00
Karl Erik Õunapuu
53a41a07fc Disable parallel tests for now 2020-05-29 16:48:52 +03:00
Karl Erik Õunapuu
f47805a767 Use require_relative where possible 2020-05-29 16:28:57 +03:00
Alex Sherman
4e1bec3613 Pump minitest version 2020-02-05 12:43:25 +05:00
Artur Beljajev
fa52001be6 Upgrade to Rails 5.0
Closes #377
2019-11-15 15:26:33 +02:00
Artur Beljajev
67a90c2ef1 Improve readability 2019-11-02 17:06:00 +02:00
Artur Beljajev
bbaad1619f Remove unused rake task 2019-10-10 13:33:17 +03:00
Artur Beljajev
f4378b2489 Inline simplecov gem config 2019-10-07 15:44:17 +03:00
Artur Beljajev
aeee87ea75 Remove factory_bot_rails gem 2019-10-07 15:44:17 +03:00
Artur Beljajev
348e6e5d7a Introduce custom assertion 2019-09-03 23:43:30 +03:00
Artur Beljajev
ba5a7b1745 Require application_system_test_case explicitly 2019-09-03 18:40:52 +03:00
Artur Beljajev
d6973c6bdc Remove deprecated testcase class 2019-09-03 13:35:08 +03:00
Artur Beljajev
487613db1e Refactor inactive contact archivation
Fixes #956
2019-07-02 14:37:23 +03:00
Artur Beljajev
86a69c09bf Issue e-invoice along with invoice
Closes #1222
2019-06-26 12:03:07 +03:00
Artur Beljajev
83f8a9fb6a Extract company register
Closes #1079, #916, #1077
2019-03-15 17:33:07 +02:00
Artur Beljajev
25a290b751 Extract simplecov config 2019-03-09 18:13:24 +02:00
Maciej Szlosarczyk
58c928226d
Add handling of OPTIONS request to /api namespace
* It allows access from anywhere via wildcard origin
* It sets the timeout to an hour
* It allows all standard HTTP verbs + OPTIONS
2018-10-16 09:32:49 +03:00
Artur Beljajev
168010b787 Add TaskTestCase 2018-08-21 00:50:56 +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
e6d3895b75
Fix typo in assertions filename 2018-07-19 10:40:42 +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
2bcedd0fac
Move transactional fixtures to base class 2018-07-09 12:45:48 +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
Artur Beljajev
d064dbc11f Replace Warden test helpers with Devise ones 2018-06-19 19:40:35 +03:00
Artur Beljajev
5061962c40 Fix test
#623
2018-04-12 18:01:30 +03:00
Artur Beljajev
a8046ce9cf Remove global setting for tests
#623
2018-04-12 17:27:39 +03:00
Artur Beljajev
7ffc62e370 Merge branch 'master' into registry-623
# Conflicts:
#	test/integration/admin/registrars/show_registrar_test.rb
2018-04-12 17:16:58 +03:00
Artur Beljajev
8b8b8df394 Reset WebMock after integration tests 2018-04-05 16:06:10 +03:00
Artur Beljajev
5c34d9f468 Merge branch 'master' into registry-623 2018-04-04 16:32:17 +03:00
Artur Beljajev
817a672143 Reset time after each test 2018-04-04 01:43:40 +03:00
Artur Beljajev
f8eda810f9 Use setup/teardown blocks instead of methods 2018-04-04 01:42:59 +03:00
Artur Beljajev
5cc16552ab Backport Rails 5 test assertions
#799
2018-04-01 22:41:48 +03:00