Issue 830: Fix HTTP method for answerQuestion operation

This commit is contained in:
Andrew Donald Kennedy 2012-03-21 14:00:32 +00:00
parent 4706ea4057
commit 26646872d5
3 changed files with 3 additions and 3 deletions

View File

@ -515,7 +515,7 @@ public interface VAppAsyncClient {
/**
* @see VAppClient#answerQuestion(URI, VmQuestionAnswer)
*/
@PUT
@POST
@Path("/question/action/answer")
@Produces(VM_PENDING_ANSWER)
@Consumes

View File

@ -574,7 +574,7 @@ public interface VAppClient {
* The answer IDs of choice and question should match the ones returned from operation {@link #getPendingQuestion(URI)}.
*
* <pre>
* PUT /vApp/{id}/question/action/answer
* POST /vApp/{id}/question/action/answer
* </pre>
*
* @since 0.9

View File

@ -786,7 +786,7 @@ public class VAppClientLiveTest extends AbstractVAppClientLiveTest {
checkVmPendingQuestion(question);
}
@Test(testName = "PUT /vApp/{id}/question/action/answer", dependsOnMethods = { "testGetPendingQuestion" })
@Test(testName = "POST /vApp/{id}/question/action/answer", dependsOnMethods = { "testGetPendingQuestion" })
public void testAnswerQuestion() {
// TODO check that the question has been answered (e.g. asking for getPendingQuestion does not
// include our answered question).