Details
-
Type:
Story
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_middleware
-
Labels:None
-
Sprint:TSSW Sprint - Jan 31 - Feb 14
-
Team:Telescope and Site
-
Urgent?:No
Description
I would like each SAL unit test to run with its own LSST_DDS_PARTITION_PREFIX. In Python one can simply modify the environment before each test and it appears that C++ also supports this (Petr Kubanek?). But Java apparently cannot modify environment variables.
So: please add an optional argument to the SAL object constructor that allows specifying the partition prefix. If omitted the environment variable should be used, and that is how we'd run in production.
Attachments
Issue Links
- relates to
-
DM-33273 Explore System Rules to set LSST_DDS_PARTITION_PREFIX for each Java unit test
- Done
https://stackoverflow.com/questions/8168884/how-to-test-code-dependent-on-environment-variables-using-junit System Rules library shall allow env modifications: https://github.com/stefanbirkner/system-rules