I have prepared most actions into a simple docker-compose file to:
- Demonstrate how to use
- Verify behavior
- Act as a rudimental (but accurate) documentation
The product images used in this testing are the official SoftwareAG images for Software AG API Gateway and Developper Portal so this should be a breeze to try.
In order to run different compose files without having to recreate the base product stack, let's create an external network that we'll use in different compose:
docker network create -d bridge apimgt
docker-compose --env-file .env -f docker-compose-apimgt.yml up -d
Wait for the stack to come up...once loaded, the UIs shoudl be available:
- APIGateway: http://localhost:9072/
- Developer Portal: http://localhost:8083/portal/
You can login to each of these with default passwords etc... and nothing is configured at this point.
Here we're applying it all in 1 single configurator batch...which could be the possible way to do it in an automated environment.
docker-compose --env-file .env -f docker-compose-allinone.yml up -d
The tests will automatically run all the docker-compose services which names start with "config_" (essentially all the relevant test services)
sh run_tests.sh docker-compose.yml
IF you want to run ONLY the "allinone" services:
sh run_tests.sh docker-compose-allinone.yml
docker-compose run config_settings_changepassword
docker-compose run config_settings_loadbalancerurls
docker-compose run config_settings_coresettings
docker-compose run config_settings_keystores config_settings_truststores
docker-compose run config_settings_ssl_inbound_outbound_connections
docker-compose run config_settings_ports
docker-compose run config_settings_promotion_stages
docker-compose run config_settings_portalgateway
docker-compose run config_settings_localauth
docker-compose run config_settings_users
docker-compose run config_settings_usergroups
docker-compose run config_settings_userroles
docker-compose run config_settings_saml
docker-compose run config_data_import_archives
docker-compose run config_data_aliases
docker-compose run config_data_aliases_existing
docker-compose run config_data_apis
De-activate:
docker-compose run config_data_apis_deactivate
Activate:
docker-compose run config_data_apis_activate
docker-compose run config_data_plans
docker-compose run config_data_packages
De-activate:
docker-compose run config_data_packages_deactivate
Activate:
docker-compose run config_data_packages_activate
docker-compose run config_data_applications
De-activate:
docker-compose run config_data_applications_deactivate
Activate:
docker-compose run config_data_applications_activate
docker-compose run config_data_publish_apis
docker-compose run config_data_publish_packages
docker-compose down -v
Fabien Sanglier
- Emails: @Software AG // @Software AG Government Solutions
- Github:
This project is Licensed under the Apache License, Version 2.0 (the "License"); You may not use this project except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.