spec/apps/dummy/app/models/mock_user.rb in scimitar-1.3.3 vs spec/apps/dummy/app/models/mock_user.rb in scimitar-1.4.0

- old
+ new

@@ -3,11 +3,11 @@ # =========================================================================== # TEST ATTRIBUTES - see db/migrate/20210304014602_create_mock_users.rb etc. # =========================================================================== READWRITE_ATTRS = %w{ - id + primary_key scim_uid username first_name last_name work_email_address @@ -36,11 +36,11 @@ return Scimitar::Resources::User end def self.scim_attributes_map return { - id: :id, + id: :primary_key, externalId: :scim_uid, userName: :username, name: { givenName: :first_name, familyName: :last_name @@ -90,10 +90,10 @@ return nil end def self.scim_queryable_attributes return { - 'id' => { column: :id }, + 'id' => { column: :primary_key }, 'externalId' => { column: :scim_uid }, 'meta.lastModified' => { column: :updated_at }, 'name.givenName' => { column: :first_name }, 'name.familyName' => { column: :last_name }, 'emails' => { columns: [ :work_email_address, :home_email_address ] },