`atlas-mvn verify` doesn't load default test data like `atlas-integration-test` for confluence

EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2017

My experience and articles like https://developer.atlassian.com/docs/getting-started/writing-and-running-plugin-tests/create-test-data-and-a-test-fixture suggest that most `atlas-FOO` methods will pull down a minimal set of test data for each product, enough to skip the new product install pages (in memory DB, basic license key, etc)

  When you first start the application and load your plugin, 
the atlas- commands download the specified <productDataVersion>,
unzip it, and use it to seed the PLUGIN_HOME/target/application/home directory.




However, running `mvn integration-test` is a discouraged practice, because post-integtation-test phase is never called, and might have important tear-down instructions bound to it.   Instead you should run `mvn verify` which runs IT and post-IT lifecycle phases.

http://maven.apache.org/surefire/maven-failsafe-plugin/

NOTE: when running integration tests, you should invoke Maven with the (shorter to type too)

mvn verify
rather than trying to invoke the integration-test phase directly, as otherwise the post-integration-test phase will not be executed.

 

However it seems for confluence specifically that running `atlas-mvn verify` does not load any test data, and my ITs are blocked at a "select database type" page.

 

This is only an issue for confluence, all other products seem to load typical plugin defaults.

 

JIRA loads fine

Screen Shot 2017-05-11 at 1.32.24 PM.png

Confluence wants full setupScreen Shot 2017-05-11 at 1.33.16 PM.png

 

 

Screen Shot 2017-05-11 at 1.34.42 PM.png

1 answer

1 vote
Omar Mohamed Fathi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2023

following same issue

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events