diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-16 08:51:54 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-29 07:55:01 +0100 |
commit | 051c8bf612126fa79699c8bf45a661dde127f4a0 (patch) | |
tree | 849a3b05b4ab4b59a426761d7cf1da3cc7036349 /test | |
parent | a8c8f68971dd9e20dee01d9f65c64283e41fe4a3 (diff) | |
download | govuk-mini-environment-admin-051c8bf612126fa79699c8bf45a661dde127f4a0.tar govuk-mini-environment-admin-051c8bf612126fa79699c8bf45a661dde127f4a0.tar.gz |
Add backend controllers, models and views
Also annotate existing models.
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/backends/terraform_aws_controller_test.rb | 14 | ||||
-rw-r--r-- | test/controllers/backends/terraform_libvirt_controller_test.rb | 14 | ||||
-rw-r--r-- | test/controllers/backends_controller_test.rb | 7 | ||||
-rw-r--r-- | test/controllers/setup_controller_test.rb | 7 | ||||
-rw-r--r-- | test/fixtures/backends/terraform_aws.yml | 13 | ||||
-rw-r--r-- | test/fixtures/backends/terraform_libvirts.yml | 9 | ||||
-rw-r--r-- | test/models/backends/terraform_aws_test.rb | 7 | ||||
-rw-r--r-- | test/models/backends/terraform_libvirt_test.rb | 7 |
8 files changed, 78 insertions, 0 deletions
diff --git a/test/controllers/backends/terraform_aws_controller_test.rb b/test/controllers/backends/terraform_aws_controller_test.rb new file mode 100644 index 0000000..0c574fa --- /dev/null +++ b/test/controllers/backends/terraform_aws_controller_test.rb @@ -0,0 +1,14 @@ +require 'test_helper' + +class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest + test "should get new" do + get backends_terraform_aws_new_url + assert_response :success + end + + test "should get show" do + get backends_terraform_aws_show_url + assert_response :success + end + +end diff --git a/test/controllers/backends/terraform_libvirt_controller_test.rb b/test/controllers/backends/terraform_libvirt_controller_test.rb new file mode 100644 index 0000000..376d753 --- /dev/null +++ b/test/controllers/backends/terraform_libvirt_controller_test.rb @@ -0,0 +1,14 @@ +require 'test_helper' + +class Backends::TerraformLibvirtControllerTest < ActionDispatch::IntegrationTest + test "should get new" do + get backends_terraform_libvirt_new_url + assert_response :success + end + + test "should get show" do + get backends_terraform_libvirt_show_url + assert_response :success + end + +end diff --git a/test/controllers/backends_controller_test.rb b/test/controllers/backends_controller_test.rb new file mode 100644 index 0000000..fe2682e --- /dev/null +++ b/test/controllers/backends_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class BackendsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/setup_controller_test.rb b/test/controllers/setup_controller_test.rb new file mode 100644 index 0000000..d350d63 --- /dev/null +++ b/test/controllers/setup_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class SetupControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/backends/terraform_aws.yml b/test/fixtures/backends/terraform_aws.yml new file mode 100644 index 0000000..b0f1f9d --- /dev/null +++ b/test/fixtures/backends/terraform_aws.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + label: MyString + aws_region: MyString + aws_access_key_id: MyString + aws_secret_access_key: MyString + +two: + label: MyString + aws_region: MyString + aws_access_key_id: MyString + aws_secret_access_key: MyString diff --git a/test/fixtures/backends/terraform_libvirts.yml b/test/fixtures/backends/terraform_libvirts.yml new file mode 100644 index 0000000..06293db --- /dev/null +++ b/test/fixtures/backends/terraform_libvirts.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + label: MyString + uri: MyString + +two: + label: MyString + uri: MyString diff --git a/test/models/backends/terraform_aws_test.rb b/test/models/backends/terraform_aws_test.rb new file mode 100644 index 0000000..78cd8de --- /dev/null +++ b/test/models/backends/terraform_aws_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class Backends::TerraformAwsTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/backends/terraform_libvirt_test.rb b/test/models/backends/terraform_libvirt_test.rb new file mode 100644 index 0000000..b7d3c35 --- /dev/null +++ b/test/models/backends/terraform_libvirt_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class Backends::TerraformLibvirtTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end |