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

106 lines
3.3 KiB
Plaintext

IMPORTANT: The file content has been truncated.
Status: Showing lines 1-100 of 206 total lines.
Action: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 100.
--- FILE CONTENT (truncated) ---
require_relative "../support/spec_helper"
module Dalmatian
RSpec.describe AuroraTest do
let(:helper) { class_double(Helper, change_to: true, run!: true, git_checkout: true) }
let(:logger) { class_double(Logger, info: true) }
let(:terraform) do
class_double(
Terraform,
fmt: true,
init: true,
validate: true,
ensure_presence_of_workspace: true
)
end
let(:aurora) do
instance_double(
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,
maintenance_window: "mon:19:00-mon:19:30",
backup_window: "09:00-10:00",
backup_retention_period: 31,
force_ssl: true,
cluster_id: "new-dedicated-cluster-id",
account_id: 123456789012,
parameter_store_path_db_url_name: "DATABASE_URL",
sql_backup_scheduled_task_environment_variables: [
{
"name" => "foo",
"value" => "bar"
}
],
sync_sql_backup_to_azure: false,
replication_bucket_destination_arn: "arn:aws:s3:::dest-bucket",
replication_kms_key_id: "key-id",
to_params: {
"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,
"maintenance_window" => "mon:19:00-mon:19:30",
"backup_window" => "09:00-10:00",
"backup_retention_period" => 31,
"force_ssl" => true,
"parameter_store_path_db_url_name" => "DATABASE_URL",
"sql_backup_scheduled_task_environment_variables" => [{"name" => "foo", "value" => "bar"}],
"sync_sql_backup_to_azure" => false,
"replication_bucket_destination_arn" => "arn:aws:s3:::dest-bucket",
"replication_kms_key_id" => "key-id"
}
)
end
let!(:aurora_test) do
AuroraTest.new(
aurora: aurora,
env: {name: "staging", details: {"min_servers" => 2, "max_servers" => 4}},
helper: helper,
logger: logger,
terraform: terraform
)
end
describe "#call" do
before do
allow(Terraform).to receive(:init)
allow(Terraform).to receive(:ensure_presence_of_workspace)
allow(logger).to receive(:info)
end