-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add config option to set service explorer attributes #202
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
![]() |
Infrastructure as Code | ![]() ![]() ![]() ![]() |
View in Orca |
![]() |
SAST | ![]() ![]() ![]() ![]() |
View in Orca |
![]() |
Secrets | ![]() ![]() ![]() ![]() |
View in Orca |
![]() |
Vulnerabilities | ![]() ![]() ![]() ![]() |
View in Orca |
608d253
to
2644953
Compare
@u.print_test_decorator | ||
def run_test_windows(remote_host: u.Host, env_vars: dict) -> None: | ||
init_command = r'Set-Location "C:\Program Files\Observe\observe-agent"; ./observe-agent init-config --token {} --observe_url {} --cloud_resource_detectors ec2'.format( | ||
def init_config_command(env_vars: dict) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change sets a resource attribute in the config for all tests. I had some yaml spacing issues in my diff originally, so I added extra logging; that is why the test files have other changes.
integration/scripts/test_start.py
Outdated
@@ -65,7 +66,7 @@ def run_test_windows(remote_host: u.Host, env_vars: dict) -> None: | |||
# status | |||
start_command = r".\start_agent_windows.ps1" | |||
status_command = r'Get-Service ObserveAgent;Set-Location "${Env:Programfiles}\Observe\observe-agent"; ./observe-agent status' | |||
start_timeout = 30 # how long to wait for observe-agent to start | |||
start_timeout = 10 # how many times to check for the running agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this how many times we check? is start_timeout not a correct variable name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I renamed this and added/used a default value at the call sites.
{{- range $key, $value := .Attributes }} | ||
- key: {{ $key }} | ||
value: {{ $value }} | ||
action: insert |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think maybe this might need to be overrideable as well, upsert is potentially a desired value
2644953
to
faaccd2
Compare
Description
OB-44816 Add config option to set generic attributes or resource attributes. This is needed to configure service explorer attributes when running on a host.
Checklist