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

andrug
28.25.2008 3621a7ced80fe3ce8141940ff78b25c99e9b58c3
allow clients to use localhost
2 files modified
17 ■■■■ changed files
opendj-sdk/opends/tests/system-tests/phases/parser/parser.py 3 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/system-tests/phases/parser/parser.xml 14 ●●●● patch | view | raw | blame | history
opendj-sdk/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
    
opendj-sdk/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