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

Posting test cases for NIP47 #520

Closed
wants to merge 5 commits into from

Conversation

AnkitGaurNms
Copy link
Contributor

PR for issue #438

public void verifySmsThreadNotBlocking() {
// linking with an API which always returns 202
settingsFacade.setProperty(SMS_NOTIFICATION_URL,
"http://www.mocky.io/v2/55acd492052573e005262f0f");
Copy link
Contributor

Choose a reason for hiding this comment

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

@AnkitGaurNms @srivastavaAbhi These tests have been commented out from IntegrationTests.java since we don't have an uptime guarantee from mocky.io . While this might be ok to run locally, we have no reliable way to decouple from mocky.io 's service status and our build health.

Copy link
Contributor

Choose a reason for hiding this comment

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

@koshalt : That's fine. We look for some other alternative and update cases soon.

@koshalt
Copy link
Contributor

koshalt commented Jul 23, 2015

I'm not sure how this is related to #434 . @frankhuster @srivastavaAbhi ?

@srivastavaAbhi
Copy link
Contributor

@koshalt : We are trying to check the code behavior upon receiving 202 from IMI. This is the only relation of this test case with #434 .

@frankhuster
Copy link
Contributor

What's the status on this?

Check the behaviour of code after getting 202 from IMI
@srivastavaAbhi
Copy link
Contributor

@koshalt : Idea is to check the code behavior after getting 202 from the IMI.
I can only see the row in Alert Table in case of code other than 202 , so just put a assert in that and not sure whether it's right or not.

@frankhuster : Any suggestion ?

update
@ResponseStatus(HttpStatus.ACCEPTED)
@ResponseBody
public String sendSMS202NIP47(@RequestBody String template) {
return "OK";
Copy link
Contributor

Choose a reason for hiding this comment

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

@srivastavaAbhi There seems to be multiple versions of this mock responder api for 200/202 in place in multiple PRs. Can you help consolidate?

Copy link
Contributor

Choose a reason for hiding this comment

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

@koshalt Sure. I will do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR has been merged into #542

@koshalt koshalt deleted the NMS.FT.ImiSmsNotificationServiceIT branch October 30, 2015 16:49
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.

5 participants