Project

General

Profile

« Previous | Next » 

Revision acfbc458

Added by Marek Hulán about 10 years ago

fixes #812 - new permissions model, user group role and nest support, role filters for better granularity

Contributions from:

View differences:

test/functional/api/v1/statistics_controller_test.rb
get :index, { }
assert_response :success
response = ActiveSupport::JSON.decode(@response.body)
assert !response.empty?
assert_equal 'statistics', response.keys.first
assert_not response.empty?
expected_keys = ["arch_count", "cpu_count", "env_count", "klass_count",
"mem_free", "mem_size", "mem_totfree", "mem_totsize",
"model_count", "os_count", "swap_free", "swap_size"]
assert_equal expected_keys, response.keys.sort
end
end

Also available in: Unified diff