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/middleware
Package middleware provides HTTP middleware components for the GraphDB API server.
|
Package middleware provides HTTP middleware components for the GraphDB API server. |
|
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 provides cluster membership and coordination.
|
Package cluster provides cluster membership and coordination. |
|
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's BTreeGraphStorage is a B+Tree-backed implementation of the Storage interface (C2 extraction).
|
Package storage's BTreeGraphStorage is a B+Tree-backed implementation of the Storage interface (C2 extraction). |
|
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. |
|
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. |