Skip to content

GEODE-7287: Add test to REST function exec with a filter#4147

Merged
mivanac merged 2 commits intoapache:developfrom
Nordix:feature/GEODE-7287
Oct 17, 2019
Merged

GEODE-7287: Add test to REST function exec with a filter#4147
mivanac merged 2 commits intoapache:developfrom
Nordix:feature/GEODE-7287

Conversation

@albertogpz
Copy link
Contributor

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

Comment on lines 29 to 31
/**
* Gemfire function to get the description of an order
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the function name is fairly self-explanatory, I would delete this comment.

Copy link
Contributor

@jdeppe-pivotal jdeppe-pivotal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please would you also add a negative (failing) test - for example when setting filter=1

@jdeppe-pivotal
Copy link
Contributor

Thanks for adding this test! I think it exposes a deficiency in the FunctionAccessController for which I have opened https://issues.apache.org/jira/browse/GEODE-7290. In this particular case the function call results in a NPE, but that isn't ever visible to the caller. The failure just ends up being a 500 error.

@mivanac mivanac merged commit c5d005e into apache:develop Oct 17, 2019
@albertogpz albertogpz deleted the feature/GEODE-7287 branch October 17, 2019 13:55
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

Successfully merging this pull request may close these issues.

4 participants