Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some integration tests break because of the Docker configuration #1277

Open
ipolevoy opened this issue Mar 21, 2023 · 0 comments
Open

Some integration tests break because of the Docker configuration #1277

ipolevoy opened this issue Mar 21, 2023 · 0 comments

Comments

@ipolevoy
Copy link
Member

The suggestion is to fix them by configuring docker-maven-plugin, here is one example:

<plugin>
      <groupId>io.fabric8</groupId>
      <artifactId>docker-maven-plugin</artifactId>
      <version>0.33.0</version>
      <configuration>
          <images>
              <image>
                  <name>cassandra:2.1</name>
                  <build>
                      <from>cassandra:2.1</from>
                  </build>
                  <run>
                      <ports>
                          <port>9043:9042</port>
                      </ports>
                      <wait>
                          <!--FYI: apparently this is not working on Windows: https://github.com/fabric8io/docker-maven-plugin/issues/549 -->
                          <tcp>
                              <mode>direct</mode>
                              <ports>
                                  <port>9042</port>
                              </ports>
                          </tcp>
                          <time>30000</time>
                          <kill>1000</kill>
                          <shutdown>500</shutdown>
                      </wait>
                  </run>
              </image>
          </images>
      </configuration>
      <executions>
          <execution>
              <id>docker:start</id>
              <phase>validate</phase>
              <goals>
                  <goal>start</goal>
              </goals>
          </execution>
          <execution>
              <id>docker:stop</id>
              <phase>compile</phase>
              <goals>
                  <goal>stop</goal>
              </goals>
          </execution>
      </executions>
  </plugin>
ipolevoy added a commit that referenced this issue Mar 21, 2023
added  migrator module to integation tests to skip  testing when running integration tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant