Integration with Salou census verification WS.
SalouCensus will be available as a Verificator for a Organizations.
Add this line to your application's Gemfile:
gem 'decidim-verifications-salou_census'
And then execute:
bundle
SalouCensus verificator needs some values to perform requests:
salou_census:
salou_census_url: <%= ENV["SALOU_CENSUS_URL"] %>
salou_census_cli: <%= ENV["SALOU_CENSUS_CLI"] %>
salou_census_org: <%= ENV["SALOU_CENSUS_ORG"] %>
salou_census_ent: <%= ENV["SALOU_CENSUS_ENT"] %>
salou_census_usu: <%= ENV["SALOU_CENSUS_USU"] %>
salou_census_pwd: <%= ENV["SALOU_CENSUS_PWD"] %>
salou_census_key: <%= ENV["SALOU_CENSUS_KEY"] %>
secret_key_salou_census: <%= ENV["SALOU_CENSUS_SECRET_KEY"] %>
-
Run
bundle exec rake test_app
. Execution will fail in an specific migration. -
cd
spec/decidim_dummy_app/
and:
2.1. Comment up
execution in failing migration
2.2. Execute...
RAILS_ENV=test bundle exec rails db:drop
RAILS_ENV=test bundle exec rails db:create
RAILS_ENV=test bundle exec rails db:migrate
-
back to root folder
cd ../..
-
run tests with
bundle exec rspec
-
Remember to configure this new test App with configuration values.
Decidim::Verifications::SalouCensus
depends directly on Decidim::Verifications
in 0.14.3
version.
See Decidim.
This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.