influxdb3-test-setup

Automate InfluxDB 3 Core and Enterprise test environment setup with initialization scripts.

80|330|Updated Dec 13, 2018
One-click install
npx skills add https://github.com/influxdata/docs-v2 --skill influxdb3-test-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: influxdb3-test-setup
Source: https://github.com/influxdata/docs-v2/tree/main/.claude/skills/influxdb3-test-setup
Command: npx skills add https://github.com/influxdata/docs-v2 --skill influxdb3-test-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the setup of InfluxDB 3 Core and Enterprise test environments for documentation code blocks. It enables per-worktree isolation for Core alongside a shared Enterprise instance to run code block tests safely.

Core Features & Use Cases

  • Per-worktree Core runtime (port 8282) with isolated data
  • Shared Enterprise runtime (port 8181) with persistent license data
  • Worktree-named databases for test isolation during documentation code block testing

Quick Start

  • Initialize Core: ./test/scripts/init-influxdb3.sh core
  • Initialize Enterprise: ./test/scripts/init-influxdb3.sh enterprise
  • Initialize both: ./test/scripts/init-influxdb3.sh all
  • Retrieve tokens and set up a test database as described in the workflows, e.g.:
    • Core token: cat test/.influxdb3/core/.token | jq -r .token
    • Create a test database for the current worktree: WORKTREE_NAME=$(basename "$(pwd)" | tr '-' '_') curl -X POST "http://localhost:8282/api/v3/configure/database"
      -H "Authorization: Bearer $(jq -r .token test/.influxdb3/core/.token)"
      -H "Content-Type: application/json"
      -d "{"db": "${WORKTREE_NAME}_db"}"

Frequently Asked Questions about influxdb3-test-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I isolate InfluxDB 3 Core test environments for documentation code blocks?

You can isolate InfluxDB 3 Core test environments by using a per-worktree runtime on port 8282, keeping data isolated specifically for safely running documentation code block tests.

How do I set up a shared InfluxDB 3 Enterprise instance for test code execution?

To set up a shared InfluxDB 3 Enterprise instance, initialize it using the designated script, which provisions a shared runtime on port 8181 that retains persistent license data.

How do I initialize InfluxDB 3 Core and Enterprise test environments together?

You can initialize both InfluxDB 3 Core and Enterprise test environments simultaneously by running the initialization script with the 'all' argument to provision both runtimes.

How do I retrieve the authorization token for an InfluxDB 3 Core test instance?

Retrieve the authorization token for an InfluxDB 3 Core test instance by reading the token file generated during initialization and parsing it to extract the token string.

How do I create a test database for an isolated InfluxDB 3 Core worktree?

Create a test database for an isolated InfluxDB 3 Core worktree by sending a POST request to the configuration API with the worktree name and the retrieved authorization token.