ActionController::TestCase will automatically infer the controller under test from the test class name.
I think your test should be like below
class Api::V1::PostControllerTest < ActionController::TestCase
end
or
class ApiPostControllerTest < ActionController::TestCase
tests Api::V1::PostController
end