Skip to content

Ease of use mongo-import goal #52

@yacota

Description

@yacota

In #48 an easier way to import collections has been implemented, but I also think that being able to point to a "directory" instead of a single file(or list, whatever) would definetly increase the ease of use of this goal

<execution>
                <id>mongo-import</id>
                <phase>process-test-resources</phase>
                <goals>
                  <goal>mongo-import</goal>
                </goals>
                <configuration>
                  <imports>
                    <import>
                      <database>${mongodb.database.name}</database>
                      <file>${basedir}/src/test/resources/mongodata</file>
                    </import>
                  </imports>
                </configuration>
              </execution>

In mongodata I have a few dozen of json files which are created by following the convention described in issue #48.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions