Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
Minor changes and refactorings
Auxiliary scripts added. CSV target files added. Refactored/simplified some of the scripts.
Showing
16 changed files
with
600 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
docker cp add-ref-groups.gsh complex_grouper_daemon_1:/tmp/ | ||
docker exec complex_grouper_daemon_1 bash -c "/opt/grouper/grouper.apiBinary/bin/gsh /tmp/add-ref-groups.gsh" | ||
source ../../library.bash | ||
|
||
execute_gsh complex_grouper_daemon_1 add-ref-groups.gsh | ||
|
||
#docker cp add-ref-groups.gsh complex_grouper_daemon_1:/tmp/ | ||
#docker exec complex_grouper_daemon_1 bash -c "/opt/grouper/grouper.apiBinary/bin/gsh /tmp/add-ref-groups.gsh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
source ../../library.bash | ||
|
||
get_task_execution_status "Import from SIS courses" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
source ../../library.bash | ||
|
||
get_task_execution_status "Import from SIS persons" |
1 change: 1 addition & 0 deletions
1
demo/complex/midpoint_server/container_files/mp-home/cs-portal.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
identifier,name,mail,courses |
1 change: 1 addition & 0 deletions
1
demo/complex/midpoint_server/container_files/mp-home/faculty-portal.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
uid,givenName,familyName,fullName,mail |
1 change: 1 addition & 0 deletions
1
demo/complex/midpoint_server/container_files/mp-home/mailing-lists.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
uid,mail,lists |
This file was deleted.
Oops, something went wrong.
531 changes: 531 additions & 0 deletions
531
demo/complex/targets/container_files/seed-data/target.tmp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
docker cp update-bgasper-in-grouper.gsh complex_grouper_daemon_1:/tmp/ | ||
docker exec complex_grouper_daemon_1 bash -c "/opt/grouper/grouper.apiBinary/bin/gsh /tmp/update-bgasper-in-grouper.gsh" | ||
#!/bin/bash | ||
|
||
source ../../library.bash | ||
|
||
#docker cp update-bgasper-in-grouper.gsh complex_grouper_daemon_1:/tmp/ | ||
#docker exec complex_grouper_daemon_1 bash -c "/opt/grouper/grouper.apiBinary/bin/gsh /tmp/update-bgasper-in-grouper.gsh" | ||
|
||
execute_gsh complex_grouper_daemon_1 update-bgasper-in-grouper.gsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/bin/bash | ||
|
||
function upload () { | ||
local filename=$1 | ||
local regex="midpoint-objects.*/(.*)/(.*)" | ||
if [[ $filename =~ $regex ]] | ||
then | ||
type="${BASH_REMATCH[1]}" | ||
oid=`cat $filename | sed -n 's:.*oid=\"\([A-Za-z0-9\-]*\)\".*:\1:p' | sed -n '1 p'` | ||
echo "Uploading $filename ($type, $oid)" | ||
curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X PUT "https://localhost:8443/midpoint/ws/rest/$type/$oid?options=overwrite" --data-binary @$filename | ||
else | ||
echo "Skipping $filename" | ||
fi | ||
} | ||
source ../../library.bash | ||
|
||
upload midpoint-objects-manual/tasks/task-async-update-grouper.xml | ||
upload_from_file midpoint-objects-manual/tasks/task-async-update-grouper.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/bin/bash | ||
|
||
function upload () { | ||
local filename=$1 | ||
local regex="midpoint-objects.*/(.*)/(.*)" | ||
if [[ $filename =~ $regex ]] | ||
then | ||
type="${BASH_REMATCH[1]}" | ||
oid=`cat $filename | sed -n 's:.*oid=\"\([A-Za-z0-9\-]*\)\".*:\1:p' | sed -n '1 p'` | ||
echo "Uploading $filename ($type, $oid)" | ||
curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X PUT "https://localhost:8443/midpoint/ws/rest/$type/$oid?options=overwrite" --data-binary @$filename | ||
else | ||
echo "Skipping $filename" | ||
fi | ||
} | ||
source ../../library.bash | ||
|
||
upload midpoint-objects-manual/tasks/task-import-sis-courses.xml | ||
upload_from_file midpoint-objects-manual/tasks/task-import-sis-courses.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/bin/bash | ||
|
||
function upload () { | ||
local filename=$1 | ||
local regex="midpoint-objects.*/(.*)/(.*)" | ||
if [[ $filename =~ $regex ]] | ||
then | ||
type="${BASH_REMATCH[1]}" | ||
oid=`cat $filename | sed -n 's:.*oid=\"\([A-Za-z0-9\-]*\)\".*:\1:p' | sed -n '1 p'` | ||
echo "Uploading $filename ($type, $oid)" | ||
curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X PUT "https://localhost:8443/midpoint/ws/rest/$type/$oid?options=overwrite" --data-binary @$filename | ||
else | ||
echo "Skipping $filename" | ||
fi | ||
} | ||
source ../../library.bash | ||
|
||
upload midpoint-objects-manual/tasks/task-import-sis-persons.xml | ||
upload_from_file midpoint-objects-manual/tasks/task-import-sis-persons.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/bin/bash | ||
|
||
function upload () { | ||
local filename=$1 | ||
local regex="midpoint-objects.*/(.*)/(.*)" | ||
if [[ $filename =~ $regex ]] | ||
then | ||
type="${BASH_REMATCH[1]}" | ||
oid=`cat $filename | sed -n 's:.*oid=\"\([A-Za-z0-9\-]*\)\".*:\1:p' | sed -n '1 p'` | ||
echo "Uploading $filename ($type, $oid)" | ||
curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X PUT "https://localhost:8443/midpoint/ws/rest/$type/$oid?options=overwrite" --data-binary @$filename | ||
else | ||
echo "Skipping $filename" | ||
fi | ||
} | ||
source ../../library.bash | ||
|
||
upload midpoint-objects-manual/tasks/task-reconciliation-grouper-groups.xml | ||
upload_from_file midpoint-objects-manual/tasks/task-reconciliation-grouper-groups.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/bin/bash | ||
|
||
function upload () { | ||
local filename=$1 | ||
local regex="midpoint-objects.*/(.*)/(.*)" | ||
if [[ $filename =~ $regex ]] | ||
then | ||
type="${BASH_REMATCH[1]}" | ||
oid=`cat $filename | sed -n 's:.*oid=\"\([A-Za-z0-9\-]*\)\".*:\1:p' | sed -n '1 p'` | ||
echo "Uploading $filename ($type, $oid)" | ||
curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X PUT "https://localhost:8443/midpoint/ws/rest/$type/$oid?options=overwrite" --data-binary @$filename | ||
else | ||
echo "Skipping $filename" | ||
fi | ||
} | ||
source ../../library.bash | ||
|
||
upload midpoint-objects-manual/tasks/task-reconciliation-grouper-users.xml | ||
upload_from_file midpoint-objects-manual/tasks/task-reconciliation-grouper-users.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters