Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1208

Fix cleanup of mongodb remote DB at test startup

    XMLWordPrintable

    Details

      Description

      Cleanup is currently only handled on databases using the default configuration:

      Excerpt from nuxeo-ftest.xml:

        <target name="mongodb-dbdrop" depends="_init,setup-mongodb-driver" if="maven.profile.mongodb">
          <echo level="info">Dropping database named '${nuxeo.mongodb.dbname}' on '${nuxeo.mongodb.server}'</echo>
          <if>
            <equals arg1="${nuxeo.mongodb.server}" arg2="localhost:27017" />
            <then>
              <exec executable="mongo">
                <arg line="${nuxeo.mongodb.dbname} --eval 'db.default.remove({})'" />
              </exec>
            </then>
          </if>
        </target>
      

      echo line added with NXBT-1203 shows the following output on https://qa.nuxeo.org/jenkins/job/Deploy/job/IT-nuxeo-master-tests-cap-tomcat-mongodb/, causing NXP-19973:

      04:15:42 cap-webdriver-tests.mongodb-dbdrop:
      04:15:42 [INFO]      [echo] Dropping database named 'dbjabba2' on '172.17.0.1'
      

      172.17.0.1 != localhost:27017 ==> no cleanup

      Maybe options with --host and maybe --port could be used in the command line for remote instances cleanup

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: