test/unit/pds_test.rb in authpds-0.0.16 vs test/unit/pds_test.rb in authpds-0.0.17
- old
+ new
@@ -1,11 +1,11 @@
require 'test_helper'
class PdsTest < ActiveSupport::TestCase
def setup
- @pds_url = "https://login.library.nyu.edu"
+ @pds_url = "https://logindev.library.nyu.edu"
@calling_system = "authpds"
@valid_pds_handle_for_nyu = VALID_PDS_HANDLE_FOR_NYU
@valid_pds_handle_for_newschool = VALID_PDS_HANDLE_FOR_NEWSCHOOL
@invalid_pds_handle = INVALID_PDS_HANDLE
@attribute = "bor_info"
@@ -35,11 +35,11 @@
test "get_attribute_invalid" do
get_attribute = Authpds::Exlibris::Pds::GetAttribute.new(@pds_url, @calling_system, @invalid_pds_handle, "bor_info")
assert_equal("Error User does not exist", get_attribute.error)
end
- test "bor_info_valid" do
+ test "bor_info_valid_nyu" do
nyu = Authpds::Exlibris::Pds::BorInfo.new(@pds_url, @calling_system, @valid_pds_handle_for_nyu, @bor_info_attributes)
assert_equal("N12162279", nyu.id)
assert_equal("std5", nyu.uid)
assert_equal("N12162279", nyu.nyuidn)
assert_equal("51", nyu.bor_status)
@@ -50,9 +50,12 @@
assert_equal("Dalton", nyu.lastname)
assert_equal("Y", nyu.ill_permission)
assert_equal("GA", nyu.college_code)
assert_equal("CSCI", nyu.dept_code)
assert_equal("Information Systems", nyu.major)
+ end
+
+ test "bor_info_valid_newschool" do
newschool = Authpds::Exlibris::Pds::BorInfo.new(@pds_url, @calling_system, @valid_pds_handle_for_newschool, @bor_info_attributes)
assert_equal("N00206454", newschool.id)
assert_equal("314519567249252", newschool.uid)
assert_equal("N00206454", newschool.nyuidn)
assert_equal("31", newschool.bor_status)