File tree 4 files changed +24
-2
lines changed
4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 12
12
/data /suppress_uids.txt
13
13
/data /hr_tree.xml
14
14
/data /faculty_education.csv
15
+ /data /test-data.inc.php
15
16
/data /unl_sis_bio.txt
16
17
/data /unl_sis_prog.txt
17
18
/node_modules /
Original file line number Diff line number Diff line change @@ -74,6 +74,21 @@ php scripts/import_sis_data.php
74
74
75
75
Note: this needs to be ran at least once a day to keep the data in the cache
76
76
77
+ ## Sample User (Optional)
78
+
79
+ The idea is to simulate a person record that doesn't exist in the official identity system.
80
+
81
+ Reasons to do this:
82
+ - So there is a permanent person (that won't quit or retire) for another system to use for testing.
83
+ - As a test/development record for possible schema changes or to see how different data affects output.
84
+ - As an Easter egg.
85
+
86
+ To enable and use the sample user:
87
+ To use:
88
+ 1 ) Copy /data/test-data.inc_sample.php to /data/test-data.inc.php and edit if desired.
89
+ 2 ) Make sure the include of /data/test-data.inc.php and the setting of UNL_Peoplefinder::$sampleUID are uncommented in config.inc.php
90
+
91
+
77
92
## INSTALL
78
93
79
94
1 ) Run: 'npm install; grunt; composer install'
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ /**
4
+ * To use:
5
+ * Copy this file to /data/test-data.inc.php
6
+ * Make sure the lines related to this file and UNL_Peoplefinder::$sampleUID are uncommented in config.inc.php
7
+ */
8
+
3
9
/**
4
10
* Sample of the result of the query in UNL_Peoplefinder_Driver_OracleDB->fixLDAPEntries()
5
11
* Simulates the result for one person: hhusker1
Original file line number Diff line number Diff line change 46
46
UNL_Peoplefinder::$ testDomains = array ('directory-test.unl.edu ' , 'localhost ' );
47
47
48
48
// Sample user ID
49
- UNL_Peoplefinder::$ sampleUID = 'hhusker1 ' ;
50
- include_once __DIR__ . '/../data/test-data.inc.php ' ;
49
+ // UNL_Peoplefinder::$sampleUID = 'hhusker1';
50
+ // include_once __DIR__ . '/../data/test-data.inc.php';
You can’t perform that action at this time.
0 commit comments