ewm-cli

command module
v0.0.0-...-f2021c3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

CLI program for IBM Enterprise Workflow Management (EWM)

CLI program to interact with IBM EWM for tasks such as resolving work items and creating new defect workitems. IBM EWM was formerly named Rational Team Concert (RTC)

Build Executable Binary

go build

Configuration

The config file is located at $HOME/.ewm-cli.yaml by default and should be created before using the CLI commands. The oslc_context, filedAgainstCategory, and defectType attributes are not required for get context and get category commands.

Config files can also be passed through the --config flag.

Below is a sample configuration file.

base_url: https://10.168.0.61:9443
ewm_username: kavish
ewm_password: P@ssw0rd
oslc_context: _isel8HoTEeyoCYEXLNJaZA
filedAgainstCategory: _l-ZCoHoTEeyoCYEXLNJaZA
defectType: com.ibm.team.workitem.workItemType.defect

Usage Examples

Find the project/context IDs on EWM server
ewm-cli get context
Get FiledAgainst Category IDs for a specific project
ewm-cli get category --context _isel8HoTEeyoCYEXLNJaZA
Create a defect on IBM EWM
ewm-cli create defect --description "this is a description" --summary "Unable to call API endpoint /abc"
Check Postman/Newman JSON output file and create a defect workitem on IBM EWM for each failed test case.
ewm-cli check newman --report C:\Users\Kavish\Documents\Temp\test\report.json
Check Pytest JSON output file and create a defect workitem on IBM EWM for each failed test case.

The Pytest JSON Report is generated by the pytest-json-report pip package.

ewm-cli check pytest --report C:\Users\Kavish\Documents\Temp\test\report.json
Get Work Item types in Project Area
ewm-cli get type --context _isel8HoTEeyoCYEXLNJaZA
Get workflows in Project Area
ewm-cli get workflow --context _isel8HoTEeyoCYEXLNJaZA
Get possible actions for a workflow in Project Area
ewm-cli get action --context _isel8HoTEeyoCYEXLNJaZA --workflow com.ibm.team.workitem.taskWorkflow
Resolve task work item
ewm-cli resolve task --action com.ibm.team.workitem.taskWorkflow.action.complete --taskID 112
Generate an HTML report of all defects created during checks
ewm-cli create defect-report

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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