Files
gemini-settings/tmp/dalmatian/tool-outputs/run_shell_command_77.txt
2026-02-24 18:03:22 +00:00

48 lines
5.6 KiB
Plaintext

Output: Run options: include {:locations=>{"./spec/integration/tests_local_configuration_spec.rb"=>[3352]}}
tests local configuration
debug Testing Aurora
invokes "terraform validate" with the expected cluster options (FAILED - 1)
Failures:
1) tests local configuration invokes "terraform validate" with the expected cluster options
Failure/Error: Helper.run!(cmd)
#<Dalmatian::Helper (class)> received :run! with unexpected arguments
expected: ("TF_VAR_region='eu-west-2' TF_VAR_cidr='10.0.0.0/16' TF_VAR_root_domain_zone='dalmatian.dxw.net' TF_VAR_internal_domain_zone='dalmatian.internal' TF_VAR_ecs_private_subnets='[{availability_zone =\"eu-west-2a\",cidr =\"10.0.128.0/24\"},{availability_zone =\"eu-west-2b\",cidr =\"10.0.129.0/24\"},{availability_zone =\"eu-west-2c\",cidr =\"10.0.130.0/24\"}]' TF_VAR_extra_public_subnets='[{availability_zone =\"eu-west-2a\",cidr =\"10.0.0.0/24\"},{availability_zone =\"eu-west-2b\",cidr =\"10.0.1.0/24\"},{availability_zone =\"eu-west-2c\",cidr =\"10.0.2.0/24\"}]' TF_VAR_instances_key_name='dalmatian-ecs-instances' TF_VAR_instance_type='t2.medium' TF_VAR_min_servers='2' TF_VAR_max_servers='4' TF_VAR_max_instance_lifetime='86400' TF_VAR_associate_public_ip_address='0' TF_VAR_docker_storage_size='40' TF_VAR_dockerhub_email='' TF_VAR_dockerhub_token='' TF_VAR_enable_efs='false' TF_VAR_encrypt_efs='true' TF_VAR_efs_dirs='[]' TF_VAR_monitoring_docs_path='https://github.com/dxw/dalmatian/docs/monitoring-alarms/' TF_VAR_example_var='bar' TF_VAR_environment='production' TF_VAR_cluster_name='shared-cluster-production' TF_VAR_account_id='123456789012' TF_VAR_infrastructure_name='existing-shared-cluster-production' TF_VAR_dalmatian_role='dalmatian-read' terraform plan")
got: ("TF_VAR_region='eu-west-2' TF_VAR_cidr='10.0.0.0/16' TF_VAR_root_domain_zone='dalmatian.dxw.net' TF_VAR_internal_domain_zone='dalmatian.internal' TF_VAR_ecs_private_subnets='[{availability_zone =\"eu-west-2a\",cidr =\"10.0.128.0/24\"},{availability_zone =\"eu-west-2b\",cidr =\"10.0.129.0/24\"},{availability_zone =\"eu-west-2c\",cidr =\"10.0.130.0/24\"}]' TF_VAR_extra_public_subnets='[{availability_zone =\"eu-west-2a\",cidr =\"10.0.0.0/24\"},{availability_zone =\"eu-west-2b\",cidr =\"10.0.1.0/24\"},{availability_zone =\"eu-west-2c\",cidr =\"10.0.2.0/24\"}]' TF_VAR_instances_key_name='dalmatian-ecs-instances' TF_VAR_instance_type='t2.medium' TF_VAR_min_servers='2' TF_VAR_max_servers='4' TF_VAR_max_instance_lifetime='86400' TF_VAR_associate_public_ip_address='0' TF_VAR_docker_storage_size='40' TF_VAR_dockerhub_email='' TF_VAR_dockerhub_token='' TF_VAR_enable_efs='false' TF_VAR_encrypt_efs='true' TF_VAR_efs_dirs='[]' TF_VAR_monitoring_docs_path='https://github.com/dxw/dalmatian/docs/monitoring-alarms/' TF_VAR_account_id='123456789012' TF_VAR_infrastructure_name='new-dedicated-cluster' TF_VAR_dalmatian_role='dalmatian-read' TF_VAR_environment='production' TF_VAR_aurora='{identifier =\"testaurora\",in_use_by =[\"test-service\"],clusters_in_use ={production =[\"test\"],staging =[\"test\"]},minimum_size ={production =2,staging =1},maximum_size ={production =2,staging =1},engine =\"aurora-postgresql\",engine_version =\"11.9\",db_name =\"testapp\",port =5432,force_ssl =true,maintenance_window =\"mon:19:00-mon:19:30\",backup_window =\"09:00-10:00\",backup_retention_period =31,parameter_store_path_db_url_name =\"DATABASE_URL\",sql_backup_scheduled_task_environment_variables =[],sync_sql_backup_to_azure =false,replication_bucket_destination_arn =\"arn:aws:s3:::your-destination-bucket-name\",replication_kms_key_id =\"your-destination-kms-key-id\"}' terraform validate")
Please stub a default value first if message might be received with other args as well.
# ./lib/dalmatian/terraform.rb:17:in `validate'
# ./lib/dalmatian/testable.rb:25:in `terraform_validate'
# ./lib/dalmatian/testable.rb:9:in `call'
# ./lib/dalmatian/cluster.rb:358:in `test_aurora'
# ./lib/dalmatian/cluster.rb:273:in `deploy_aurora'
# ./lib/dalmatian/cluster.rb:75:in `block (2 levels) in deploy'
# ./lib/dalmatian/cluster.rb:73:in `each'
# ./lib/dalmatian/cluster.rb:73:in `block in deploy'
# ./lib/dalmatian/cluster.rb:59:in `each'
# ./lib/dalmatian/cluster.rb:59:in `deploy'
# ./lib/dalmatian/infrastructure.rb:24:in `block in deploy'
# ./lib/dalmatian/infrastructure.rb:22:in `each'
# ./lib/dalmatian/infrastructure.rb:22:in `deploy'
# ./lib/dalmatian/infrastructure.rb:18:in `test'
# ./spec/integration/tests_local_configuration_spec.rb:3349:in `block (2 levels) in <module:Dalmatian>'
# ./spec/support/spec_helper.rb:24:in `block (3 levels) in <top (required)>'
# /Users/bob/.bundles/ruby/2.7.0/gems/climate_control-1.2.0/lib/climate_control.rb:24:in `block in modify'
# /Users/bob/.bundles/ruby/2.7.0/gems/climate_control-1.2.0/lib/climate_control.rb:15:in `synchronize'
# /Users/bob/.bundles/ruby/2.7.0/gems/climate_control-1.2.0/lib/climate_control.rb:15:in `modify'
# ./spec/support/spec_helper.rb:20:in `block (2 levels) in <top (required)>'
# /Users/bob/.bundles/ruby/2.7.0/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
Finished in 0.06363 seconds (files took 0.71284 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/integration/tests_local_configuration_spec.rb:3352 # tests local configuration invokes "terraform validate" with the expected cluster options
Coverage report generated for RSpec to /Users/bob/git/dxw/dalmatian/coverage. 1200 / 1772 LOC (67.72%) covered.
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
Exit Code: 1
Process Group PGID: 83155