GithubHelp home page GithubHelp logo

xebialabs-community / xlr-telnet-plugin Goto Github PK

View Code? Open in Web Editor NEW
1.0 11.0 0.0 935 KB

XL Release Telnet plugin. Can be used for telnet based services such as IBM 3270.

License: MIT License

Java 19.51% Python 70.64% Shell 9.85%

xlr-telnet-plugin's Introduction

XL Release Telnet Plugin

Build Status License: MIT Github All Releases

Preface

This is a pre-release plugin that is still undergoing development.

This is a 'See It Work' plugin, meaning it has been enhanced to include functionality that makes it easy to spin up and configure a dockerized version of the XebiaLabs platform with this plugin installed. Using the provided test data, you can then try out the plugin features. This is useful for familiarizing yourself with the plugin functionality, for demonstrations, testing and for further plugin development.

This document describes the functionality provided by the XL Release Telnet plugin.

See the XL Release reference manual for background information on XL Release and release automation concepts.

Overview

This plugin provides a way to run simple command sequences on a telnet server. At this point, its capabilities are quite unsophisticated.

The plugin adds a new server type named 'Telnet Server'. Currently, there is a single new task type name 'Run Commands'.

Requirements

*XL Release version 9.0+ *This plugin has been tested on version 9.7 as well

Installation

  • Copy the latest JAR file from the releases page into the XL_RELEASE_SERVER/plugins/__local__ directory.
  • Restart the XL Release server.

Usage

Configure the Telnet Server

AddServer

Add a new Telnet Server on the Settings -> Shared Configration page.

To configure the server:

  1. Give the server a unique name
  2. Enter the Telnet Host address
  3. Enter the Telnet Host port
  4. Modify the timeout, if desired
  5. If a login is necessary, enter the username and password
  6. Enter the command steps for login.
    1. The commands will be processed in the order they are entered into the map. Don't edit entries in place because that will change the order, re-enter all entries instead.
    2. The Key is a character string that will uniquely identify the tail of the telnet prompt. Trailing spaces, if any, are significant, so be sure to include them.
    3. The value is the command string. Be sure to end the command with the 'return control characters' such as \r\n or \n.
    4. If the username or password is part of the command, use the literal string [$username] or [$password] and the telnet plugin will subsitute the actual value.

ConfigureTheServer

Configure the Telnet 'Run Commands' Task

RunCommands

  1. Choose a Telnet Server from the drop down list
  2. If you need to use a different username or password than that entered during the Telnet Server configuration, enter it here.
  3. Enter the sequence of command steps.
    1. The commands will be processed in the order they are entered into the map. Don't edit entries in place because that will change the order, re-enter all entries instead.
    2. The key is a character string that will uniquely identify the tail of the telnet prompt. Trailing spaces (if any) at the end of the prompt are significant, so be sure to include them.
    3. The value is the command string. Be sure to end with the 'return control characters' such as \r\n or \n" />

ConfigureRunCommands

To run demo or dev version (set up docker container for XLR and then import configuration)

Download this github project to a local directory.

  1. You will need to have Docker and Docker Compose installed.
  2. The XL-Release image will use the community license. Note that by using this license, you are accepting the End User License Agreement. If you prefer to use your own license, modify the docker-compose.yml file.
  3. Plugin log files will be written to /build/reports/tests/log directory
  4. XL Release will run on the localhost port 15516.
  5. The XL Release username / password is admin / admin.

Before running the demo, be sure to create the plugin jar by opening a terminal, cd into the plugin source code directory, and run

./gradlew clean build

To run the dev/demo mode, open a terminal, cd into the src/test/resources/docker directory of the plugin code and run:

docker-compose up

After XLR starts up:

  1. log in using the admin / admin credentials
  2. Create a telnet server for the publicly available wunderground weather server - use the values found in this file: src/test/resources/docker/initialize/data/server-config.json. This telnet server does not need a login.
  3. Use the XLR 'Import Template' feature to import the template found in the src/test/resources/docker/initialize/data directory. You can then create a release and run the test example.

To shut down and remove the docker containers, in the src/test/resources/docker/initialize/data directory, run

docker-compose down

References

xlr-telnet-plugin's People

Contributors

ladamato avatar

Stargazers

Wayne Staes avatar

Watchers

Benoit Moussaud avatar Ravan Naidoo avatar Samuel Blin avatar James Cloos avatar Bogdan Nechyporenko avatar T.j. Randall avatar  avatar Rob Vanstone avatar Rick Broker avatar Neal DeBuhr avatar Wayne Staes avatar

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.