blob: 61447adbf520736a938f3d65e6d26edbf3782d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'integration_test_helper'
class MiniEnvironmentsControllerTest < ActionDispatch::IntegrationTest
setup do
login_as User.new
end
test 'show' do
revision = GovukGuix::Revision.create!(
commit_hash: 'test-commit-hash',
store_path: 'test-store-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
|