feat: Add "detail" parameter to CanvasesCreateResponse & CanvasesEditResponse#1570
feat: Add "detail" parameter to CanvasesCreateResponse & CanvasesEditResponse#1570Lexer11l wants to merge 8 commits intoslackapi:mainfrom
Conversation
feat: Add "title" parameter to CanvasesCreateResponse
Added tests for error handling in canvases.create and canvases.edit methods.
WilliamBergamin
left a comment
There was a problem hiding this comment.
Hi @Lexer11l thanks for opening this PR 🙏
The changes seem accurate, would you also be able to update slack-api-client/src/test/java/test_locally/api/methods/CanvasesTest.java to include your changes
slack-api-client/src/test/java/test_with_remote_apis/methods/canvases_Test.java
Show resolved
Hide resolved
Hi @WilliamBergamin, sure! |
@WilliamBergamin I figured out that the way how mock is set up doesn't allow setting up successful and failing cases at the same time because text fixture is read only from one file: What would you suggest here? |
For this scenario I think its fine if we omit the changes to |
Alright, I added the missing import |
WilliamBergamin
left a comment
There was a problem hiding this comment.
Would you be able to share with me the manifest of the app you used to run the integration tests 🤔
I'm not able to get your test to pass from my end
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running test_with_remote_apis.methods.canvases_Test
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.853 s <<< FAILURE! -- in test_with_remote_apis.methods.canvases_Test
[ERROR] test_with_remote_apis.methods.canvases_Test.error_detail -- Time elapsed: 0.571 s <<< FAILURE!
java.lang.AssertionError:
Expected: is not null
but: was null
Adding
detailtoCanvasesCreateResponse&CanvasesEditResponseCategory (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.
Issue:
#1568