Metadata-Version: 2.1
Name: robotframework-nifilibrary
Version: 2.1.2
Summary: Nifi library for robotframework
Home-page: 
Author: Weeraporn.pai
Author-email: weeraporn.pa@gmail.com
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: requests ==2.31.0
Requires-Dist: robotframework ==6.1.1
Requires-Dist: nipyapi ==0.20.0
Requires-Dist: pytest-cov ==2.12.1
Requires-Dist: pytest ==8.3.2
Requires-Dist: codecov ==2.1.13

[![codecov](https://codecov.io/github/poopae8055/robotframework-nifilibrary/branch/main/graph/badge.svg?token=UWQ02FZKKK)](https://codecov.io/github/poopae8055/robotframework-nifilibrary)
[![Build Status](https://app.travis-ci.com/poopae8055/robotframework-nifilibrary.svg?token=qyEYwbjyGpqh4SudnCnQ&branch=main)](https://app.travis-ci.com/poopae8055/robotframework-nifilibrary)
[![PyPI version](https://badge.fury.io/py/robotframework-nifilibrary.svg)](https://badge.fury.io/py/robotframework-nifilibrary)

# NifiLibrary
`NifiLibrary` is a [Robot Framework](http://www.robotframework.org) library that simplifies interactions with the Apache NiFi API, leveraging the powerful Nipyapi SDK to provide keywords for managing NiFi components, controlling data flows, and automating tasks. This makes it easier to test and automate NiFi workflows directly within Robot Framework.

# Usage
Install `robotframework-nifilibrary` via `pip` command

```bash
pip install -U robotframework-nifilibrary
```

# Example Test Case
| *** Settings ***      |                                                  |                          |                      |                     |                                         |             |
|-----------------------|--------------------------------------------------|--------------------------|----------------------|---------------------|-----------------------------------------|-------------|
| Library               | NifiLibrary                                      |                          |                      |                     |                                         |             |
| Library               | OperatingSystem                                  |                          |                      |                     |                                         |             |
| *** Test Cases ***    |                                                  |                          |                      |                     |                                         |             |
| Rename File - Success |                                                  |                          |                      |                     |                                         |             |
|                       | ${token}                                         | Create Nifi Session      | ${host}              | ${port}             | ${username}                             | ${password} |
|                       | Update Parameter Value Without Stopped Component | ${parameter_context_id}  | ${file_filter_param} | ${file_filter_name} |                                         |             |
|                       | Start Processor                                  | ${get_file_processor_id} |                      |                     |                                         |             |
|                       | List Directory                                   | ${local_folder_path}/    |                      |                     |                                         |             |
|                       | Wait Until Keyword Succeeds                      | 3x                       | 5s                   | File Should Exist   | ${local_folder_path}/${file_name_value} |             |

# Documentation
