Skip to content

Commit

Permalink
fix(#5229): Fixing clientkey checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Apr 19, 2024
1 parent e2ee3be commit f9f548e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deployability/modules/testing/tests/helpers/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from .executor import Executor
from modules.testing.utils import logger
from .utils import Utils
from modules.testing.utils import logger


class HostInformation:
Expand Down Expand Up @@ -708,7 +707,7 @@ def hasAgentClientKeys(inventory_path) -> bool:
"""
os_type = HostInformation.get_os_type(inventory_path)
if os_type == 'linux':
return HostInformation.file_exists(inventory_path, {CLIENT_KEYS})
return HostInformation.file_exists(inventory_path, CLIENT_KEYS)
elif os_type == 'macos':
return HostInformation.file_exists(inventory_path, '/Library/Ossec/etc/client.keys')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: 0.1
description: This workflow is used to test agents' deployment for DDT1 PoC
variables:
agent-os:
- macos-sonoma-14.0-arm64
- linux-ubuntu-18.04-amd64

manager-os: linux-ubuntu-22.04-amd64
infra-provider: vagrant
working-dir: /tmp/dtt1-poc
Expand All @@ -19,13 +19,14 @@ tasks:
args:
- modules/allocation/main.py
- action: create
- provider: "{infra-provider}"
- provider: "aws"
- size: large
- composite-name: "{manager-os}"
- inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
- track-output: "{working-dir}/manager-{manager-os}/track.yaml"
- label-termination-date: "1d"
- label-team: "qa"
- ssh-key: "/home/akim/Desktop/personal/Ephemeral"
on-error: "abort-all"
cleanup:
this: process
Expand Down

0 comments on commit f9f548e

Please sign in to comment.