Skip to content
Snippets Groups Projects
Commit 362d4ab2 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-287: instantiate the RATestEnvironment as well, so we can actually schedule stuff

parent edeb41bc
Branches
Tags
1 merge request!188TMSS-287: implemented CycleQuota
...@@ -35,6 +35,8 @@ from lofar.sas.tmss.tmss.exceptions import TMSSException ...@@ -35,6 +35,8 @@ from lofar.sas.tmss.tmss.exceptions import TMSSException
from lofar.messaging.config import DEFAULT_BROKER, DEFAULT_BUSNAME from lofar.messaging.config import DEFAULT_BROKER, DEFAULT_BUSNAME
from lofar.common.testing.dbcredentials import TemporaryCredentials from lofar.common.testing.dbcredentials import TemporaryCredentials
from lofar.sas.tmss.client.tmss_http_rest_client import TMSSsession from lofar.sas.tmss.client.tmss_http_rest_client import TMSSsession
from lofar.sas.resourceassignment.resourceassigner.test.ra_test_environment import RATestEnvironment
def assertDataWithUrls(self, data, expected): def assertDataWithUrls(self, data, expected):
""" """
...@@ -346,8 +348,9 @@ def main_test_environment(): ...@@ -346,8 +348,9 @@ def main_test_environment():
parser.add_option_group(group) parser.add_option_group(group)
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
# logging.basicConfig(format = '%(asctime)s %(levelname)s %(message)s', level = logging.INFO) logging.basicConfig(format = '%(asctime)s %(levelname)s %(message)s', level = logging.INFO)
with RATestEnvironment(exchange=options.exchange, broker=options.broker):
with TMSSTestEnvironment(host=options.host, preferred_django_port=options.port, exchange=options.exchange, broker=options.broker) as instance: with TMSSTestEnvironment(host=options.host, preferred_django_port=options.port, exchange=options.exchange, broker=options.broker) as instance:
# print some nice info for the user to use the test servers... # print some nice info for the user to use the test servers...
# use print instead of log for clean lines. # use print instead of log for clean lines.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment