Git Product home page Git Product logo

service-agent-c's Introduction

service_agent

systemd service agent

Build Status codecov.io

Build Requirements

Files used by service agent

Initialization of the service agent requires a directory name to be provided. In this directory, the following files will be written:

  • /logs -- directory where log files will be written

  • svcagt_exclude_services.txt -- list of services to be excluded (one per line)

  • svcagt_goal_states.txt -- list of services that have been started or stopped by service agent -- and the state.

Tests

Two types of test can be run. The systemd tests invoke systemctl, and actually start and stop services. The pass-fail tests use a mock systemctl, so that code paths can be tested without actually invoking systemctl.

Setup for Systemd Tests

Before you can run the systemd tests, you need to run a setup script:

  1. cd .../service-agent-c/tests
  2. python setup_svcagt_services.py

The setup creates a mock_systemctl. It also creates and installs three test services for use with the systemd tests.

Running Tests

Systemd Tests

To run the systemd tests :

  1. cd .../service-agent-c/tests
  2. . start_systemd_test.sh
  3. In a separate terminal window, run test_svcagt

Pass-Fail Tests

To run the pass-fail tests :

  1. cd .../service-agent-c/tests
  2. ../build/tests/test_svcagt

service-agent-c's People

Contributors

bill1600 avatar schmidtw avatar kraj avatar sadhyama avatar

Stargazers

 avatar

Watchers

 avatar John Riviello avatar  avatar James Cloos avatar  avatar Redgee Capili avatar  avatar Harsha Bellur avatar Mary Malone avatar  avatar  avatar  avatar

service-agent-c's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.