From 3459059ed1f9332a9e71a4a7be5dc5e22e7f6bae Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 31 Dec 2018 18:22:12 +0000 Subject: Start tracking which store paths are in use This will enable garbage collection of the Guix store, without removing things that are still in use. --- test/controllers/mini_environments_controller_test.rb | 13 +++++++++++++ test/models/backends/terraform_aws_test.rb | 1 + test/models/backends/terraform_libvirt_test.rb | 1 + 3 files changed, 15 insertions(+) create mode 100644 test/controllers/mini_environments_controller_test.rb (limited to 'test') diff --git a/test/controllers/mini_environments_controller_test.rb b/test/controllers/mini_environments_controller_test.rb new file mode 100644 index 0000000..8176143 --- /dev/null +++ b/test/controllers/mini_environments_controller_test.rb @@ -0,0 +1,13 @@ +require 'integration_test_helper' + +class MiniEnvironmentsControllerTest < ActionDispatch::IntegrationTest + setup do + login_as User.new + end + + test 'show' do + MiniEnvironment.create + + get mini_environment_path + end +end diff --git a/test/models/backends/terraform_aws_test.rb b/test/models/backends/terraform_aws_test.rb index f9a34f3..d782f3c 100644 --- a/test/models/backends/terraform_aws_test.rb +++ b/test/models/backends/terraform_aws_test.rb @@ -28,6 +28,7 @@ class Backends::TerraformAwsTest < ActiveSupport::TestCase end test 'build' do + GovukGuix::UpdateGcrootsDirectory.stubs(:add_store_path) GovukGuix::BuildMiniEnvironment.expects(:build) @backend.build(@mini_environment) diff --git a/test/models/backends/terraform_libvirt_test.rb b/test/models/backends/terraform_libvirt_test.rb index 056a1c4..fb56dba 100644 --- a/test/models/backends/terraform_libvirt_test.rb +++ b/test/models/backends/terraform_libvirt_test.rb @@ -17,6 +17,7 @@ class Backends::TerraformLibvirtTest < ActiveSupport::TestCase end test 'build' do + GovukGuix::UpdateGcrootsDirectory.stubs(:add_store_path) GovukGuix::BuildMiniEnvironment.expects(:build) @backend.build(@mini_environment) -- cgit v1.2.3