String ns2 = "onap";
pa.setProperty(Config.AAF_LOCATOR_NS+".helm", ns2);
for(String dot_le : new String[] {"",".helm"}) {
- String pns;
- if(dot_le.isEmpty()) {
- pns = ns;
- } else {
- pns = ns2;
- }
assertEquals(rph.hostname,rph.default_fqdn);
assertEquals("",rph.lcontainer);
assertEquals(rph.hostname,rph.public_hostname);
target = "mycontns.org.osaaf.aaf.theName";
assertEquals(target,rph.replacements(fqdn, name, ".hello"));
- pa.setProperty(Config.AAF_LOCATOR_CONTAINER+".hello","hello");
- target = "hello.mycontns.org.osaaf.aaf.theName";
+ pa.setProperty(Config.AAF_LOCATOR_CONTAINER+".hello","helloC");
+ target = "helloC.mycontns.org.osaaf.aaf.theName";
assertEquals(target,rph.replacements(fqdn, name, ".hello"));
pa.setProperty(Config.AAF_LOCATOR_CONTAINER_NS,"c_ns");