Fix test and make sure icecast is at the bottom of the sql command chain

This commit is contained in:
jam 2014-01-08 01:42:59 +00:00
parent 25f4d9b449
commit 8c51eb31db
2 changed files with 5 additions and 10 deletions

View File

@ -42,16 +42,16 @@ create table icecast_admin_authentications (
-- The default username for all source connections is 'source' but
-- this option allows to specify a default password. This and the username
-- can be changed in the individual mount sections.
source_password character NOT NULL DEFAULT 'icejam321',
source_password VARCHAR NOT NULL DEFAULT 'icejam321',
-- Used in the master server as part of the authentication when a slave requests
-- the list of streams to relay. The default username is 'relay'
relay_user character NOT NULL DEFAULT 'relay',
relay_password character NOT NULL DEFAULT 'jkrelayhack',
relay_user VARCHAR NOT NULL DEFAULT 'relay',
relay_password VARCHAR NOT NULL DEFAULT 'jkrelayhack',
--The username/password used for all administration functions.
admin_user character NOT NULL DEFAULT 'jkadmin',
admin_password character NOT NULL DEFAULT 'jKadmin123',
admin_user VARCHAR NOT NULL DEFAULT 'jkadmin',
admin_password VARCHAR NOT NULL DEFAULT 'jKadmin123',
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP

View File

@ -12,9 +12,4 @@ describe IcecastAdminAuthentication do
admin.save.should be_true
end
it "non-string password should be checked" do
admin.source_password = 1
admin.save.should be_false
admin.errors[:source_password].should == ['is not a string']
end
end