- changed status to resolved
Failed with 406 Not Acceptable
Issue #1
resolved
I'm attempting to use the zapi-maven-plugin with an evaluation copy of JIRA with the Zephyr for JIRA plugin and ZAPI plugin. I believe I have configured my pom.xml appropriately, as follows:
<zapi.url>${jira.host.uri}</zapi.url>
<zapi.versionId>0.1</zapi.versionId>
<zapi.userName>${jira.username}</zapi.userName>
<zapi.password>${jira.password}</zapi.password>
<zapi.projectId>${jira.projectId}</zapi.projectId>
...
<plugin>
<groupId>com.thed.zapi</groupId>
<artifactId>zapi-maven-plugin</artifactId>
<version>0.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>zapi</goal>
</goals>
</execution>
</executions>
</plugin>
However, I'm receiving the following information in my build log:
[INFO] <<< zapi-maven-plugin:0.1:zapi (default) @ msp-acceptance-test <<<
[INFO]
[INFO] --- zapi-maven-plugin:0.1:zapi (default) @ msp-acceptance-test ---
[INFO] Inside ZAPI
ZAPI - the old way
[INFO] Inside ZAPI, Building Configuration
[INFO] Config is Configuration{baseUrl='http://jira.ip.address/', zapiUrl=http://jira.ip.address/rest/zapi/latest, jiraUrl=http://jira.ip.address/rest/api/latest, userName='jira_user', password='******', cyclePolicy=1, projectId='PRO', versionId='0.1'}
Feb 18, 2014 9:25:49 AM com.thed.zapi.rest.ZapiRestHelper <init>
INFO: {"zfj_build":"1465","customerId":"Nike","jira_db_type":"hsql","licenseDescription":"Zephyr for JIRA - Test Management for JIRA: Evaluation","zfj_version":"2.1.2","jira_app_server":"Apache Tomcat","jira_db_build":"6162","jira_version":"6.1.6"}
...
ERROR] Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project msp-acceptance-test: Execution default of goal com.thed.zapi:zapi-maven-plugin:0.1:zapi failed: 406 Not Acceptable -> [Help 1]
[ERROR]
I'm wondering if there are some missing headers in the request, or if I've configured the plugin incorrectly.
Comments (1)
-
reporter - Log in to comment
The problem lie in my configuration after all. I needed to provide the numeric projectId, not the keyword for the project. Additionally, zapi.versionId refers to the project's version in JIRA, which initializes to '-1'. The updated properties are now: