Testing pods interaction

23 views
Skip to first unread message

Sherman Mendelsohn

unread,
Feb 25, 2012, 12:26:05 PM2/25/12
to diaspora-dev
Hi!

I am beginner in cucumber testing and can't understand one thing. How
are you testing interaction between the pods?

Are you implement commands like this:
ruby
`cd ../`
`cp -r diaspora diaspora2`
`cd diaspora2`
`rails s -p 3001`
#here will be testing action.
`rails stop`
`cd ..`
`rm -r diaspora2`
`cd diaspora`

Or you do something more interesting?

I can't find some useful help for this.

Sherman Mendelsohn

unread,
Mar 3, 2012, 2:37:06 PM3/3/12
to diaspora-dev
Bump!

This is really very important for me.

Can anybody help? Please!

Sarah Mei

unread,
Mar 3, 2012, 2:43:27 PM3/3/12
to diaspo...@googlegroups.com
I don't think we have cucumber features right now that spin up two
Diaspora pods and test interaction between them.

We do have a cucumber feature that tests our oauth setup
(features/oauth.feature) by spinning up an external app called
Chubbies that uses the Diaspora API. You can look at
features/step_definitions/oauth_steps.rb for more info on how that
happens. The code for the external application is at spec/chubbies.

Sherman Mendelsohn

unread,
Mar 4, 2012, 3:49:09 AM3/4/12
to diaspora-dev
Sarah, thanks, your information is helpful.

But some things are difficult for a while.

1. Where are you define these methods:
Chubbies.kill
Chubbies.run
Chubbies.running?

2. There aren't tests about send a message to chubby, get they
friends, et.c.

Cheers

Sarah Mei

unread,
Mar 5, 2012, 10:48:18 PM3/5/12
to diaspo...@googlegroups.com
I'm not sure where those are defined. I'd just grep through the code for them. This cucumber feature tests that the app can connect over distributed oauth and post to a user's account. If you'd like to write tests that spin up more than one server, have a look.
> --
> You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
> To post to this group, send email to diaspo...@googlegroups.com.
> To unsubscribe from this group, send email to diaspora-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/diaspora-dev?hl=en.
>
>
Reply all
Reply to author
Forward
0 new messages