Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: publish to two solar tenants #399

Merged
merged 5 commits into from
Mar 9, 2024

Conversation

mccar
Copy link
Contributor

@mccar mccar commented Mar 4, 2024

Goal

Publish to two solar tenants

Changelog

  • feat: added support for several platform LTI providers

How to test

  1. Configure 2 tenants to one authoring
  2. Add delivery configuration for 2 tenants
{
  "DELIVERTENANT_COUNT": "2",
  "DELIVERTENANT_1_ID": "10",
  "DELIVERTENANT_1_LABEL": "OAT TAO Solar Test Runner Stage", 
  "DELIVERTENANT_1_CUSTOMER_ID": "10",
  "DELIVERTENANT_1_LTI_1P3_AUDIENCE_URL": "https://<stack_url>",
  "DELIVERTENANT_1_LTI_1P3_CREDENTIALS_0_CLIENT_ID": "tao-deliver-id_<tenant_id>",
  "DELIVERTENANT_1_OAUTH_CREDENTIALS_0_KEY": "<Oauth_key>",
  "DELIVERTENANT_1_OAUTH_CREDENTIALS_0_SECRET": "<Oauth_secret>",
  ... //other same like DELIVERTENANT_0
}
  1. Add platform LTI key chain for 2 tenants
return new PlatformKeyChainRepository([
    [
        PlatformKeyChainRepository::OPTION_DEFAULT_KEY_ID => '<tenant_1>-0',
                ...
    ],
    [
        PlatformKeyChainRepository::OPTION_DEFAULT_KEY_ID => '<tenant_2>-0',
        ...
    ]
]);

or use the tools command to generate a key and add configuration

sudo -u www-data php index.php 'oat\taoLti\scripts\tools\GenerateKeys' -id 10_0 -kn Tenant_10 -pkp /platform/default/public_10.key -kp /platform/default/private_10.key
  1. Add tests and deliver to 2 different tenants
  2. In Deliveries set 'Guest Access' for this test
  3. Try to run tests

* feat: publish to two solar tenants
---------

Co-authored-by: Makar Sichevoi <makar.sichevoy@taotesting.com>
@mccar mccar requested review from vbyndych and augustas March 4, 2024 14:24
@mccar mccar changed the title feat: publish to two solar tenants (#398) feat: publish to two solar tenants Mar 4, 2024
@mccar mccar changed the base branch from master to develop March 4, 2024 14:29
Copy link

github-actions bot commented Mar 6, 2024

Version

Target Version 15.16.0
Last version 15.15.0

There are 0 BREAKING CHANGE, 5 features, 0 fix

@mccar mccar requested a review from vbyndych March 6, 2024 10:57
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 93.75000% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 31.47%. Comparing base (52fe7b7) to head (3af469b).

Files Patch % Lines
...taAccess/Repository/PlatformKeyChainRepository.php 92.30% 5 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #399      +/-   ##
=============================================
+ Coverage      30.35%   31.47%   +1.12%     
- Complexity       827      841      +14     
=============================================
  Files            106      106              
  Lines           2906     2939      +33     
=============================================
+ Hits             882      925      +43     
+ Misses          2024     2014      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vbyndych vbyndych self-assigned this Mar 6, 2024
@mccar mccar merged commit b44cb0f into develop Mar 9, 2024
4 of 5 checks passed
@mccar mccar deleted the feat/REL-1466/publish-to-two-solar-tenants branch March 9, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants