Skip to content

feat: add tenant-id to invoke context #128

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ramisa2108
Copy link

Issue #, if available:

Description of changes:

  • add tenant id to InvokeContext Object

Target (OCI, Managed Runtime, both):

  • Both

Checklist

  • I have run npm install to generate the package-lock.json correctly and included it in the PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ramisa2108 ramisa2108 requested a review from maxday April 28, 2025 16:52
try {
await client.nextInvocation();
// Should not reach here
false.should.be.true('Expected an error but none was thrown');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use something like this instead: await client.nextInvocation().should.be.rejectedWith('Failed to get next invocation');

@@ -35,3 +35,32 @@ describe('Getting remaining invoke time', () => {
remainingTime.should.lessThanOrEqual(1000);
});
});

describe('Verifying tenant id', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good tests!

@ramisa2108 ramisa2108 force-pushed the ramisa2108/support-multi-tenancy branch from 59f3b8a to 0dcf6e1 Compare April 30, 2025 15:34
@ramisa2108 ramisa2108 force-pushed the ramisa2108/support-multi-tenancy branch from 0dcf6e1 to d45a5e0 Compare April 30, 2025 15:39
@maxday maxday self-requested a review May 1, 2025 00:06
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