目录
ktx-akshay

test: enhance existing test cases using Page-Manager (#7503)

PR Type

Tests, Enhancement


Description

  • Consolidate page objects into unified PageManager

  • Update test imports across dashboard spec files

  • Remove direct page object class imports

  • Clean up commented and duplicate test code


Changes diagram

flowchart LR
  TestFiles["Dashboard & visualize test files"]
  ImportPM["Import & instantiate PageManager"]
  UsePM["Call pm.<pageObject> methods"]
  RemoveOld["Remove individual page object imports"]
  TestFiles --> ImportPM --> UsePM
  RemoveOld --> ImportPM

Changes walkthrough 📝

Relevant files
Enhancement
5 files
dashboard.spec.js
Use `PageManager` instead of individual page objects         
+265/-302
dashboard-filter.spec.js
Switch filter tests to `PageManager` usage                             
+191/-230
visualize.spec.js
Refactor visualize tests to use `PageManager`                       
+142/-137
dashboard2.spec.js
Consolidate dashboard2 spec with `PageManager`                     
+186/-205
dashboard-general-setting.spec.js
Update general setting tests to `PageManager`                       
+28/-35 
Additional files
12 files
page-manager.js +58/-0   
custom-charts.spec.js +10/-14 
dashboard-folder.spec.js +23/-31 
dashboard-geoMap.spec.js +45/-65 
dashboard-import.spec.js +72/-76 
dashboard-maps.spec.js +17/-25 
dashboard-multi-y-axis.spec.js +55/-57 
dashboard-tabs-setting.spec.js +67/-69 
dashboard-transpose.spec.js +87/-88 
dashboard-variables-setting.spec.js +144/-161
dashboardtype.spec.js +16/-25 
visualization-vrl.spec.js +74/-72 

Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • 3天前3911次提交
    目录README.md

    OpenObserve

    🚀 10x easier, 🚀 140x lower storage cost, 🚀 high performance, 🚀 petabyte scale - Elasticsearch/Splunk/Datadog alternative for 🚀 (logs, metrics, traces).

    Last Commit GitHub Stars GitHub Issues Contributors GitHub Release

    OpenObserve (O2 for short) is a cloud-native observability platform built specifically for logs, metrics, traces, analytics, RUM (Real User Monitoring - Performance, Errors, Session Replay) designed to work at petabyte scale.

    It is straightforward and easy to operate, in contrast to Elasticsearch, which requires understanding and tuning numerous settings. Get OpenObserve up and running in under 2 minutes.

    OpenObserve serves as a seamless replacement for Elasticsearch for users who ingest data using APIs and perform searches. OpenObserve comes with its own user interface, eliminating the need for separate installation.

    You can reduce your log storage costs by ~140x compared to Elasticsearch by using OpenObserve. Below, we present the results from pushing logs from our production Kubernetes cluster to both Elasticsearch and OpenObserve using Fluent Bit.

    OpenObserve Vs Elasticsearch

    🎥 Introduction Video

    OpenObserve Introduction

    🌟 Features:

    • Logs, Metrics, Traces: Comprehensive support for various data types.
    • OpenTelemetry Support: Full compatibility with OTLP for logs, metrics, and traces.
    • Real User Monitoring (RUM): Includes performance tracking, error logging, and session replay.
    • Dashboards, Reports, Alerts: Features over 18 different chart types for comprehensive data visualization for on-the-fly analysis and reporting along with alerting.
    • Pipelines: Enrich, redact, reduce, normalize data on the fly. Stream processing for logs to metrics and more.
    • Advanced Embedded GUI: Intuitive and user-friendly interface.
    • SQL and PromQL Support: Query logs and traces with SQL, and metrics with SQL and PromQL.
    • Single Binary or HA Installation: Install using a single binary for small deployments or in HA mode for large deployments.
    • Versatile Storage Options: Supports local disk, S3, MinIO, GCS, Azure Blob Storage.
    • High Availability and Clustering: Ensures reliable and scalable performance.
    • Dynamic Schema: Adapts to your data structure seamlessly.
    • Built-in Authentication: Secure and ready to use.
    • Ease of Operation: Designed for simplicity and efficiency.
    • Seamless Upgrades: Hassle-free updates.
    • Multilingual UI: Supports 11 languages, including English, Spanish, German, French, Chinese, and more.

    For a full list of features, check the documentation.

    ⚡️ Quick start

    🐳 Docker:

    docker run -d \
          --name openobserve \
          -v $PWD/data:/data \
          -p 5080:5080 \
          -e ZO_ROOT_USER_EMAIL="root@example.com" \
          -e ZO_ROOT_USER_PASSWORD="Complexpass#123" \
          public.ecr.aws/zinclabs/openobserve:latest

    🐙 Docker Compose:

    services:
      openobserve:
        image: public.ecr.aws/zinclabs/openobserve:latest
        restart: unless-stopped
        environment:
          ZO_ROOT_USER_EMAIL: "root@example.com"
          ZO_ROOT_USER_PASSWORD: "Complexpass#123"
        ports:
          - "5080:5080"
        volumes:
          - data:/data
    volumes:
      data:

    For other ways to quickly install OpenObserve or use OpenObserve cloud, check quickstart documentation.

    For installing OpenObserve in HA mode, check HA deployment documentation.

    📷 Screenshots

    Home

    Home

    Logs

    Logs

    Traces (OpenTelemetry)

    Trace details page Traces using OpenTelemetry

    Golden metrics based on traces Traces golden metrics

    Visualizations and Dashboards

    Dashboard Dashboard Create panel Map

    Front end monitoring

    Performance analytics Performance

    Session replay Session replay

    Error tracking Error tracking

    Alerts

    Alerts

    Streams

    Streams

    Ingestion

    Ingestion

    Pipeline

    Pipeline Pipeline

    Function Function

    IAM

    SSO (Single Sign On) SSO

    RBAC (Role Based Access Control) RBAC

    SBOM

    Software Bill of Materials for OpenObserve

    Rust

    SBOM can be found here. You can analyze it using dependency track.

    In order to generate the SBOM, you can use the following commands:

    Install cargo-cyclonedx:

    cargo install cargo-cyclonedx

    Generate the SBOM:

    cargo-cyclonedx cyclonedx

    JavaScript

    SBOM can be found here. You can analyze it using dependency track.

    In order to generate the SBOM, you can use the following commands:

    Install cyclonedx-npm:

    npm install --global @cyclonedx/cyclonedx-npm

    Generate the SBOM:

    cd web
    cyclonedx-npm > sbom.json         

    ⚖️ License

    OpenObserve is licensed under the AGPL-3.0 license. For more details, see the LICENSE.

    🌍 Community

    🔗 Join OpenObserve community on Slack

    Slack

    Easiest way to get support is to join the Slack channel.

    📱 Join OpenObserve community on WeChat

    邀请码
      Gitlink(确实开源)
    • 加入我们
    • 官网邮箱:gitlink@ccf.org.cn
    • QQ群
    • QQ群
    • 公众号
    • 公众号

    ©Copyright 2023 CCF 开源发展委员会
    Powered by Trustie& IntelliDE 京ICP备13000930号