Github user achristianson commented on the issue:
https://github.com/apache/nifi-minifi-cpp/pull/43
@apiri Sure thing. These cmds might help for part of your testing:
```sh
dd if=/dev/urandom of=./testdat bs=1M count=1
```
```sh
curl -vvv -X POST --data-binary @./testdat
http://127.0.0.1:8888/contentListener
```
Here's a link with info to create test TLS certs:
http://stackoverflow.com/questions/14267010/how-to-create-self-signed-ssl-certificate-for-test-purposes
Here's the flow I was testing with:
```markdown
Flow Controller:
name: MiNiFi Flow
Processors:
# - name: GetFile
# class: org.apache.nifi.processors.standard.GetFile
# max concurrent tasks: 1
# scheduling strategy: TIMER_DRIVEN
# scheduling period: 1 sec
# penalization period: 30 sec
# yield period: 1 sec
# run duration nanos: 0
# auto-terminated relationships list:
# Properties:
# Input Directory: /tmp/getfile
# Keep Source File: false
# File Filter: ".*"
- name: ListenHTTP
class: org.apache.nifi.processors.standard.ListenHTTP
max concurrent tasks: 16
scheduling strategy: TIMER_DRIVEN
scheduling period: 1 sec
penalization period: 30 sec
yield period: 1 sec
run duration nanos: 0
auto-terminated relationships list:
Properties:
Listening Port: 8888
# Authorized DN Pattern: /C=AU/ST=Some-State/O=Internet Widgits
Pty Ltd/CN=localhost|/C=US/ST=Maryland/O=Internet Widgits Pty Ltd/CN=localhost
# SSL Certificate: /home/ubuntu/workspace/build/server.pem
# SSL Certificate Authority:
/home/ubuntu/workspace/build/server.pem
# SSL Verify Peer: yes
# SSL Minimum Version: TLS1.2
HTTP Headers to receive as Attributes (Regex): X-Test2.*
- name: LogAttribute
class: org.apache.nifi.processors.standard.LogAttribute
max concurrent tasks: 1
scheduling strategy: EVENT_DRIVEN
scheduling period: 1 sec
penalization period: 30 sec
yield period: 1 sec
run duration nanos: 0
auto-terminated relationships list:
- name: PutFile
class: org.apache.nifi.processors.standard.PutFile
max concurrent tasks: 1
scheduling strategy: EVENT_DRIVEN
scheduling period: 1 sec
penalization period: 30 sec
yield period: 1 sec
run duration nanos: 0
auto-terminated relationships list: ["success", "failure"]
Properties:
Output Directory: /tmp/putfile
Connections:
# - name: TransferFiles
# source name: GetFile
# source relationship name: success
# destination name: PutFile
# max work queue size: 0
# max work queue data size: 1 MB
# flowfile expiration: 60 sec
- name: TransferHttpToLogAttribute
source name: ListenHTTP
source relationship name: success
destination name: LogAttribute
max work queue size: 0
max work queue data size: 1 MB
flowfile expiration: 60 sec
- name: LogAttributeToPutFile
source name: LogAttribute
source relationship name: success
destination name: PutFile
max work queue size: 0
max work queue data size: 1 MB
flowfile expiration: 60 sec
Remote Processing Groups: []
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---