Voedger Internals
  • Introduction
  • 💡Concepts
    • Event Sourcing & CQRS
    • Editions (deprecated)
      • Community Edition
      • Standart Edition
      • Standart Edition (v1)
  • 🚀Server
    • Overview (Server)
    • Design
      • Query Processor
      • API Gateway implementation
      • N1 Cluster
      • N3 Cluster
      • N5 Cluster
      • Orchestration
      • Sequences
      • Packages overview
        • sys
        • registry
    • Features
      • API Gateway
        • API v2
          • Conventions
            • API URL
            • HTTP methods and processors
            • Naming conventions
            • Query constraints
            • Error handling
          • Documents and records
            • Create document or record
            • Update document or record
            • Deactivate document or record
            • Read document or record
            • Read from CDoc collection
          • Queries
            • Read from query
          • Views
            • Read from view
          • Commands
            • Execute command
          • BLOBs
            • Create BLOB
            • Read BLOB
          • Temporary BLOBs
            • Create temporary BLOB
            • Read temporary BLOB
          • Schemas
            • List app workspaces
            • List workspace roles
            • Read workspace role schema
        • API v1
          • API Conventions
          • BLOBs
      • Admin Endpoint
      • Clusters
        • Bootstrap
        • Monitoring
        • Secure prometheus and grafana
        • Alerting
        • Maintenance
          • SELECT, UPDATE
      • VVMs
      • Applications
        • Deploy Application
        • Sidecar Applications
      • AuthNZ
        • Issue Principal Token
        • Refresh Principal Token
        • Enrich Principal Token
        • ACL Rules
        • Global Roles
      • Data types
        • Core types
        • Small integers
        • Uniques With Multiple Fields
        • Verifiable Fields
      • Workspaces
        • Create Workspace
        • Deactivate Workspace
        • See also (Workspaces)
      • Invites
        • Invite to Workspace
        • Join Workspace
        • Leave Workspace
        • Cancel sent Invite
        • Cancel accepted Invite
        • Update Invite roles
      • Users
        • Create a new user
        • Change user password
        • Send Email
        • Reset password
        • Change Email
      • Notifications
        • Heartbeats
      • Devices
        • Create a new device
        • Join device to workspace
      • Jobs
      • DMBS Drivers
        • AmazonDB Driver
      • Frozen
        • Ephemeral Storage
        • Storage Extensions
  • 🛠️Framework
    • Overview (Framework)
    • Features
      • vpm
      • vpm init
      • vpm tidy
      • vpm baseline
      • vpm orm
      • vpm build
      • API for testing
  • Development
    • Requirements Management
    • Requirements Management (Overview)
Powered by GitBook
On this page
  • Issues
  • Motivation
  • Context
  • Proposal
  • Functional design
  • Technical design
  • Principles
  • Design
  • Issues

Was this helpful?

Edit on GitHub
  1. 🛠️Framework
  2. Features

API for testing

Issues

  • https://github.com/voedger/voedger/issues/1647

Motivation

As a developer I want to:

  • Prepare test context data for storages like Record, View

  • Prepare test context data for storages like ArgumentObject, WLog, HTTP, etc.

Storages

	StorageEvent          = "sys.Event"
	StorageSendMail       = "sys.SendMail"
	StorageRecord         = "sys.Record"
	StorageView           = "sys.View"
	StorageWLog           = "sys.WLog"
	StoragePLog           = "sys.PLog"
	StorageHttp           = "sys.Http"
	StorageAppSecret      = "sys.AppSecret"
	StorageRequestSubject = "sys.RequestSubject"
	StorageResult         = "sys.Result"
	StorageCommandContext = "sys.CommandContext"

Context

  • https://github.com/voedger/voedger/blob/937875623f4291dd33eece8787a817cd71ac7019/pkg/iextenginewazero/impl_test.go#L37

Proposal

packages

  • state

    • safestate

    • teststate

Functional design

Test examples:

Technical design

Principles

  • Use events to prepare context CUDs and IArgumentObject data

  • Use IAppStructs to prepare View context

  • IEvents.PutWlog to prepare WLog context

  • SafeStateAPI is a low-level API for State which implements the following principles:

    • used by extension engines

    • automatically converts package paths (extensions work with full paths)

    • Keys, Values, Key- and Value-Builders are represented with numbers, to be transferred between Host and Extension environments.

Design

Issues

  • https://github.com/voedger/voedger/issues/1647

Previousvpm buildNextRequirements Management

Last updated 10 months ago

Was this helpful?

Basic Usage: Event, View
Actualizer: WLog Get and Read, Secret, Http, SendMail
Command: CommandContext, Record, RequestSubject, Result