diff options
author | Azul <azul@riseup.net> | 2016-05-01 10:55:33 -0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-18 20:07:41 +0200 |
commit | e05a1b0f5ae40a2aa17976b3009cd563b8e4660a (patch) | |
tree | 77774fd7e70211febaf3a15c6e3b3e7340843c11 /test/functional | |
parent | a1b494e334406660a1f49fb7de9b043493809640 (diff) |
api: allow version bumping - bump to 2
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/api/certs_controller_test.rb (renamed from test/functional/v1/certs_controller_test.rb) | 2 | ||||
-rw-r--r-- | test/functional/api/identities_controller_test.rb (renamed from test/functional/v1/identities_controller_test.rb) | 2 | ||||
-rw-r--r-- | test/functional/api/messages_controller_test.rb (renamed from test/functional/v1/messages_controller_test.rb) | 2 | ||||
-rw-r--r-- | test/functional/api/services_controller_test.rb (renamed from test/functional/v1/services_controller_test.rb) | 2 | ||||
-rw-r--r-- | test/functional/api/sessions_controller_test.rb (renamed from test/functional/v1/sessions_controller_test.rb) | 2 | ||||
-rw-r--r-- | test/functional/api/smtp_certs_controller_test.rb (renamed from test/functional/v1/smtp_certs_controller_test.rb) | 2 | ||||
-rw-r--r-- | test/functional/api/token_auth_test.rb (renamed from test/functional/configs_controller_with_static_tokens_test.rb) | 4 | ||||
-rw-r--r-- | test/functional/api/users_controller_test.rb (renamed from test/functional/v1/users_controller_test.rb) | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/v1/certs_controller_test.rb b/test/functional/api/certs_controller_test.rb index 04c1c86..137ed92 100644 --- a/test/functional/v1/certs_controller_test.rb +++ b/test/functional/api/certs_controller_test.rb @@ -1,6 +1,6 @@ require_relative '../../test_helper' -class V1::CertsControllerTest < ActionController::TestCase +class Api::CertsControllerTest < ActionController::TestCase test "create unlimited cert without login" do with_config allow_anonymous_certs: true do diff --git a/test/functional/v1/identities_controller_test.rb b/test/functional/api/identities_controller_test.rb index 6410c44..e803ee7 100644 --- a/test/functional/v1/identities_controller_test.rb +++ b/test/functional/api/identities_controller_test.rb @@ -1,6 +1,6 @@ require_relative '../../test_helper' -class V1::IdentitiesControllerTest < ActionController::TestCase +class Api::IdentitiesControllerTest < ActionController::TestCase test "api monitor can fetch identity" do monitor_auth do diff --git a/test/functional/v1/messages_controller_test.rb b/test/functional/api/messages_controller_test.rb index f37cca0..01641d4 100644 --- a/test/functional/v1/messages_controller_test.rb +++ b/test/functional/api/messages_controller_test.rb @@ -1,6 +1,6 @@ require 'test_helper' -class V1::MessagesControllerTest < ActionController::TestCase +class Api::MessagesControllerTest < ActionController::TestCase setup do @user = FactoryGirl.build(:user) diff --git a/test/functional/v1/services_controller_test.rb b/test/functional/api/services_controller_test.rb index 039eb27..b1dc9f3 100644 --- a/test/functional/v1/services_controller_test.rb +++ b/test/functional/api/services_controller_test.rb @@ -1,6 +1,6 @@ require 'test_helper' -class V1::ServicesControllerTest < ActionController::TestCase +class Api::ServicesControllerTest < ActionController::TestCase test "anonymous user gets login required service info" do get :show, format: :json diff --git a/test/functional/v1/sessions_controller_test.rb b/test/functional/api/sessions_controller_test.rb index 8bb6acd..0633578 100644 --- a/test/functional/v1/sessions_controller_test.rb +++ b/test/functional/api/sessions_controller_test.rb @@ -3,7 +3,7 @@ require 'test_helper' # This is a simple controller unit test. # We're stubbing out both warden and srp. # There's an integration test testing the full rack stack and srp -class V1::SessionsControllerTest < ActionController::TestCase +class Api::SessionsControllerTest < ActionController::TestCase setup do @request.env['HTTP_HOST'] = 'api.lvh.me' diff --git a/test/functional/v1/smtp_certs_controller_test.rb b/test/functional/api/smtp_certs_controller_test.rb index 1b03995..2142675 100644 --- a/test/functional/v1/smtp_certs_controller_test.rb +++ b/test/functional/api/smtp_certs_controller_test.rb @@ -1,6 +1,6 @@ require 'test_helper' -class V1::SmtpCertsControllerTest < ActionController::TestCase +class Api::SmtpCertsControllerTest < ActionController::TestCase test "no smtp cert without login" do with_config allow_anonymous_certs: true do diff --git a/test/functional/configs_controller_with_static_tokens_test.rb b/test/functional/api/token_auth_test.rb index 79739fe..17a4775 100644 --- a/test/functional/configs_controller_with_static_tokens_test.rb +++ b/test/functional/api/token_auth_test.rb @@ -5,8 +5,8 @@ require 'test_helper' -class ConfigsControllerWithStaticTokensTest < ActionController::TestCase - tests V1::ConfigsController +class Api::TokenAuthTest < ActionController::TestCase + tests Api::ConfigsController def test_login_via_api_token with_config(:allow_anonymous_certs => false) do diff --git a/test/functional/v1/users_controller_test.rb b/test/functional/api/users_controller_test.rb index 3f7bad3..bc2e312 100644 --- a/test/functional/v1/users_controller_test.rb +++ b/test/functional/api/users_controller_test.rb @@ -1,6 +1,6 @@ require_relative '../../test_helper' -class V1::UsersControllerTest < ActionController::TestCase +class Api::UsersControllerTest < ActionController::TestCase test "user can change settings" do user = find_record :user |