Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Can't disable tls flag when executing through rake task with batch file #446

Open
ykulkarnidia opened this issue Apr 3, 2020 · 2 comments

Comments

@ykulkarnidia
Copy link

ykulkarnidia commented Apr 3, 2020

We can't disable tls flag when executing through batch file

Environment -

  • Edition of inferno (Community or Program): Community
  • Version of inferno: 2.9.0

Steps to reproduce
Update the config.yml to set -
====. Omit TLS tests ===
disable_tls_tests: true

Execute Test suite - US Core v3.1.0, UsCoreR4CapabilityStatementSequence from rake task.
bundle exec rake inferno:execute_batch[test.json]

Expected behavior
The Test - C-01: FHIR server secured by transport layer security should be omitted.

Actual behavior
The Test - C-01: FHIR server secured by transport layer security is not omitted.

It seems like the disable_tls_tests flag is always set to false in the rake task.

instance.save
sequence_instance = sequence.new(instance, client, false)
sequence_result = nil
@ykulkarnidia
Copy link
Author

ykulkarnidia commented Apr 6, 2020

Quick fix -

disable_tls_tests = ENV['DISABLE_TLS_TESTS'] || false
sequence_instance = sequence.new(instance, client, disable_tls_tests)

bundle exec rake inferno:execute_batch[test.json] DISABLE_TLS_TESTS=true

@yunwwang
Copy link
Contributor

@ykulkarnidia Can i close this issue since you already found a solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants