from pyon.core.bootstrap import IonObject from pyon.core.object import IonObjectSerializer from ion.services.coi.service_gateway_service import GATEWAY_RESPONSE, GATEWAY_ERROR, GATEWAY_ERROR_MESSAGE, GATEWAY_ERROR_EXCEPTION # some stuff for logging info to the console log = DotDict() def mk_logger(level): def logger(fmt, *args): print "%s %s" % (string.ljust("%s:" % level, 8), (fmt % args)) return logger log.debug = mk_logger("DEBUG") log.info = mk_logger("INFO") log.warn = mk_logger("WARNING") @attr('INT', group='sa') class TestAssembly(IonIntegrationTestCase): """ assembly integration tests at the service level """ def setUp(self): # Start container self._start_container() self.container.start_rel_from_url('res/deploy/r2deploy.yml')
from interface.services.sa.idata_product_management_service import DataProductManagementServiceClient from interface.services.sa.idata_acquisition_management_service import DataAcquisitionManagementServiceClient from interface.services.sa.iinstrument_management_service import InstrumentManagementServiceClient from interface.services.sa.imarine_facility_management_service import MarineFacilityManagementServiceClient from ion.services.sa.preload.preload_csv import PreloadCSV # some stuff for logging info to the console import sys log = DotDict() printout = sys.stderr.write printout = lambda x: None log.debug = lambda x: printout("DEBUG: %s\n" % x) log.info = lambda x: printout("INFO: %s\n" % x) log.warn = lambda x: printout("WARNING: %s\n" % x) @attr("INT", group="sa") @unittest.skip("https://github.com/ooici/ion-definitions/pull/94") class TestLCAServiceGateway(IonIntegrationTestCase): """ LCA integration tests at the service gateway level """ def setUp(self): # Start container self._start_container() self.container.start_rel_from_url("res/deploy/r2sa.yml")
from ion.services.sa.observatory.platform_site_impl import PlatformSiteImpl from ion.services.sa.instrument.platform_agent_impl import PlatformAgentImpl from ion.services.sa.instrument.instrument_device_impl import InstrumentDeviceImpl from ion.services.sa.instrument.sensor_device_impl import SensorDeviceImpl # some stuff for logging info to the console log = DotDict() def mk_logger(level): def logger(fmt, *args): print "%s %s" % (string.ljust("%s:" % level, 8), (fmt % args)) return logger log.debug = mk_logger("DEBUG") log.info = mk_logger("INFO") log.warn = mk_logger("WARNING") @attr('INT', group='sa') class TestL4CiSaReqs(IonIntegrationTestCase): """ assembly integration tests at the service level """ def setUp(self): # Start container self._start_container() self.container.start_rel_from_url('res/deploy/r2deploy.yml')
import string from ion.services.sa.test.helpers import any_old # some stuff for logging info to the console log = DotDict() def mk_logger(level): def logger(fmt, *args): print "%s %s" % (string.ljust("%s:" % level, 8), (fmt % args)) return logger log.debug = mk_logger("DEBUG") log.info = mk_logger("INFO") log.warn = mk_logger("WARNING") @attr('INT', group='sa') class TestL4CiSaReqs(IonIntegrationTestCase): """ assembly integration tests at the service level """ def setUp(self): # Start container self._start_container() self.container.start_rel_from_url('res/deploy/r2deploy.yml') # Now create client to DataProductManagementService
from interface.services.sa.idata_product_management_service import DataProductManagementServiceClient from interface.services.sa.idata_acquisition_management_service import DataAcquisitionManagementServiceClient from interface.services.sa.iinstrument_management_service import InstrumentManagementServiceClient from interface.services.sa.iobservatory_management_service import ObservatoryManagementServiceClient import requests, json # some stuff for logging info to the console import sys log = DotDict() printout = sys.stderr.write printout = lambda x: None log.debug = lambda x: printout("DEBUG: %s\n" % x) log.info = lambda x: printout("INFO: %s\n" % x) log.warn = lambda x: printout("WARNING: %s\n" % x) _obj_count = {} @attr('INT', group='sa') class TestLCAServiceGateway(IonIntegrationTestCase): """ LCA integration tests at the service gateway level """ def setUp(self): # Start container self._start_container() self.container.start_rel_from_url('res/deploy/r2deploy.yml')
from pyon.core.object import IonObjectSerializer from ion.services.coi.service_gateway_service import GATEWAY_RESPONSE, GATEWAY_ERROR, GATEWAY_ERROR_MESSAGE, GATEWAY_ERROR_EXCEPTION # some stuff for logging info to the console log = DotDict() def mk_logger(level): def logger(fmt, *args): print "%s %s" % (string.ljust("%s:" % level, 8), (fmt % args)) return logger log.debug = mk_logger("DEBUG") log.info = mk_logger("INFO") log.warn = mk_logger("WARNING") @attr('INT', group='sa') class TestAssembly(IonIntegrationTestCase): """ assembly integration tests at the service level """ def setUp(self): # Start container self._start_container() self.container.start_rel_from_url('res/deploy/r2deploy.yml') # Now create client to DataProductManagementService