Documentation
¶
Overview ¶
Package enterprise provides enterprise-grade validation tests for Fortune 500 deployment readiness.
This framework demonstrates testing patterns for: 1. Multi-tenancy isolation 2. SSO/OIDC integration 3. Backup/restore cycles 4. Bulk import/export 5. Scale testing (10M+ nodes) 6. Lock contention analysis
All tests follow table-driven patterns and measure exact metrics required for commercial readiness.
Index ¶
- func BenchmarkComparison(b *testing.B)
- func BenchmarkConcurrentWrites(b *testing.B)
- func BenchmarkImportRate(b *testing.B)
- func BenchmarkLockContention(b *testing.B)
- func BenchmarkMultiTenantQueries(b *testing.B)
- func BenchmarkRestoreTime(b *testing.B)
- func BenchmarkScaleTest(b *testing.B)
- func BenchmarkTokenValidation(b *testing.B)
- type PerformanceBudget
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkComparison ¶
ComparisonBenchmark compares performance across scales
func BenchmarkConcurrentWrites ¶
BenchmarkConcurrentWrites measures write scaling efficiency
func BenchmarkImportRate ¶
BenchmarkImportRate measures bulk import throughput
func BenchmarkLockContention ¶
LockContentionTest measures global lock impact
func BenchmarkMultiTenantQueries ¶
BenchmarkMultiTenantQueries measures query latency with 50 concurrent tenants
func BenchmarkRestoreTime ¶
BenchmarkRestoreTime measures RTO (Recovery Time Objective)
func BenchmarkScaleTest ¶
ScaleTest verifies linear scaling up to 10M nodes
func BenchmarkTokenValidation ¶
BenchmarkTokenValidation measures cache performance
Types ¶
type PerformanceBudget ¶
type PerformanceBudget struct {
QueryP95Ms int64
WriteLatencyP99Ms int64
MemoryLeakPerHour int64
GCPauseMaxMs int64
LockFreeRatio float64
DeadlockCount int64
}
ValidatePerformanceBudget ensures metrics meet SLOs
func (*PerformanceBudget) CheckBudget ¶
func (pb *PerformanceBudget) CheckBudget( actualQueryP95 int64, actualWriteP99 int64, actualMemLeak int64, actualGCMax int64, actualLockFree float64, actualDeadlock int64) bool
CheckBudget validates actual metrics against requirements
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
TestSuite provides enterprise validation testing
func (*TestSuite) TestBackupRestoreCycle ¶
BackupRestoreCycleTest verifies data integrity across backup/restore
func (*TestSuite) TestDeadlockDetection ¶
DeadlockDetectionTest ensures no deadlocks under concurrent load
func (*TestSuite) TestImportExport ¶
ImportExportTest verifies bulk data round-trip
func (*TestSuite) TestMultiTenantIsolation ¶
TenantIsolationTest verifies cross-tenant data cannot leak
func (*TestSuite) TestOIDCFlow ¶
OIDCFlowTest verifies complete OIDC authentication
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
api-demo
command
|
|
|
benchmark
command
|
|
|
benchmark-algorithms
command
|
|
|
benchmark-batched
command
|
|
|
benchmark-compression
command
|
|
|
benchmark-graph-storage
command
|
|
|
benchmark-index
command
|
|
|
benchmark-lsm
command
|
|
|
benchmark-mmap
command
|
|
|
benchmark-parallel
command
|
|
|
benchmark-query
command
|
|
|
benchmark-road-network
command
|
|
|
benchmark-wal-compression
command
|
|
|
cli
command
|
|
|
graphdb
command
|
|
|
graphdb-admin
command
|
|
|
import-dimacs
command
|
|
|
import-icij
command
|
|
|
integration-test
command
|
|
|
license-server
command
|
|
|
server
command
|
|
|
test-lsm
command
|
|
|
tui
command
|
|
|
tui-demo
command
|
|
|
examples
|
|
|
constraint-validation
command
|
|
|
cycle-detection
command
|
|
|
hospital-network
command
Package main models a hospital network attack scenario inspired by WannaCry (2017) hitting the UK National Health Service.
|
Package main models a hospital network attack scenario inspired by WannaCry (2017) hitting the UK National Health Service. |
|
iso15288-system
command
|
|
|
juniper-zeroize
command
Package main models a Volt Typhoon-style network infrastructure destruction attack against a regional ISP backbone.
|
Package main models a Volt Typhoon-style network infrastructure destruction attack against a regional ISP backbone. |
|
ot-representative-models
command
Package main provides analysis functions for betweenness centrality calculations.
|
Package main provides analysis functions for betweenness centrality calculations. |
|
ot-representative-models/models
Package models provides OT network model definitions.
|
Package models provides OT network model definitions. |
|
pipeline-ransomware
command
Package main models a fuel pipeline IT/OT network inspired by the 2021 Colonial Pipeline ransomware attack.
|
Package main models a fuel pipeline IT/OT network inspired by the 2021 Colonial Pipeline ransomware attack. |
|
power-grid-cascade
command
Package main models a regional power grid attack scenario inspired by the 2015/2016 Ukraine power grid attacks (BlackEnergy/Industroyer).
|
Package main models a regional power grid attack scenario inspired by the 2015/2016 Ukraine power grid attacks (BlackEnergy/Industroyer). |
|
water-treatment-attack
command
Package main models a water treatment facility attack scenario inspired by the 2021 Oldsmar, Florida incident, where an attacker gained remote access to a water treatment plant and attempted to increase sodium hydroxide (NaOH) levels to dangerous concentrations.
|
Package main models a water treatment facility attack scenario inspired by the 2021 Oldsmar, Florida incident, where an attacker gained remote access to a water treatment plant and attempted to increase sodium hydroxide (NaOH) levels to dangerous concentrations. |
|
pkg
|
|
|
api
Package api serves graphdb's graph store over HTTP — the REST surface plus the GraphQL endpoint.
|
Package api serves graphdb's graph store over HTTP — the REST surface plus the GraphQL endpoint. |
|
api/middleware
Package middleware provides HTTP middleware components for the GraphDB API server.
|
Package middleware provides HTTP middleware components for the GraphDB API server. |
|
auth
Package auth handles authentication for graphdb: JWT tokens and API keys.
|
Package auth handles authentication for graphdb: JWT tokens and API keys. |
|
auth/oidc
Package oidc provides OpenID Connect authentication support for GraphDB.
|
Package oidc provides OpenID Connect authentication support for GraphDB. |
|
btree
Package btree implements a disk-backed B+Tree primitive.
|
Package btree implements a disk-backed B+Tree primitive. |
|
cluster
Package cluster contains graphdb's cluster-coordination substrate: Raft-style leader election, membership tracking, and node discovery.
|
Package cluster contains graphdb's cluster-coordination substrate: Raft-style leader election, membership tracking, and node discovery. |
|
graphql
Package graphql exposes graphdb over GraphQL with per-tenant schema isolation.
|
Package graphql exposes graphdb over GraphQL with per-tenant schema isolation. |
|
intelligence
Package intelligence will hold the auto-embedder infrastructure (S11 spike, docs/internals/design/S11_AUTO_EMBEDDER_REDESIGN.md).
|
Package intelligence will hold the auto-embedder infrastructure (S11 spike, docs/internals/design/S11_AUTO_EMBEDDER_REDESIGN.md). |
|
pools
Package pools provides object pooling for reducing GC pressure.
|
Package pools provides object pooling for reducing GC pressure. |
|
query
Package query's physical_plan.go declares the Volcano-model physical operator interface and 16 concrete operator implementations (C3.0 extraction).
|
Package query's physical_plan.go declares the Volcano-model physical operator interface and 16 concrete operator implementations (C3.0 extraction). |
|
queryutil
Package queryutil provides helpers for wiring search and vector capabilities into a query.Executor without creating import cycles.
|
Package queryutil provides helpers for wiring search and vector capabilities into a query.Executor without creating import cycles. |
|
retrieval
Package retrieval implements graph-augmented retrieval: a LangChain-style "Retriever" interface backed by hybrid search + graph traversal.
|
Package retrieval implements graph-augmented retrieval: a LangChain-style "Retriever" interface backed by hybrid search + graph traversal. |
|
storage
Package storage is graphdb's core graph store: a multi-tenant, in-memory property graph with durable snapshot + write-ahead-log (WAL) persistence.
|
Package storage is graphdb's core graph store: a multi-tenant, in-memory property graph with durable snapshot + write-ahead-log (WAL) persistence. |
|
tenant
Package tenant provides graphdb's multi-tenancy primitives.
|
Package tenant provides graphdb's multi-tenancy primitives. |
|
tenantid
Package tenantid defines the canonical identifier type for tenants.
|
Package tenantid defines the canonical identifier type for tenants. |
|
updater
Package updater fetches release manifests, downloads matching binaries, verifies them by SHA256 checksum, and atomically swaps the running executable.
|
Package updater fetches release manifests, downloads matching binaries, verifies them by SHA256 checksum, and atomically swaps the running executable. |
|
vector
Package vector implements approximate nearest-neighbour search using a Hierarchical Navigable Small World (HNSW) graph.
|
Package vector implements approximate nearest-neighbour search using a Hierarchical Navigable Small World (HNSW) graph. |
|
wal/apply
Package apply provides the structured-write-operation primitive and the fail-closed tenant gate that audits its application against storage.
|
Package apply provides the structured-write-operation primitive and the fail-closed tenant gate that audits its application against storage. |