Skip to content

CodiTramuntana/decidim-verifications-salou_census

Repository files navigation

Decidim::Verifications::SalouCensus

Integration with Salou census verification WS.

Usage

SalouCensus will be available as a Verificator for a Organizations.

Installation

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"] %>

Testing

  1. Run bundle exec rake test_app. Execution will fail in an specific migration.

  2. 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
  1. back to root folder cd ../..

  2. run tests with bundle exec rspec

  3. Remember to configure this new test App with configuration values.

Versioning

Decidim::Verifications::SalouCensus depends directly on Decidim::Verifications in 0.14.3 version.

Contributing

See Decidim.

License

This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.

About

Integration with Salou census verification WS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published