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) * @see VAppClient#answerQuestion(URI, VmQuestionAnswer)
*/ */
@PUT @POST
@Path("/question/action/answer") @Path("/question/action/answer")
@Produces(VM_PENDING_ANSWER) @Produces(VM_PENDING_ANSWER)
@Consumes @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)}. * The answer IDs of choice and question should match the ones returned from operation {@link #getPendingQuestion(URI)}.
* *
* <pre> * <pre>
* PUT /vApp/{id}/question/action/answer * POST /vApp/{id}/question/action/answer
* </pre> * </pre>
* *
* @since 0.9 * @since 0.9

View File

@ -786,7 +786,7 @@ public class VAppClientLiveTest extends AbstractVAppClientLiveTest {
checkVmPendingQuestion(question); 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() { public void testAnswerQuestion() {
// TODO check that the question has been answered (e.g. asking for getPendingQuestion does not // TODO check that the question has been answered (e.g. asking for getPendingQuestion does not
// include our answered question). // include our answered question).