mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

andrug
28.25.2008 47384b423af97551c0621d30a4ffe3034157d015
allow clients to use localhost
2 files modified
17 ■■■■ changed files
opends/tests/system-tests/phases/parser/parser.py 3 ●●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/parser/parser.xml 14 ●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/parser/parser.py
@@ -314,6 +314,9 @@
  def getHost(self):
    return self.host
    
  def setHost(self,host):
    self.host = host
  def getParams(self):
    return self.params
    
opends/tests/system-tests/phases/parser/parser.xml
@@ -103,9 +103,17 @@
      
      <!-- replace localhost by real host name -->
      <script>
        # for instances
        for instance in instances:
          if (instance.getHost() == 'localhost'):
            instance.setHost(STAXServiceMachine.split('.')[0])
        # for clients
        for m in scheduler:
          for c in m.getClients():
            if (c.getHost() == 'localhost'):
              c.setHost(STAXServiceMachine.split('.')[0])
      </script>
      
      <!-- ports should not be the same           -->
@@ -148,9 +156,9 @@
      <!-- client id should be unique -->
      <script>
        clients = []
        for g in scheduler:
          if (g.getEnabled() == "true"):
            clients.extend(g.getClients())
        for m in scheduler:
          if (m.getEnabled() == "true"):
            clients.extend(m.getClients())
        
        nbClients = len(clients)
        i = 0