1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-22 10:54:23 +01:00
This commit is contained in:
cn 2013-04-27 15:20:08 +02:00
parent 09f4afe99e
commit 8c4cf4ecd4

View File

@ -9,7 +9,7 @@ describe Dyndnsd::Daemon do
'users' => { 'users' => {
'test' => { 'test' => {
'password' => 'secret', 'password' => 'secret',
'hosts' => ['foo.example.org'] 'hosts' => ['foo.example.org', 'bar.example.org']
} }
} }
} }
@ -103,11 +103,21 @@ describe Dyndnsd::Daemon do
last_response.body.should == 'notfqdn' last_response.body.should == 'notfqdn'
end end
it 'outputs status per hostname' do it 'outputs status for hostname' do
pending authorize 'test', 'secret'
get '/nic/update?hostname=foo.example.org&myip=1.2.3.4'
last_response.should be_ok
last_response.body.should == 'good 1.2.3.4'
end end
it 'supports multiple hostnames in request' do it 'supports multiple hostnames in request' do
authorize 'test', 'secret'
pending pending
get '/nic/update?hostname=foo.example.org,bar.example.org&myip=1.2.3.4'
last_response.should be_ok
last_response.body.should == "good 1.2.3.4\ngood 1.2.3.4"
end end
end end