Soar::Authentication::IdentityUuidTranslator

Used by authentication service to translate an identity identifier into an UUID

Domain Analysis

Tests

Local

Soar::Authentication::IdentityUuidTranslator::Factory

$ bundle exec rspec spec/factory_spec.rb

Soar::Authentication::IdentityUuidTranslator::RoleGenerator

$ docker-compose --file docker-compose.dynamo_db.yml up --remove-orphans
$ ROLES_DIRECTORY_CONFIG_FILE=config.dynamo_db.yml bundle exec rspec spec/role_generator_spec.rb

Soar::Authentication::IdentityUuidTranslator::Provider::Customer

$ docker-compose --file docker-compose.customer.yml up --remove-orphans
$ ROLES_DIRECTORY_CONFIG_FILE=config.dynamo_db.yml IDENTITY_DIRECTORY_CONFIG_FILE=config.mysql.yml TEST_ORCHESTRATION_PROVIDER=CustomerClientNumber bundle exec cucumber
$ docker-compose --file docker-compose.customer.yml up --remove-orphans
$ ROLES_DIRECTORY_CONFIG_FILE=config.dynamo_db.yml IDENTITY_DIRECTORY_CONFIG_FILE=config.mysql.yml TEST_ORCHESTRATION_PROVIDER=CustomerEmail bundle exec cucumber

Soar::Authentication::IdentityUuidTranslator::Provider::Staff

$ docker-compose --file docker-compose.staff.yml up --remove-orphans
$ ROLES_DIRECTORY_CONFIG_FILE=config.dynamo_db.yml IDENTITY_DIRECTORY_CONFIG_FILE=config.ldap.yml TEST_ORCHESTRATION_PROVIDER=Staff bundle exec cucumber

Domain identity provider

Not implemented

CI

Soar::Authentication::IdentityUuidTranslator::Factory

docker-compose --file docker-compose.ci.factory.yml --project-name soar-authentication-identity_uuid_translator-factory up --abort-on-container-exit --remove-orphans --build --force-recreate
EXIT_CODE=$(docker ps -a -f "name=soarauthenticationidentityuuidtranslatorfactory_tests" -q | xargs docker inspect -f "{{ .State.ExitCode }}");
docker-compose --file docker-compose.ci.factory.yml --project-name soar-authentication-identity_uuid_translator-factory down --rmi local
exit $EXIT_CODE;

Soar::Authentication::IdentityUuidTranslator::RoleGenerator

docker-compose --file docker-compose.ci.role_generator.yml --project-name soar-authentication-identity_uuid_translator-role_generator up --abort-on-container-exit --remove-orphans --build --force-recreate
EXIT_CODE=$(docker ps -a -f "name=soarauthenticationidentityuuidtranslatorrolegenerator_tests" -q | xargs docker inspect -f "{{ .State.ExitCode }}");
docker-compose --file docker-compose.ci.role_generator.yml --project-name soar-authentication-identity_uuid_translator-role_generator down --rmi local
exit $EXIT_CODE;

Soar::Authentication::IdentityUuidTranslator::Provider::Customer

docker-compose --file docker-compose.ci.customer_email.yml --project-name soar-authentication-identity_uuid_translator-provider-customer_email up --abort-on-container-exit --remove-orphans --build --force-recreate
EXIT_CODE=$(docker ps -a -f "name=soarauthenticationidentityuuidtranslatorprovidercustomeremail_tests" -q | xargs docker inspect -f "{{ .State.ExitCode }}");
docker-compose --file docker-compose.ci.customer_email.yml --project-name soar-authentication-identity_uuid_translator-provider-customer_email down --rmi local
exit $EXIT_CODE;
docker-compose --file docker-compose.ci.customer_client_number.yml --project-name soar-authentication-identity_uuid_translator-provider-customer_client_number up --abort-on-container-exit --remove-orphans --build --force-recreate
EXIT_CODE=$(docker ps -a -f "name=soarauthenticationidentityuuidtranslatorprovidercustomerclientnumber_tests" -q | xargs docker inspect -f "{{ .State.ExitCode }}");
docker-compose --file docker-compose.ci.customer_client_number.yml --project-name soar-authentication-identity_uuid_translator-provider-customer_client_number down --rmi local
exit $EXIT_CODE;

Soar::Authentication::IdentityUuidTranslator::Provider::Staff

docker-compose --file docker-compose.ci.staff.yml --project-name soar-authentication-identity_uuid_translator-provider-staff up --abort-on-container-exit --remove-orphans --build --force-recreate
EXIT_CODE=$(docker ps -a -f "name=soarauthenticationidentityuuidtranslatorproviderstaff_tests" -q | xargs docker inspect -f "{{ .State.ExitCode }}");
docker-compose --file docker-compose.ci.staff.yml --project-name soar-authentication-identity_uuid_translator-provider-staff down --rmi local
exit $EXIT_CODE;