chore: Reorganize the installation config settings (#8794)
- Reorganizing installation config settings to move more configurations into UI from environment variables - Changes to installation config to support premium plans in the enterprise edition - Fixes the broken premium indicator in account/show and accounts/edit page
This commit is contained in:
@@ -16,9 +16,9 @@ RSpec.describe 'Super Admin Application Config API', type: :request do
|
||||
|
||||
it 'shows the app_config page' do
|
||||
sign_in(super_admin, scope: :super_admin)
|
||||
get '/super_admin/app_config'
|
||||
get '/super_admin/app_config?config=facebook'
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response.body).to include(config.name)
|
||||
expect(response.body).to include(config.value)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -34,7 +34,7 @@ RSpec.describe 'Super Admin Application Config API', type: :request do
|
||||
context 'when it is an aunthenticated super admin' do
|
||||
it 'shows the app_config page' do
|
||||
sign_in(super_admin, scope: :super_admin)
|
||||
post '/super_admin/app_config', params: { app_config: { FB_APP_ID: 'FB_APP_ID' } }
|
||||
post '/super_admin/app_config?config=facebook', params: { app_config: { FB_APP_ID: 'FB_APP_ID' } }
|
||||
|
||||
expect(response).to have_http_status(:found)
|
||||
expect(response).to redirect_to(super_admin_settings_path)
|
||||
|
||||
Reference in New Issue
Block a user