Skip to content

Commit

Permalink
Uml 3016 service api onelogin logout endpoint (#2571)
Browse files Browse the repository at this point in the history
* Few dependency updates

* Introduce new logout endpoint and tests.

* Idea folder updates

* Ensure makefile cleans up after itself.
  • Loading branch information
cooperaj authored Apr 17, 2024
1 parent 54170a1 commit 626a246
Show file tree
Hide file tree
Showing 15 changed files with 323 additions and 113 deletions.
41 changes: 12 additions & 29 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,59 +121,59 @@ unit_test_all: | unit_test_viewer_app unit_test_actor_app unit_test_javascript u
.PHONY: unit_test_all

unit_test_viewer_app:
$(COMPOSE) run viewer-app /app/vendor/bin/phpunit
$(COMPOSE) run --rm viewer-app /app/vendor/bin/phpunit
.PHONY: unit_test_viewer_app

unit_test_actor_app:
$(COMPOSE) run actor-app /app/vendor/bin/phpunit
$(COMPOSE) run --rm actor-app /app/vendor/bin/phpunit
.PHONY: unit_test_actor_app

unit_test_javascript:
$(COMPOSE) run --entrypoint="/bin/sh -c" webpack "npm run test"
$(COMPOSE) run --rm --entrypoint="/bin/sh -c" webpack "npm run test"
.PHONY: unit_test_actor_app

unit_test_api_app:
$(COMPOSE) run api-app /app/vendor/bin/phpunit
$(COMPOSE) run --rm api-app /app/vendor/bin/phpunit
.PHONY: unit_test_api_app

enable_development_mode:
$(COMPOSE) run front-composer development-enable
$(COMPOSE) run api-composer development-enable
$(COMPOSE) run --rm front-composer development-enable
$(COMPOSE) run --rm api-composer development-enable
.PHONY: enable_development_mode

development_mode: | enable_development_mode clear_config_cache
.PHONY: development_mode

run_front_composer:
$(COMPOSE) run front-composer $(filter-out $@,$(MAKECMDGOALS))
$(COMPOSE) run --rm front-composer $(filter-out $@,$(MAKECMDGOALS))
.PHONY: run_front_composer

run_api_composer:
$(COMPOSE) run api-composer $(filter-out $@,$(MAKECMDGOALS))
$(COMPOSE) run --rm api-composer $(filter-out $@,$(MAKECMDGOALS))
.PHONY: run_api_composer

run_front_composer_install:
$(COMPOSE) run front-composer install --prefer-dist --no-suggest --no-interaction --no-scripts --optimize-autoloader
$(COMPOSE) run --rm front-composer install --prefer-dist --no-suggest --no-interaction --no-scripts --optimize-autoloader
.PHONY: run_front_composer_install

run_api_composer_install:
$(COMPOSE) run api-composer install --prefer-dist --no-suggest --no-interaction --no-scripts --optimize-autoloader
$(COMPOSE) run --rm api-composer install --prefer-dist --no-suggest --no-interaction --no-scripts --optimize-autoloader
.PHONY: run_api_composer_install

run_front_composer_update:
$(COMPOSE) run front-composer update
$(COMPOSE) run --rm front-composer update
.PHONY: run_front_composer_update

run_front_npm_update:
$(COMPOSE) run --entrypoint="/bin/sh -c" webpack "npm update"
$(COMPOSE) run --rm --entrypoint="/bin/sh -c" webpack "npm update"
.PHONY: run_front_npm_update

run_api_composer_update:
$(COMPOSE) run api-composer update
$(COMPOSE) run --rm api-composer update
.PHONY: run_api_composer_update

run_smoke_composer_update:
$(TEST_COMPOSE) run smoke-tests composer update
$(TEST_COMPOSE) run --rm smoke-tests composer update
.PHONY: run_smoke_composer_update

run_update: run_front_composer_update run_front_npm_update run_api_composer_update run_smoke_composer_update
Expand All @@ -186,7 +186,7 @@ clear_config_cache:
.PHONY: clear_config_cache

smoke_tests:
$(TEST_COMPOSE) run smoke-tests vendor/bin/behat $(filter-out $@,$(MAKECMDGOALS))
$(TEST_COMPOSE) run --rm smoke-tests vendor/bin/behat $(filter-out $@,$(MAKECMDGOALS))
.PHONY: smoke_tests

run-structurizr:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ services:

mock-one-login:
container_name: mock-one-login
image: 311462405659.dkr.ecr.eu-west-1.amazonaws.com/use_an_lpa/mock_onelogin_app:v0.60.0
image: 311462405659.dkr.ecr.eu-west-1.amazonaws.com/mock-onelogin:v0.68.0
ports:
- "4013:8080"
environment:
Expand Down
Loading

0 comments on commit 626a246

Please sign in to comment.