phantomcyber / phantom-apps

Phantom Apps Repo
Apache License 2.0
82 stars 166 forks source link

phproofpoint: Fix - Fix connectivity test and on_poll actions #791

Closed x64x76-747126AF333E closed 3 years ago

x64x76-747126AF333E commented 3 years ago

Fixes for issue #412 causing "Unable to parse JSON response" errors

Please ensure your pull request (PR) adheres to the following guidelines:

Pull Request Checklist

Please check if your PR fulfills the following requirements:

Please check the type of change your PR introduces:

Release Notes (REQUIRED)

What is the current behavior? (OPTIONAL)

The _on_poll and _test_connectivity methods of the Proofpoint app currently throw an error ("1 action failed Unable to parse JSON response. Error: Error Message: Expecting value: line 1 column 1 (char 0)")

What is the new behavior? (OPTIONAL)

The _on_poll and _test_connectivity methods of the Proofpoint app will work properly and cause errors.

Other information (OPTIONAL)

Pay close attention to (OPTIONAL)

Screenshots (if relevant)

Screen Shot 2021-11-02 at 5 18 23 PM


Thanks for contributing!

x64x76-747126AF333E commented 3 years ago

The only failure is Min Phantom Version Test:

 =================================CODE CHECK TESTS=====================================
=====================================================
Check Num of Apps Changed                   | PASS |
=====================================================
Min Phantom Version Test                    | FAIL |
(noncritical, just a warning)
=====================================================
Python Version                              | PASS |
=====================================================
License Usage                               | PASS |
=====================================================
Publisher                                   | PASS |
=====================================================
Verify Password Config                      | PASS |
=====================================================
Description Periods                         | PASS |
=====================================================
Verbose Periods                             | PASS |
=====================================================
Action Names                                | PASS |
=====================================================
Sequential Column Ordering                  | PASS |
=====================================================
Data Path Wildcards                         | PASS |
=====================================================
Check Grammar                               | PASS |
=====================================================
README File                                 | PASS |
=====================================================
Consts File                                 | PASS |
=====================================================
Optional Parameters                         | PASS |
=====================================================

{
    "FAILED": [],
    "PASSED": [
        "Check Num of Apps Changed",
        "Python Version",
        "License Usage",
        "Publisher",
        "Verify Password Config",
        "Description Periods",
        "Verbose Periods",
        "Action Names",
        "Sequential Column Ordering",
        "Data Path Wildcards",
        "Check Grammar",
        "README File",
        "Consts File",
        "Optional Parameters"
    ],
    "WARNINGS": [
        {
            "Min Phantom Version Test": {
                "success": false,
                "message": "Min Phantom version in app json is too low. Found: '4.9.39220' but expected '4.10.0.40961'"
            }
        }
    ]
}

I have tested the updated app code on Phantom version v4.9.39220 and it worked (tested all actions). Is there any way to allow this build to continue?

splunk-soar-connectors-bot commented 3 years ago

Hello!

The apps in this repo have been migrated to our new GitHub org https://github.com/splunk-soar-connectors under separate repositories. Kindly re-submit your PR to the repo in the new org for the app you are contributing to.