Mailinglist Archive: yast-devel (81 mails)

< Previous Next >
[yast-devel] WebYaST - webservice - failing functional tests in plugins
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Thu, 15 Apr 2010 11:33:21 +0200
  • Message-id: <4BC6DD61.2010309@xxxxxxx>
Hi all,

I have found that many functional tests in webservice plugins fails.

The reason is that PERMISSION_CHECK_TESTING in permission_check
function has been removed. (see commit 1e3ac993a336)

If your functional test fails with error:

permission_check1: User does not exist, #<Account id: 1, login: "test_user",
....

then add this stub into the test setup function:

PolKit.stubs(:polkit_check).with('org.opensuse.yast.system.FOO',
'test_user').returns(:yes)



--

Best Regards

Ladislav Slez√°k
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups