aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
authorTeddy Wing2017-10-30 14:59:04 +0100
committerTeddy Wing2017-10-30 17:48:58 +0100
commit17dcf8fe67972f6287fdac40a4477ef8b63ae1b9 (patch)
tree4815308c04760ccca87bf3e1104af8bf039a674c /config/environments
parent48a0641066d1b7c534b45e36c921e4b2a708138a (diff)
downloadchouette-core-17dcf8fe67972f6287fdac40a4477ef8b63ae1b9.tar.bz2
ComplianceControlSetCopyWorker: Call Java validation API
Call the Java API URL to launch a validation after having copied the `ComplianceControlSet` into a `ComplianceCheckSet`. Copied the format with error logging from `NetexImport#launch_java_import`. In the test, make the ID variables global by putting them in `let`s. Add `config.iev_url` to the Rails `test` environment so that we can access this from our tests. TODO: I just realised I'm sending the wrong ID. I should be sending the check set ID. Refs #4782
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index b3312be4a..8bf94f5da 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -62,6 +62,9 @@ Rails.application.configure do
# Reflex api url
config.reflex_api_url = "https://195.46.215.128/ws/reflex/V1/service=getData"
+ # IEV url
+ config.iev_url = ENV.fetch('IEV_URL', 'http://localhost:8080')
+
config.rails_host = "http://www.example.com"
# file to data for demo
config.demo_data = "tmp/demo.zip"