def METHOD_NAME(self, test_client):
    result = test_client.get('/rest/firmware?recursive=true').json
    assert result['status'] == 1
    assert 'only permissible with non-empty query' in result['error_message']
    query = json.dumps({'processed_analysis.file_type.full': {'$regex': 'arm', '$options': 'si'}})
    result = test_client.get(f'/rest/firmware?recursive=true&query={quote(query)}').json
    assert result['status'] == 0