Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt scripts and tests for stem-less operation
mederly committed Mar 27, 2019
1 parent a384fd4 commit 6fd3b49
Showing 4 changed files with 12 additions and 35 deletions.
3 changes: 3 additions & 0 deletions demo/complex/after-installation.sh
@@ -12,6 +12,9 @@ $(dirname "$0")/test-resources-1.sh
echo -e "${B} * Recomputing Grouper admin group and user object...${N}"
$(dirname "$0")/recompute.sh

echo -e "${B} * Waiting 120 seconds for changes to propagate to Grouper...${N}"
sleep 120

echo -e "${B} * Testing Grouper resource...${N}"
$(dirname "$0")/test-resource-grouper.sh

Binary file not shown.
13 changes: 9 additions & 4 deletions demo/complex/tests/main.bats
@@ -209,11 +209,16 @@ load ../../../library
check_of_ldap_membership banderson "ou=groups,dc=internet2,dc=edu" "sysadmingroup" complex_directory_1
}

@test "260 Export groups" {
#@test "255 Wait 120 seconds for changes to be propagated to Grouper" {
# if [ -e $BATS_TMPDIR/not-started ]; then skip 'not started'; fi
#
# sleep 120
#}

@test "260 Export ref groups" {
if [ -e $BATS_TMPDIR/not-started ]; then skip 'not started'; fi

docker cp tests/resources/grouper/t260.gsh complex_grouper_daemon_1:/tmp/
docker exec complex_grouper_daemon_1 bash -c "/opt/grouper/grouper.apiBinary/bin/gsh /tmp/t260.gsh"
./add-ref-groups.sh
}

@test "265 Wait 120 seconds for changes to be propagated to MQ" {
@@ -273,7 +278,7 @@ load ../../../library
if [ -e $BATS_TMPDIR/not-started ]; then skip 'not started'; fi

assert_ldap_user_has_value wprice Entitlement "midpoint:test" complex_directory_1
assert_ldap_user_has_value wprice Entitlement "midpoint:alum" complex_directory_1
assert_ldap_user_has_value wprice Entitlement "ref:affiliation:alum" complex_directory_1
}

@test "350 Add kwhite to 'midpoint:test', remove wprice from 'ref:affiliation:alum_includes'" {
31 changes: 0 additions & 31 deletions demo/complex/tests/resources/grouper/t260.gsh

This file was deleted.

0 comments on commit 6fd3b49

Please sign in to comment.