Displaying 20 results from an estimated 35 matches for "user_testing".
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
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
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)
2004 Nov 03
5
FireFly Problems
...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.
-------------- next part --------------...
2006 Jul 31
0
validates_confirmation_of won''t work
Hello folks, this is the first time I''ve written to this forum. If
there''s already a topic on this, forgive me but the search isn''t working
right now.
I seem to have a problem validating confirmation of a password. The
first two snippets are some model code and some test code that work just
fine:
----------------------------
class Challenge < ActiveRecord::Base
2006 Apr 28
2
Accessing fixtures from unit tests
I have set up some fixtures in test/fixtures/users.xml:
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
admin:
id: 1
username: admin
password: admin
pbarry:
id: 2
username: pbarry
I have a unit test for my user model:
require File.dirname(__FILE__) + ''/../test_helper''
class UserTest < Test::Unit::TestCase
fixtures :users
def
2006 Jun 08
1
Test errors
I''m working on learning user auth and ran a test/unit/test.rb and seem to
have stumbled across some errors. This is from a tutorial on the web and I
pretty much copied the code and checked syntax so not sure where it''s
wrong. I thought I''d throw it out since I"m new to ROR and the error didn''t
look too bad ;), perhaps someone would have a better
2006 Jun 23
1
''Series'' Pluralization
Howdy,
I have a model I called ''content_series''. I created it and noticed that
Rails called it ''Sery'', so I added ''series'' to the uncountable thing in
the config, like this:
Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, ''\1en''
# inflect.singular /^(ox)en/i, ''\1''
#
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
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
2006 Apr 26
1
Bug in validates_associated?
Here is the setup:
Windows 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 =
2012 Nov 17
0
How to get more debug information in test log ?
Im one of my unit tests, I got an error I cannot even start looking for the
issue as few information are logged ...
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
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
F...
2005 Oct 25
2
generate scaffold ignores controller parameter
Since I upgraded from Rails 0.13.1 to 0.14.1 "generate scaffold <Model>
<Controller>" doesn''t take any notice of the controller parameter. Anyone
else suffering from this? E.g.:
C:\Ruby\work\test>ruby script\generate scaffold User Admin
exists app/controllers/
exists app/helpers/
create app/views/users
exists test/functional/
2006 Mar 08
1
indexing a document object fails
Hi,
I''m trying out the example (more or less) straight from the tutorial:
doc = Document.new
doc << Field.new("id", "a", Field::Store::NO,
Field::Index::UNTOKENIZED)
doc << Field.new("title", "b", Field::Store::YES, Field::Index::UNTOKENIZED)
doc << Field.new("data", "c",
2006 May 03
6
Scaffold Generation Problem
Greetings all,
I''m sure there is probably a very obvious reason for the following
problem. However, after much hair pulling, I am just not seeing it yet.
As you can see from the trace below, I am not able to complete scaffold
generation due to some problem between rails and mysql. I double
checked MySQL to make sure both my Ruby user and Root user have full
rights to the database.
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
Hello,
I have Oracle XE installed.
I have a table USERS.
When I try to generate a scaffold it gives me this error.
I tried also with Mysql and it worked.
E:\radrails\projects\MPS>ruby script\generate scaffold user
exists app/controllers/
exists app/helpers/
create app/views/user
exists test/functional/
dependency model
exists app/models/
exists
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
2006 Jun 10
2
readline problems
I get the following error:
rake test_units --trace
** Invoke test_units (first_time)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute db:test:clone
**