Looking for Business Scenarios that require multiple services to work together

26 views
Skip to first unread message

pf...@thoughtworks.com

unread,
Aug 28, 2016, 4:29:45 AM8/28/16
to OpenLMIS Dev
Hi all,

I am trying to set up contract and E2E tests.

I am looking for Business Scenarios that require multiple services to work together.

Could anyone help to point me at the correct direction? 

What is a good point to start it with? Is there any completed feature that involve multiple services talking to each other?

Any help will be appreciated.
Meanwhile, I will be looking through the existing code looking for clues.

Thanks and regards,
Pengfei

Mary Jo Kochendorfer

unread,
Aug 29, 2016, 4:54:31 PM8/29/16
to pf...@thoughtworks.com, OpenLMIS Dev

Hi Pengfei,

 

I have a bunch of business scenarios where they will and should interact but it is my understanding that they are not yet implemented.  For instance, creating a requisition will leverage AUTH, Requisitions, ReferenceData.  However, as you point out it isn’t implemented yet. 

 

There may be an example of Notifications and Requisitions, but I’m not sure.  Pawel/Sebastian/Chris, could you confirm if there is any implementation of two services working together?

 

Thanks,

mj

--
You received this message because you are subscribed to the Google Groups "OpenLMIS Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev...@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/365351bb-79d5-4081-9f77-8e00a50f6d61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Krzysztof Kaczmarczyk

unread,
Aug 30, 2016, 9:53:34 AM8/30/16
to pf...@thoughtworks.com, OpenLMIS Dev, Mary Jo Kochendorfer
Hi Pengfei,

Thanks for bringing that up.
Currently basic implementation example involves interaction between Auth service and Requisition. In short words one has to reach Auth service (with proper credentials) in order to generate token, and then pass it along each request to Requisition service. More tech details are at:
https://github.com/OpenLMIS/openlmis-example#security

A more recent example (still wip, but use-able) would be 'Re/Set Password' functionality, which involves Requisition/Auth and Notification services interaction. Basically, when user forgot his password, he enters a link, a reset password link (with expirable token) is generated and sent to User in email via Notification service.
Related tickets are
OLMIS-588
OLMIS-907

After separation of Reference data service from Requisition, there should be a ton of business scenarios.

I'd be happy to answer any questions

Thanks,
Chris

pf...@thoughtworks.com

unread,
Aug 30, 2016, 10:37:15 PM8/30/16
to OpenLMIS Dev, pf...@thoughtworks.com, maryjo.ko...@villagereach.org, Jake Watson
Hi Chris,

Thank you for the info.

I have implemented a contract test that involves auth and requisition: 

How other contract tests could be done is documented here:

It would be nice for someone from Soldevelo to try to write another contract test. 

@Mary Jo and @Jake, do you think we can schedule someone to try it out? In the process, we can figure out what works well and what does not work well, and improve based on that.

To post to this group, send email to ...@googlegroups.com.

Paweł Gesek

unread,
Aug 31, 2016, 9:40:05 AM8/31/16
to openlm...@googlegroups.com

Hello,

we can get a QA with some dev assistance to give a stab at the test(spec + steps), they can start tomorrow.

Regards,

Paweł

Mary Jo Kochendorfer

unread,
Aug 31, 2016, 11:41:30 AM8/31/16
to Paweł Gesek, openlm...@googlegroups.com

Sounds like a great idea. Thanks.

pf...@thoughtworks.com

unread,
Aug 31, 2016, 11:56:08 PM8/31/16
to OpenLMIS Dev
👌👍

pf...@thoughtworks.com

unread,
Sep 1, 2016, 8:19:45 AM9/1/16
to OpenLMIS Dev
Hey Pawel and Chris,

I have setup contract test job in Jenkins: http://build.openlmis.org/view/Requisitoin/

Please take a look and let me know if you have suggestions or question.

Thanks


On Wednesday, August 31, 2016 at 9:40:05 PM UTC+8, Paweł Gesek wrote:

Paweł Gesek

unread,
Sep 6, 2016, 7:22:04 AM9/6/16
to openlm...@googlegroups.com

Hello,

Ania has written an example test, but we do not have rights to push to the contract tests repo. Can someone give rights to the soldevelo Github team?

Thanks,
Paweł

pf...@thoughtworks.com

unread,
Sep 6, 2016, 10:08:22 AM9/6/16
to OpenLMIS Dev
Just added admin access to the repo for team developers and team soldevelo.
If Ania is in either team, pushing should be ok now.

Paweł Gesek

unread,
Sep 6, 2016, 12:16:27 PM9/6/16
to pf...@thoughtworks.com, OpenLMIS Dev


Thanks Pengfei, Ania pushed her test to the createFacilityType branch.

Regards,
Paweł

Reply all
Reply to author
Forward
0 new messages