search for: open_sess

Displaying 20 results from an estimated 20 matches for "open_sess".

2006 Apr 10
0
open_session for functional tests; should it be moved or used in this way?
Hi all, I''m chewing through writing some functional tests for an app at the moment, and it occurs to me that open_session could be used to help write single-controller tests as well as the integration ones. Used as described here[1]; it''s an extremely useful idiom. Any thoughts? Should it be moved, or generally made available, or am I missing the point here? Regards Chris [1] http://jamis.jamisbuck.org/...
2006 Jul 08
0
Testing cookies - integration tests
Hello, I''m trying to test some cookie code with some integration tests, but I''m not sure if this is possible. Currently I''m creating a session (using open_session) running some code that sets my cookie and this works fine, the cookie is being set. Now cookies are supposed to exist across different sessions, so I try to create a new session (again with open_session), but the cookie value no longer exists. My code does work if I''m not testing...
1999 Nov 22
0
OpenSSH 1.2pre14 fails on pam_open_session() ...
...about PAM under Solaris 7/x86 then I do, that can maybe tackle this, and/or suggestion a route to take to fix? After doing some debugging, it looks like the problem is a seg fault at: sshd.c:void pam_cleanup_proc(void *context) =========================================== debug("PAM_retval(open_session) about to run"); pam_retval = pam_open_session((pam_handle_t *)pamh, 0); debug("PAM_retval(open_session) successful"); if (pam_retval != PAM_SUCCESS) { log("PAM session setup failed: %.200s", PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); do_fake_a...
2008 Jan 16
1
session data and user stories
...terial, specifically in terms of integration testing a rails application, and i am curious about the most friendly way to deal with session data. currently, the only way i have found to simulate a session is to open a session and refer to everything afterward via the @session variable stored after open_session. it seems to be workable, but is far from ideal: dir = File.dirname(__FILE__) require ''rubygems'' require ''spec/story'' require "#{dir}/helper" steps_for(:dealer_login) do Given("I have opened a session") do @session = open_sessio...
2020 Jul 02
2
(no subject)
...by (uid=0) Jul 2 16:15:05 samba-cliente systemd-logind[635]: New session c7 of user lightdm. Jul 2 16:15:05 samba-cliente systemd: pam_unix(systemd-user:session): session opened for user lightdm by (uid=0) Jul 2 16:15:05 samba-cliente lightdm: pam_kwallet(lightdm-greeter:session): (null): pam_sm_open_session Jul 2 16:15:05 samba-cliente lightdm: pam_kwallet(lightdm-greeter:session): pam_kwallet: open_session called without kwallet_key Jul 2 16:15:05 samba-cliente lightdm: pam_kwallet5(lightdm-greeter:session): (null): pam_sm_open_session Jul 2 16:15:05 samba-cliente lightdm: pam_kwallet5(lightdm-...
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
...ruby/gems/1.8/gems/actionwebservice-1.2.1/lib/ action_web_service/test_invoke.rb:32:in `prepare_request'' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.1/lib/ action_web_service/test_invoke.rb:9:in `invoke'' It seems that the default @request in the setup is corrupted by our open_session implementation? Can somebody help me on this? Best regards, Jeroen Knoops --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-tal...
2020 Jul 01
0
help whith linux client on domain
...et5: pam_sm_setcred Jul 1 12:31:30 samba-cliente lightdm: pam_unix(lightdm:session): session opened for user jmperrote by (uid=0) Jul 1 12:31:30 samba-cliente systemd-logind[635]: New session c4 of user jmperrote. Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet(lightdm:session): (null): pam_sm_open_session Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet(lightdm:session): pam_kwallet: open_session called without kwallet_key Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet5(lightdm:session): (null): pam_sm_open_session Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet5(lightdm:session): pam_kw...
1999 Nov 22
1
[s-x86] OpenSSH 1.2pre14 fails on pam_open_session() ...
On Mon, 22 Nov 1999, Philip Brown wrote: > [ Marc G. Fournier writes ] > > debug("PAM_retval(open_session) about to run"); > > pam_retval = pam_open_session((pam_handle_t *)pamh, 0); > > > > > =========================================== > > > > so, its looking like I'm authenticated properly, but when trying to set up > > the whole environment, it...
2007 Jan 09
1
assert_redirected_to not working as expected
..."welcome" end ... private def post_signup(login, email, password, confirm_password) post "/account/signup", :login => login, :email => email, :password => password, :confirm_password => confirm_password end end def enter_site(name) open_session do |session| session.extend(BrowsingTestDSL) session.name = name yield session if block_given? end end end === I''m on Windows and am running the test using this command: > ruby test/integration/authentication_test.rb - n test_successful_signup Resulting in...
2020 Jul 02
0
(no subject)
...5 samba-cliente systemd-logind[635]: New session c7 of user > lightdm. > Jul 2 16:15:05 samba-cliente systemd: pam_unix(systemd-user:session): > session opened for user lightdm by (uid=0) > Jul 2 16:15:05 samba-cliente lightdm: > pam_kwallet(lightdm-greeter:session): (null): pam_sm_open_session > Jul 2 16:15:05 samba-cliente lightdm: > pam_kwallet(lightdm-greeter:session): pam_kwallet: open_session called > without kwallet_key > Jul 2 16:15:05 samba-cliente lightdm: > pam_kwallet5(lightdm-greeter:session): (null): pam_sm_open_session > Jul 2 16:15:05 samba-cliente...
2007 Sep 14
2
Mocks in StoryRunner
...r doing something for first time) FAILED NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:519:in `open_session'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:490:in `reset!'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:546:in `method_missing'' /home/jhughes/dev/rj/csite/config/../vendor/plugins/rspec/lib/...
2020 Jul 01
2
(no subject)
...et5: pam_sm_setcred Jul 1 12:31:30 samba-cliente lightdm: pam_unix(lightdm:session): session opened for user jmperrote by (uid=0) Jul 1 12:31:30 samba-cliente systemd-logind[635]: New session c4 of user jmperrote. Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet(lightdm:session): (null): pam_sm_open_session Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet(lightdm:session): pam_kwallet: open_session called without kwallet_key Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet5(lightdm:session): (null): pam_sm_open_session Jul 1 12:31:30 samba-cliente lightdm: pam_kwallet5(lightdm:session): pam_kw...
2020 Jul 03
2
(no subject)
...ogind[635]: New session c7 of user > > lightdm. > > Jul 2 16:15:05 samba-cliente systemd: pam_unix(systemd-user:session): > > session opened for user lightdm by (uid=0) > > Jul 2 16:15:05 samba-cliente lightdm: > > pam_kwallet(lightdm-greeter:session): (null): pam_sm_open_session > > Jul 2 16:15:05 samba-cliente lightdm: > > pam_kwallet(lightdm-greeter:session): pam_kwallet: open_session called > > without kwallet_key > > Jul 2 16:15:05 samba-cliente lightdm: > > pam_kwallet5(lightdm-greeter:session): (null): pam_sm_open_session > >...
2007 Sep 19
1
Strange error in StoryRunner (was: Mocks in StoryRunner)
...NoMethodError: You have a nil object when you didn''t expect it! > > You might have expected an instance of Array. > > The error occurred while evaluating nil.each > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:519:in > > `open_session'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:490:in > > `reset!'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:546:in > > `method_missing'' > > /home/jhughe...
2006 May 25
0
post to a webservice in an integration test?
...ring if anyone out there knows how to generate a SOAP post using the session object in an integration test. I couldn''t find documentation on how to do so, but perhaps I''m overlooking something. I would like to call a webservice on my server in the following block: def login open_session do |sess| ... sess.post "mywebservice/api", {:username => "username", :password => "password"}, #SOAP header info? end end Any examples would be much appreciated. Thanks, Jaime -------------- next part -------------- An HTML attachment w...
2006 Oct 24
1
python-interactive for CentOS/EL 4
...sh]$ ./demo.py Traceback (most recent call last): File "./demo.py", line 34, in ? import interactive ImportError: No module named interactive The import causing the problem is... import paramiko import interactive And the code snippet where interactive is used is... chan = t.open_session() chan.get_pty() chan.invoke_shell() print '*** Here we go!' print interactive.interactive_shell(chan) chan.close() t.close() I've Googled a bit but "python", "module" and "interactive" generally return about a million result...
2003 Feb 26
0
PAM merge from FreeBSD
A few things to keep in mind: - kbd-int should call pam_authenticate(), acct_mgmt(), chauthtok(), if required, setcred(PAM_ESTABLISH_CRED) and open_session() ALL during kbd-int so that modules in each of those PAM stacks can prompt the user (pam_open_session(), for example, may prompt a user with an informational message akin to the last login message) - all userauth methods should call pam_acct_mgmt() and force kbd-int, via partial u...
2020 Jul 02
3
(no subject)
1) Does 'getent passwd policia\gafranchello' produce output when run on a Unix client ? If try to logon on unis console --> auth.log Jul 2 14:13:59 samba-cliente sshd[11654]: Invalid user POLICIA+gafranchello from 172.33.10.1 Jul 2 14:13:59 samba-cliente sshd[11654]: input_userauth_request: invalid user POLICIA+gafranchello [preauth] Jul 2 14:14:04 samba-cliente sshd[11654]:
2016 Mar 04
7
[Bug 2548] New: Make pam_set_data/pam_get_data work with OpenSSH
..._acct_mgmt | | | | | pam_chauthtok | | | | | X | | | | X | pam_setcred | pam_open_session | fork ------ (authenticated child) | | | setreuid(100) | | | fork ------- (future shell) | | | | | exec(bash) | |...
2002 Jul 31
18
so-called-hang-on-exit
so, should this go into 3.5? Index: serverloop.c =================================================================== RCS file: /home/markus/cvs/ssh/serverloop.c,v retrieving revision 1.103 diff -u -r1.103 serverloop.c --- serverloop.c 24 Jun 2002 14:33:27 -0000 1.103 +++ serverloop.c 12 Jul 2002 16:34:20 -0000 @@ -388,6 +388,11 @@ buffer_append(&stderr_buffer, buf, len); } } + /*