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

fix: Agent license key should be optional in Serverless mode. #2500

Merged
merged 2 commits into from
May 22, 2024

Conversation

tippmar-nr
Copy link
Member

Description

When running in Serverless mode, the Agent License Key is not required to be set (either in config or via an environment variable).

This PR fixes #2499 by adding a check for serverless mode in AgentManager.AssertAgentEnabled(). Additionally, when browser monitoring is enabled but the license key is not set, we now log a message rather than throwing an exception.

@tippmar-nr tippmar-nr enabled auto-merge (squash) May 22, 2024 20:48
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.57%. Comparing base (f1a7bf6) to head (01d8421).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2500      +/-   ##
==========================================
- Coverage   80.60%   80.57%   -0.03%     
==========================================
  Files         459      459              
  Lines       28774    28774              
  Branches     3184     3183       -1     
==========================================
- Hits        23192    23186       -6     
- Misses       4798     4802       +4     
- Partials      784      786       +2     
Flag Coverage Δ
Agent 81.52% <100.00%> (-0.03%) ⬇️
Profiler 72.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
.../BrowserMonitoring/BrowserMonitoringScriptMaker.cs 80.76% <100.00%> (ø)

... and 1 file with indirect coverage changes

@tippmar-nr tippmar-nr merged commit 801edc3 into main May 22, 2024
91 checks passed
@tippmar-nr tippmar-nr deleted the fix/serverless-license-key-is-optional branch May 22, 2024 21:26
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.

Serverless mode does not correctly handle a missing license key
4 participants