| #// Copyright (c) 2000-2017 Ericsson Telecom AB // |
| #// All rights reserved. This program and the accompanying materials are made available under the terms // |
| #// of the Eclipse Public License v1.0 which accompanies this distribution, and is available at // |
| #// http://www.eclipse.org/legal/epl-v10.html // |
| #///////////////////////////////////////////////////////////////////////////////////////////////////////// |
| ADMIN = { |
| "username": "admin", |
| "password": "admin", |
| "groups": set(["admin"]) |
| } |
| |
| NO_USER = { |
| "username": None, |
| "password": None, |
| "groups": set([]) |
| } |
| |
| WRONG_USER = { |
| 'username': 'not_admin', |
| 'password': 'not_admin_password', |
| 'groups': set(['not_admin_group']) |
| } |
| |
| GROUPRIGHTS_DIR = 'test/utils/MockedRights' |
| DEFAULT_RIGHTS = ['a'] |
| |
| PLAYLIST_DIR = 'test/utils/MockedPlaylist' |
| |
| HTTPSERVER_DIR = 'test/utils/HttpServerDir' |
| |
| def getEmptyResponse(): |
| return { |
| 'returnCode': 200, |
| 'mimeType': 'text/plain', |
| 'body': '', |
| 'headers': {} |
| } |