From 731649641b5de66569efaed8c6e0fc5b8d8cf829 Mon Sep 17 00:00:00 2001 From: P4T12ICK Date: Wed, 26 May 2021 15:20:32 +0200 Subject: [PATCH] bug fix in detection testing --- automated_detection_testing/detection_service.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/automated_detection_testing/detection_service.py b/automated_detection_testing/detection_service.py index bb025e0042..551082241b 100644 --- a/automated_detection_testing/detection_service.py +++ b/automated_detection_testing/detection_service.py @@ -105,13 +105,6 @@ def main(args): with open('attack_range/attack_range.conf', 'w') as file: file.write(filedata) - # check if terraform is installed - if which('terraform') is None: - sys.exit(1) - else: - # init terraform - os.system('cd attack_range/terraform/aws && terraform init && cd ../../..') - module = __import__('attack_range') module.sys.argv = ['attack_range', '--config', 'attack_range/attack_range.conf', 'test', '--test_file', 'security_content/tests/' + test_file_name]