kubescape / node-agent

Kubescape eBPF agent 🥷🏻
https://kubescape.io/
Apache License 2.0
8 stars 5 forks source link

Component tests #245

Closed amirmalka closed 7 months ago

amirmalka commented 7 months ago

Type

enhancement, tests


Description


Changes walkthrough

Relevant files
Tests
component_test.go
Add Comprehensive Component Tests for Node-Agent                 

tests/component_test.go
  • Added comprehensive component tests for node-agent functionalities.
  • Tests include scenarios like basic alert tests, all alerts from
    malicious app, basic load activities, memory leak tests, and process
    kill in the middle of execution.
  • Utilizes utility functions from 'testutils' for creating namespaces,
    workloads, and handling Prometheus metrics.
  • +399/-0 
    malicious.go
    Implement Malicious App Simulation for Testing                     

    tests/images/malicious-app/malicious.go
  • Implemented a malicious application behavior simulation for testing.
  • Includes various malicious activities like unexpected process launch,
    file access, system calls, and network behaviors.
  • Supports configurable behaviors through environment variables.
  • +305/-0 
    k8s.go
    Add Kubernetes Utilities for Component Tests                         

    tests/testutils/k8s.go
  • Added utility functions for Kubernetes operations in tests.
  • Functions include creating test workloads, executing commands in pods,
    and handling application profiles.
  • +257/-0 
    prometheus.go
    Add Prometheus Interaction Utilities for Tests                     

    tests/testutils/prometheus.go
  • Added utility functions for interacting with Prometheus in tests.
  • Functions for fetching and plotting CPU and memory usage metrics.
  • +242/-0 
    locustfile.py
    Add Locust File for Load Testing                                                 

    tests/images/locustimage/locustfile.py
  • Added a locust file for load testing with HTTP requests to a target
    URL.
  • +10/-0   
    Enhancement
    r1008_crypto_mining_domain.go
    Update Crypto Mining Domains List                                               

    pkg/ruleengine/v1/r1008_crypto_mining_domain.go
  • Updated the list of crypto mining domains with correct domain names
    ending with a period.
  • +105/-105
    malware_manager.go
    Clean up Debug Logs in Malware Manager                                     

    pkg/malwaremanager/v1/malware_manager.go
  • Removed debug log statements from various functions in the malware
    manager.
  • +4/-13   
    Configuration changes
    configmap.yaml
    Add Node-Agent ConfigMap Template                                               

    tests/chart/templates/node-agent/configmap.yaml
  • Created a new ConfigMap for node-agent with various configurations
    based on values from Helm chart.
  • +40/-0   

    PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    amirmalka commented 7 months ago

    /describe

    codiumai-pr-agent-free[bot] commented 7 months ago

    PR Description updated to latest commit (https://github.com/kubescape/node-agent/commit/a0e2e5fb08e4e6a0196f4d40838d572d13a21598)

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    Summary:

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.

    github-actions[bot] commented 7 months ago

    :sparkles: Artifacts are available here.