@@ -153,3 +153,89 @@ jobs:
153153 http://openam.example.org:8080/openam/json/authenticate | grep tokenId'
154154
155155 docker inspect --format="{{json .State.Health.Status}}" test-openam | grep -q \"healthy\"
156+
157+ echo "Add another two OpenAM servers to the cluster"
158+
159+ docker run --rm -it -d --memory="2g" -h openam2.example.org --name=test-openam2 --network test-openam localhost:5000/${GITHUB_REPOSITORY,,}:${{ env.release_version }}
160+
161+ echo "waiting for OpenAM-2 to be alive..."
162+ timeout 3m bash -c 'until docker inspect --format="{{json .State.Health.Status}}" test-openam2 | grep -q \"healthy\"; do sleep 10; done'
163+
164+ docker exec -w '/usr/openam/ssoconfiguratortools' test-openam2 bash -c \
165+ 'echo "ACCEPT_LICENSES=true
166+ SERVER_URL=http://openam2.example.org:8080
167+ DEPLOYMENT_URI=/$OPENAM_PATH
168+ BASE_DIR=$OPENAM_DATA_DIR
169+ locale=en_US
170+ PLATFORM_LOCALE=en_US
171+ AM_ENC_KEY=
172+ ADMIN_PWD=ampassword
173+ AMLDAPUSERPASSWD=password
174+ COOKIE_DOMAIN=example.org
175+ ACCEPT_LICENSES=true
176+ DATA_STORE=embedded
177+ DIRECTORY_SSL=SIMPLE
178+ DIRECTORY_SERVER=openam2.example.org
179+ DIRECTORY_PORT=50389
180+ DIRECTORY_ADMIN_PORT=4444
181+ DIRECTORY_JMX_PORT=1689
182+ ROOT_SUFFIX=dc=openam,dc=example,dc=org
183+ DS_DIRMGRDN=cn=Directory Manager
184+ DS_DIRMGRPASSWD=password
185+ existingserverid=http://openam1.example.org:8080
186+ LB_SITE_NAME=lb
187+ LB_PRIMARY_URL=http://lb.example.org:80/openam
188+ " > conf.file && java -jar openam-configurator-tool*.jar --file conf.file'
189+
190+ docker exec test-openam2 bash -c \
191+ ' curl \
192+ --request POST \
193+ --header "Content-Type: application/json" \
194+ --header "X-OpenAM-Username: amadmin" \
195+ --header "X-OpenAM-Password: ampassword" \
196+ --data "{}" \
197+ http://openam.example.org:8080/openam/json/authenticate | grep tokenId'
198+
199+ docker inspect --format="{{json .State.Health.Status}}" test-openam2 | grep -q \"healthy\"
200+
201+ docker run --rm -it -d --memory="2g" -h openam2.example.org --name=test-openam2 --network test-openam localhost:5000/${GITHUB_REPOSITORY,,}:${{ env.release_version }}
202+
203+ echo "waiting for OpenAM-3 to be alive..."
204+ timeout 3m bash -c 'until docker inspect --format="{{json .State.Health.Status}}" test-openam3 | grep -q \"healthy\"; do sleep 10; done'
205+
206+ docker exec -w '/usr/openam/ssoconfiguratortools' test-openam3 bash -c \
207+ ' echo "ACCEPT_LICENSES=true
208+ SERVER_URL=http://openam2.example.org:8080
209+ DEPLOYMENT_URI=/$OPENAM_PATH
210+ BASE_DIR=$OPENAM_DATA_DIR
211+ locale=en_US
212+ PLATFORM_LOCALE=en_US
213+ AM_ENC_KEY=
214+ ADMIN_PWD=ampassword
215+ AMLDAPUSERPASSWD=password
216+ COOKIE_DOMAIN=example.org
217+ ACCEPT_LICENSES=true
218+ DATA_STORE=embedded
219+ DIRECTORY_SSL=SIMPLE
220+ DIRECTORY_SERVER=openam2.example.org
221+ DIRECTORY_PORT=50389
222+ DIRECTORY_ADMIN_PORT=4444
223+ DIRECTORY_JMX_PORT=1689
224+ ROOT_SUFFIX=dc=openam,dc=example,dc=org
225+ DS_DIRMGRDN=cn=Directory Manager
226+ DS_DIRMGRPASSWD=password
227+ existingserverid=http://openam2.example.org:8080
228+ LB_SITE_NAME=lb
229+ LB_PRIMARY_URL=http://lb.example.org:80/openam
230+ " > conf.file && java -jar openam-configurator-tool*.jar --file conf.file'
231+
232+ docker exec test-openam3 bash -c \
233+ ' curl \
234+ --request POST \
235+ --header "Content-Type: application/json" \
236+ --header "X-OpenAM-Username: amadmin" \
237+ --header "X-OpenAM-Password: ampassword" \
238+ --data "{}" \
239+ http://openam.example.org:8080/openam/json/authenticate | grep tokenId'
240+
241+ docker inspect --format="{{json .State.Health.Status}}" test-openam3 | grep -q \"healthy\"
0 commit comments