CDV ❯ tc-config <logs> element supports too many wildcards -- there is no unit test for these wildcards nor is it even possible to tests all scenarios
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Won't Fix
-
X-Common Code
-
-
hhuynh
-
Reporter: eellis
-
January 23, 2007
-
0
-
Watchers: 0
-
June 04, 2007
-
May 03, 2007
Description
ParameterSubstituter should only support two or three wildcards and should have a unit test to verify that they work correctly. Currently d, h, i, H, n, o, a, v, t, and all environment variables are supported. This is almost impossible to validate and complete overkill.
switch (nextChar) { case ādā: value = getUniqueTempDirectory(); break;
case 'h':
value = getHostname();
break;
case 'i':
value = getIpAddress();
break;
case 'H':
value = System.getProperty("user.home");
break;
case 'n':
value = System.getProperty("user.name");
break;
case 'o':
value = System.getProperty("os.name");
break;
case 'a':
value = System.getProperty("os.arch");
break;
case 'v':
value = System.getProperty("os.version");
break;
case 't':
value = System.getProperty("java.io.tmpdir");
break;
Comments
Fiona OShea 2007-02-07
Taylor Gautier 2007-02-23
Not a pressing issue for the current release - will re-evaluate for Noriega.
Fiona OShea 2007-04-10
Assigning to QA to run tests
Updating Due date to last day of Moraga dev iteration