search for: user_test

Displaying 20 results from an estimated 35 matches for "user_test".

2012 Apr 04
1
sambaHomePath usage
My name is Camelia Botez and I'm linux system admin. I try to configure samba server usind ldap authentication and different sambaHomePath from login home directory. For ex. A user user_test has his home (login) directory /home/user_test and I want , using samba map on windows to have /srv/user_test home directory for this user. We included in ldap schema 2 attributes sambaHomeDrive (H: ) And sambaHomePath that for a test user is /srv/user_test instead of /home/user_test. In ldap the...
2003 Aug 13
0
Password change problems
Dear Sir I?m terribly confused about one problem in our environment. We have one NIS+SAMBA environment, running in E450 with Solaris 7. Apparently, after one system patch application, the password change is not working. Please look this: 1) In the server, with root account: # passwd user_test New password: Re-enter new password: NIS passwd/attributes changed on server passwd (SYSTEM): Password database busy. Try again later. Permission denied # # su - user_test Sun Microsystems Inc. SunOS 5.7 Generic October 1998 You have mail. > id uid=9718(user_test) gid=118(users) > pas...
2006 Apr 13
3
Salted Hash Login Generator problem
Im trying to install salted and get errors when running the rake test... /usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader .rb" "test/unit/localization_test.rb" "test/unit/user_test.rb" Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader Started ........F....E Finished in 0.108794 seconds. 1) Failure: test_auth(UserTest) [./test/unit/user_test.rb:9]: <nil> expected but was <#<User:0xb75d7210 @attributes= {"salt"=>&...
2004 Nov 03
5
FireFly Problems
...sip.conf disallow=all ; First we Deny Everything allow = ulaw ; Then we set our preferred codec allow = gsm ; Then our backup codec allow = g729 ; And our last resort codec and my account entry used to be: [user_test] context=user_testing type=friend username=user_test secret=hidden qualify=yes host=dynamic canreinvite=no dtmfmode=inband nat=yes mailbox=1012@home_users callerid="Test" <1234567890> accountcode=1 amaflags=omit but dtmfmode=rfc2833 now. -------------- ne...
2006 Jul 31
0
validates_confirmation_of won''t work
...; "newbob", :password => "newpassword", :email => "newbob@mcbob.com" ) u.password_confirmation = "newpassword" assert u.save #(this is line 17) end ---------------------------- this yields: $ ruby test/unit/user_test.rb Loaded suite test/unit/user_test Started F. Finished in 0.343036 seconds. 1) Failure: test_test(UserTest) [test/unit/user_test.rb:17]: <false> is not true. 2 tests, 2 assertions, 1 failures, 0 errors ---------------------------- Can anyone see an error i can''t? For the life...
2006 Apr 28
2
Accessing fixtures from unit tests
...quire File.dirname(__FILE__) + ''/../test_helper'' class UserTest < Test::Unit::TestCase fixtures :users def test_find user = User.find(@admin.id) assert_equals(@admin.id,user.id) end end When I run the test, I get this: C:\ruby\workspace\lms>ruby test/unit/user_test.rb Loaded suite test/unit/user_test Started E Finished in 0.156 seconds. 1) Error: test_find(UserTest): RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id test/unit/user_test.rb:7:in `test_find'' 1 tests, 0 assertions, 0...
2006 Jun 08
1
Test errors
...ve_support/dependencies. b:131:in `const_missing'' c:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1 /lib/active_support/dependencies. b:133:in `const_missing'' C:/InstantRails/rails_apps/userauth/config/../app/models/user.rb:34:in `send_new_password'' user_test.rb:130:in `test_send_new_password'' 0 tests, 56 assertions, 0 failures, 1 errors TIA Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060608/c8fcad66/attachment.html
2006 Jun 23
1
''Series'' Pluralization
...ar /^(ox)en/i, ''\1'' # inflect.irregular ''person'', ''people'' inflect.uncountable %w( series ) end Everything seems to work alright except for my tests. nevans@bell:/var/www2/freepets/test/unit$ ls content_series_test.rb content_test.rb user_test.rb nevans@bell:/var/www2/freepets/test/fixtures$ ls content_series.yml contents.yml users.yml nevans@bell:/var/www2/freepets$ rake test:units (in /var/www2/freepets) /usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/unit/use...
2006 May 02
2
Autotest doesn''t work on WinXP?
When I try to run autotest (zenspider) (which looks VERY cool), I get this error: (run from within a Rails app directory) C:\ruby_home\analysis>autotest -rails # Testing updated files + c:/ruby/bin/ruby -Ilib:test -e ''["test/unit/user_test.rb", "test/unit/role_test.rb"].each { |f| load f }'' | unit_diff -u ''c:'' is not recognized as an internal or external command, operable program or batch file. # Test::Unit exited without a parseable failure or error message. # You probably have a synta...
2006 May 04
2
Testing associations
I have a pretty simple model, articles and users. class Article belongs_to :user end class User has_many :articles end In my unit tests I want to ensure that the associations work properly. What''s the best way to do this? The obvious thing to do is a test in each model. # user_test.rb def test_add_post u = users(:first) before_articles = u.articles.count u.articles << Article.new(:title => "Title", :body => "Body") u.reload assert_equal before_articles + 1, u.articles.count end # article_test.rb def test_create_with_u...
2006 Apr 26
1
Bug in validates_associated?
...s XP, InstantRails, MySQL 14.7, Ruby 1.8.4, Rails 1.1.2 MODEL: class Office<ActiveRecord::Base has_many :users end class User<ActiveRecord::Base belongs_to :office validates_presence_of :office_id validates_associated :office <....other stuff...> end UNIT_TEST test/unit/user_test.rb def test_associations u = User.new u.office_id = 2222 # Invalid office id assert !u.save # Expected because of the invalid office id u.office_id = 2 # Valid office ID, found in fixtures assert u.save # This works! So far, so good u.office_id = 2222 as...
2012 Nov 17
0
How to get more debug information in test log ?
...gged ... Using the test console , there is no error at all : > rails console test >> Loading test environment (Rails 3.2.9.rc3) > site1 = FactoryGirl.create(:cms_site, label: "booboo") >> BEGIN .. .. >> but running my tests > unit > ruby -Itest test/unit/user_test.rb -n "/should_save_user_with_required_fields/" >> STARTED >> Error: test_should_save_user_with_required_fields(UserTest) NoMethodError: undefined method `respond_to?='' for #<Cms::Page:0x007fa0435bba68> test/factories/cms_layout.rb:14:in `block (3 levels)...
2015 Dec 02
1
"Failed to add users for testing" - pdb_getsampwnam (TDB): error fetching database
...register passdb backend tdbsam Successfully added passdb backend 'tdbsam' Found pdb backend tdbsam pdb backend tdbsam has a valid init new password: retype new password: tdbsam_open: successfully opened /var/lib/samba/private/passdb.tdb pdb_getsampwnam (TDB): error fetching database. Key: USER_testing Finding user testing Trying _Get_Pwnam(), username as lowercase is testing Trying _Get_Pwnam(), username as uppercase is TESTING Checking combinations of 0 uppercase letters in testing Get_Pwnam_internals didn't find user [testing]! Could not find user testing and no add script defined...
2005 Oct 25
2
generate scaffold ignores controller parameter
...ld User Admin exists app/controllers/ exists app/helpers/ create app/views/users exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/user.rb create test/unit/user_test.rb create test/fixtures/users.yml create app/views/users/_form.rhtml create app/views/users/list.rhtml create app/views/users/show.rhtml create app/views/users/new.rhtml create app/views/users/edit.rhtml create app/controllers/users_controller.rb...
2006 Mar 08
1
indexing a document object fails
...C:/dev/workspace/fred/config/../vendor/ferret/index/index.rb:259:in `<<'' C:/dev/workspace/fred/config/../vendor/ferret/index/index.rb:238:in `synchronize'' C:/dev/workspace/fred/config/../vendor/ferret/index/index.rb:238:in `<<'' C:\dev\workspace\fred/test/unit/user_test.rb:56:in `test_index_document_sanity_check'' Which appears to be caused because elsif doc.is_a?(Document) is expecting a Ferret::Document rather than Ferret::Document::Document. When I change this line to elsif doc.is_a?(Document::Document) I get past the indexing part, and am able to...
2006 May 03
6
Scaffold Generation Problem
...create app/controllers/admin create app/helpers/admin create app/views/admin/user create test/functional/admin dependency model exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/user.rb create test/unit/user_test.rb create test/fixtures/users.yml #28000Access denied for user ''root''@''localhost'' (using password: NO) -- Posted via http://www.ruby-forum.com/.
2006 Mar 01
1
maddening intermittent failures in unit tests with "working" code
Hi all, This testing problem has been a sink for time today, and is still unresolved. Basically I have some unit tests that test simple functions (example below) that depend on join operations in a habtm relationship, and I suspect I am getting "false" failures, i.e ones that do not logically make any sense. I need fresh sets of eyes to take a look and see if I''m mising
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
...scaffold user exists app/controllers/ exists app/helpers/ create app/views/user exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/user.rb create test/unit/user_test.rb create test/fixtures/user.yml wrong argument type Fixnum (expected String) and it generates only app/models/user.rb I generated the model and the controller: E:\radrails\projects\MPS>ruby script\generate model user create app/models/ create test/unit/ create t...
2005 Mar 04
0
About Security Mode ADS and User Coexist(intermix)??
while "security =3D ads" fail ,revert "security =3D user" example : AD Account ad_test Local Account user_test while request username =3D user_test, can login ad_test can login too How to do it ???From dave at dcdata.co.za Fri Mar 4 07:48:58 2005 From: dave at dcdata.co.za (David Wilson) Date: Fri Mar 4 07:49:34 2005 Subject: [Samba] Re: Logon Hours problems (really stuck) References: <0153...
2006 Jun 10
2
readline problems
...TABLE / PRIMARY KEY will create implicit index "users_pkey" for table "users" ** Execute test:units /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/unit/localization_test.rb" "test/unit/user_test.rb" dyld: NSLinkModule() error dyld: Symbol not found: _rl_filename_completion_function Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.6.0/readline.bundle Expected in: flat namespace rake aborted! Command failed with status (): [/usr/local/bin/ruby -Ilib:test "/usr/loca...