Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure on v46 #80

Closed
jesperfj opened this issue Mar 15, 2020 · 2 comments
Closed

Test failure on v46 #80

jesperfj opened this issue Mar 15, 2020 · 2 comments

Comments

@jesperfj
Copy link
Owner

When going from v45 to v46, com.force.api.BasicCRUDTest.basicCRUDTest fails. v46 returns code 200 where v45 returns expected code (201 or 204). What changed in Salesforce REST API between 45 and 46?

@jesperfj
Copy link
Owner Author

To reproduce, set default version in ApiVersion to 46:

DEFAULT_VERSION ("v46.0");

Then run the test with debug loggging:

mvn test -Dtest=com.force.api.BasicCRUDTest -Dorg.slf4j.simpleLogger.defaultLogLevel=debug
Running com.force.api.BasicCRUDTest
Setting test config from environment
[main] DEBUG com.force.api.ForceApi - Code: 200
[main] DEBUG com.force.api.ForceApi - Message: null
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.761 sec <<< FAILURE!
basicCRUDTest(com.force.api.BasicCRUDTest)  Time elapsed: 4.718 sec  <<< ERROR!
java.lang.RuntimeException
	at com.force.api.ForceApi.createOrUpdateSObject(ForceApi.java:275)
	at com.force.api.BasicCRUDTest.basicCRUDTest(BasicCRUDTest.java:64)

This behavior might be correct. But the error does not happen with API version 45 or earlier.

@jesperfj
Copy link
Owner Author

This is fixed in v0.0.43

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

No branches or pull requests

1 participant