Closed manics closed 6 years ago
Added a test (uses modified omero-test-infra)
Though looks like travis isn't enabled on this repo.
Thanks, I've got it working with test-data
and lib-test
based on https://github.com/ome/minimal-omero-client/pull/27
There's a bug though: https://github.com/openmicroscopy/omero-test-infra/pull/24
Closing and re-opening to trigger travis.
+docker run --link omeroprometheustools_omero_1:omero --net omeroprometheustools_default --rm -d -p 9449:9449 --name omero-prometheus-tools test -s omero -u root -w omero -c /opt/omero-prometheus-tools/etc/prometheus-omero-counts.yml -v
03f86f091f8ce3938bdc610b1ad31e629ce7a196c13f0f6ff9b0d6d24fec9a39
+sleep 10
+./test.py
PASSED
and weekly cron activated.
Nicely done. Shall his become 0.1.1?
👍 for 0.1.1.
Fixes https://trello.com/c/lLxHorjS/5609-prom-exporter-unicodedecodeerror
OMERO rstrings may contain unicode, but they are not automatically converted to Python unicode. This solution involved some trial-and-error.
Testing:
omero-prometheus-tools.py -s pub-omero.openmicroscopy.org -u PRIVILEGED-USER -w PASSWORD -v -c etc/prometheus-omero-counts.yml
against a server that has Unicode group names e.g. pub-omero and go to http://localhost:9449/