Example #1
0
 def setUpClass(cls):
     try:
         del os.environ['KEEP_LOCAL_STORE']
     except KeyError:
         pass
     run_test_server.run()
     run_test_server.run_keep(blob_signing_key='abcdefghijk0123456789',
                              enforce_permissions=False)
Example #2
0
    def setUpClass(cls):
        super(KeepProxyTestCase, cls).setUpClass()

        try:
            del os.environ['KEEP_LOCAL_STORE']
        except KeyError:
            pass

        os.environ["ARVADOS_KEEP_PROXY"] = ""
        os.environ["ARVADOS_EXTERNAL_CLIENT"] = ""

        run_test_server.run()
        run_test_server.run_keep()
        arvados.keep.global_client_object = None
        arvados.config._settings = None
        run_test_server.run_keep_proxy("admin")
        KeepProxyTestCase.arvados_keep_proxy = arvados.config.get("ARVADOS_KEEP_PROXY")
Example #3
0
    def setUpClass(cls):
        super(KeepTestCase, cls).setUpClass()
        try:
            del os.environ['KEEP_LOCAL_STORE']
        except KeyError:
            pass

        # Make sure these are clear, we want to talk to the Keep servers
        # directly.
        os.environ["ARVADOS_KEEP_PROXY"] = ""
        os.environ["ARVADOS_EXTERNAL_CLIENT"] = ""

        run_test_server.run()
        run_test_server.run_keep()
        arvados.keep.global_client_object = None
        arvados.config._settings = None
        run_test_server.authorize_with("admin")
Example #4
0
    def setUpClass(cls):
        try:
            del os.environ['KEEP_LOCAL_STORE']
        except KeyError:
            pass

        # Use the blob_signing_key from the Rails "test" configuration
        # to provision the Keep server.
        with open(os.path.join(os.path.dirname(__file__),
                               run_test_server.ARV_API_SERVER_DIR,
                               "config",
                               "application.yml")) as f:
            rails_config = yaml.load(f.read())
        try:
            config_blob_signing_key = rails_config["test"]["blob_signing_key"]
        except KeyError:
            config_blob_signing_key = rails_config["common"]["blob_signing_key"]
        run_test_server.run()
        run_test_server.run_keep(blob_signing_key=config_blob_signing_key,
                                 enforce_permissions=True)
Example #5
0
 def setUpClass(cls):
     run_test_server.run()
     run_test_server.run_keep(enforce_permissions=True, num_servers=2)
Example #6
0
 def setUpClass(cls):
     run_test_server.run()
     run_test_server.run_keep(enforce_permissions=True, num_servers=2)
Example #7
0
 def setUpClass(cls):
     run_test_server.run()
     run_test_server.run_keep(enforce_permissions=True, num_servers=2)
     run_test_server.authorize_with('active')
Example #8
0
def start():
    run_test_server.run()
    run_test_server.run_keep()
Example #9
0
def start():
    run_test_server.run()
    run_test_server.run_keep()
Example #10
0
 def setUpClass(cls):
     run_test_server.run()
     run_test_server.run_keep(enforce_permissions=True, num_servers=2)
     run_test_server.authorize_with('active')