asconfig

module
v0.0.0-...-e733e68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0

README

Asconfig

A CLI tool for managing Aerospike configuration files.

Overview

Asconfig allows you to validate and compare Aerospike configuration using a versioned YAML schema directory. For more information and usage examples see the Aerospike Configuration Tool docs.

Build

Build asconfig using the included makefile and display usage information.

git clone https://github.com/aerospike/asconfig.git
cd asconfig
make
./bin/asconfig --help

The built binary is available at bin/asconfig.

You can also build asconfig using go build.

git clone https://github.com/aerospike/asconfig.git
cd asconfig
git submodule update --init
go build -o ./bin/asconfig
./bin/asconfig --help

Install or uninstall asconfig.

make install
make uninstall

Cleanup build and test files.

make clean

Building rpm, deb, and tar packages is also done using the makefile. You will have to install fpm and rpmbuild to build all of these.

make rpm deb tar

The packages will be available in the pkg/ directory.

Testing

Asconfig has unit and integration tests.

You can run the tests using the make file.

Unit Tests
make unit
Integration Tests

Integration tests require that docker is installed and running. A path to an Aerospike feature key file should be defined at the FEATKEY environment variable. For more information about the feature key file see the feature-key docs.

FEATKEY=/path/to/aerospike/features.conf make integration
All Tests
FEATKEY=/path/to/aerospike/features.conf make test
Test Coverage
FEATKEY=/path/to/aerospike/features.conf make view-coverage

Directories

Path Synopsis
A common location to store utilities for testing.
A common location to store utilities for testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL