aboutsummaryrefslogtreecommitdiff
path: root/test/controllers/mini_environments_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/controllers/mini_environments_controller_test.rb')
-rw-r--r--test/controllers/mini_environments_controller_test.rb20
1 files changed, 18 insertions, 2 deletions
diff --git a/test/controllers/mini_environments_controller_test.rb b/test/controllers/mini_environments_controller_test.rb
index 8176143..61447ad 100644
--- a/test/controllers/mini_environments_controller_test.rb
+++ b/test/controllers/mini_environments_controller_test.rb
@@ -6,8 +6,24 @@ class MiniEnvironmentsControllerTest < ActionDispatch::IntegrationTest
end
test 'show' do
- MiniEnvironment.create
+ revision = GovukGuix::Revision.create!(
+ commit_hash: 'test-commit-hash',
+ store_path: 'test-store-path'
+ )
- get mini_environment_path
+ mini_environment = MiniEnvironment.create!(
+ govuk_guix_revision: revision,
+ backend: Backends::TerraformLibvirt.create!,
+ signon_users: [
+ {
+ name: 'Test name',
+ email: 'Test email',
+ role: 'Test role',
+ passphrase: 'Test passphrase'
+ }
+ ]
+ )
+
+ get mini_environment_path(mini_environment)
end
end