diff --git a/lib/galaxy/tools/verify/asserts/hdf5.py b/lib/galaxy/tools/verify/asserts/hdf5.py index f64314fe1ea..624e6e69888 100644 --- a/lib/galaxy/tools/verify/asserts/hdf5.py +++ b/lib/galaxy/tools/verify/asserts/hdf5.py @@ -31,3 +31,21 @@ def assert_has_h5_keys(output_bytes, keys): output_temp = io.BytesIO(output_bytes) local_keys = sorted(list(h5py.File(output_temp, 'r').keys())) assert local_keys == h5_keys, "Not a HDF5 file or H5 keys do not match:\n\t%s\n\t%s" % (local_keys, h5_keys) + + +def assert_contains_h5_keys(output_bytes, keys): + """ Asserts the specified HDF5 output contains the given keys, including recursive group paths.""" + _assert_h5py() + keys = [k.strip() for k in keys.strip().split(',')] + h5_keys = sorted(keys) + output_temp = io.BytesIO(output_bytes) + local_keys = [] + def append_keys(key): + local_keys.append(key) + return None + h5py.File(output_temp, 'r').visit(append_keys) + missing = 0 + for key in h5_keys: + if key not in local_keys: + missing += 1 + assert missing == 0, "Not a HDF5 file or H5 keys missing:\n\t%s\n\t%s" % (local_keys, h5_keys) diff --git a/lib/galaxy/tools/xsd/galaxy.xsd b/lib/galaxy/tools/xsd/galaxy.xsd index 86eb7bbec48..d1c007c9bad 100644 --- a/lib/galaxy/tools/xsd/galaxy.xsd +++ b/lib/galaxy/tools/xsd/galaxy.xsd @@ -1652,6 +1652,8 @@ module. + + @@ -1668,6 +1670,16 @@ module. + + + ``).]]> + + + + Comma-separated list of HDF5 attributes to check for. + + + ``).]]> diff --git a/lib/galaxy/web/proxy/js/lib/proxy.js b/lib/galaxy/web/proxy/js/lib/proxy.js index 1857e2632e1..88f14fc1b20 100644 --- a/lib/galaxy/web/proxy/js/lib/proxy.js +++ b/lib/galaxy/web/proxy/js/lib/proxy.js @@ -60,6 +60,7 @@ DynamicProxy.prototype.rewriteRequest = function(request) { DynamicProxy.prototype.targetForRequest = function(request) { // return proxy target for a given url var session = this.findSession(request); + console.log('Session: ', session); for (var mappedSession in this.sessionMap) { if(session == mappedSession) { return this.sessionMap[session].target; @@ -70,8 +71,10 @@ DynamicProxy.prototype.targetForRequest = function(request) { }; DynamicProxy.prototype.findSession = function(request) { + console.log("SessionCookie: ", this.sessionCookie); var sessionCookie = this.sessionCookie, rc = request.headers.cookie; + console.log('RequestCookie: ', rc); if(!rc) { return null; } @@ -91,6 +94,10 @@ DynamicProxy.prototype.findSession = function(request) { DynamicProxy.prototype.handleProxyRequest = function(req, res) { var othis = this; var target = this.targetForRequest(req); + console.log(req.method); + console.log(req.url); + console.log(target.host); + console.log(target.port); if(this.debug) { console.log("PROXY " + req.method + " " + req.url + " to " + target.host + ':' + target.port); } diff --git a/test-data/matrix.mcool b/test-data/matrix.mcool deleted file mode 100644 index fdc18221c35..00000000000 Binary files a/test-data/matrix.mcool and /dev/null differ diff --git a/test/functional/tools/validation_hdf5.xml b/test/functional/tools/validation_hdf5.xml index f66fa618835..12651b5b744 100644 --- a/test/functional/tools/validation_hdf5.xml +++ b/test/functional/tools/validation_hdf5.xml @@ -13,7 +13,8 @@ - + +