Skip to content

Commit

Permalink
Merge pull request #2 from VatsalJagani/AppInspect-Change
Browse files Browse the repository at this point in the history
App inspect change
  • Loading branch information
VatsalJagani authored Aug 25, 2021
2 parents 506b361 + 74c6546 commit 275d4e0
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 42 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,37 +53,14 @@ jobs:
path: |
splunk_app_3cx.tgz
- name: "Python Installation"
uses: actions/setup-python@v2
- uses: splunk/appinspect-cli-action@v1
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64'
app_path: 'splunk_app_3cx.tgz'
result_file: 'app-appinspect-mode-test.json'

# Ref - https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect/splunkappinspectclitool/installappinspect/installappinspectonlinux
- name: "Install App-Inspect"
run: |
sudo apt-get update
sudo apt-get install -y libxml2-dev libxslt-dev lib32z1-dev python-lxml
sudo apt-get install libmagic-dev
pip install https://download.splunk.com/misc/appinspect/splunk-appinspect-latest.tar.gz
- name: "Running App-Inspect"
run: |
mkdir test_results || true
splunk-appinspect inspect --mode test --data-format junitxml --output-file test_results/appinspect-mode-test.xml splunk_app_3cx.tgz
- name: "Running Cloud-Inspect"
run: |
splunk-appinspect inspect --mode precert --included-tags cloud --data-format junitxml --output-file test_results/appinspect-mode-cloud.xml splunk_app_3cx.tgz
- uses: actions/upload-artifact@v2
if: always()
with:
name: "app_inspect_reports"
path: |
test_results
- name: "Inspect and Cloud Vetting Check"
run: |
if grep failures=\"[1-9] test_results/appinspect-mode-test.xml; then exit 1; else exit 0; fi
if grep failures=\"[1-9] test_results/appinspect-mode-cloud.xml; then exit 1; else exit 0; fi
app-appinspect-mode-test.json
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Splunk app for 3CX Phone Systems is used to present the 3CX Phone Systems in


* Author - CrossRealms International Inc.
* Version - 1.2.0
* Version - 1.2.1
* Build - 1
* Creates Index - False
* Compatible with:
Expand Down Expand Up @@ -105,6 +105,10 @@ KNOWN LIMITATION

RELEASE NOTES
-------------
Version 1.2.1
* Minor Changes
* Changes to make compatible with Splunk AppInspect

Version 1.2.0
* Overview Dashboard:
* Fixed a visualization issue with the Daily Call Expectancy vs Agent Logins dashboard panel.
Expand Down
2 changes: 1 addition & 1 deletion default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ label = 3CX PhoneSystem app for Splunk
[launcher]
author = CrossRealms International Inc.
description = 3CX PhoneSystem app for Splunk.
version = 1.2.0
version = 1.2.1

[package]
id = splunk_app_3cx
4 changes: 2 additions & 2 deletions default/data/ui/views/3cx_agent_logins.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Agent Queue Logins</label>
<fieldset submitButton="false"></fieldset>
<row>
Expand Down Expand Up @@ -282,4 +282,4 @@ $ag_avgt$
</chart>
</panel>
</row>
</form>
</form>
4 changes: 2 additions & 2 deletions default/data/ui/views/3cx_call_reports.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form script="recordingbtn.js">
<form script="recordingbtn.js" version="1.1">
<label>Call Log</label>
<description>Note: Not all calls have recordings.</description>
<fieldset submitButton="false">
Expand Down Expand Up @@ -140,4 +140,4 @@ $hosts4$ $iext$ $exnums$ ($pcallid$) $qcallopt$
</table>
</panel>
</row>
</form>
</form>
4 changes: 2 additions & 2 deletions default/data/ui/views/3cx_overview.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Overview</label>
<description>Includes statistics for both queue and non-queue calls</description>
<fieldset submitButton="false"></fieldset>
Expand Down Expand Up @@ -250,4 +250,4 @@
</table>
</panel>
</row>
</form>
</form>
4 changes: 2 additions & 2 deletions default/data/ui/views/3cx_queue_extensions.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form stylesheet="table_highlight.css" script="table_highlight.js">
<form stylesheet="table_highlight.css" script="table_highlight.js" version="1.1">
<label>Queue Extensions</label>
<fieldset submitButton="false">
<input type="multiselect" token="hosts3" searchWhenChanged="true">
Expand Down Expand Up @@ -362,4 +362,4 @@
</table>
</panel>
</row>
</form>
</form>
4 changes: 2 additions & 2 deletions default/data/ui/views/3cx_queue_logins.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Agent Logins</label>
<description>View statistics and summaries for Agent login sessions</description>
<fieldset submitButton="false">
Expand Down Expand Up @@ -260,4 +260,4 @@ $queue_field$ $o_name$ $agnts$
</table>
</panel>
</row>
</form>
</form>
4 changes: 2 additions & 2 deletions default/data/ui/views/3cx_queue_overview.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Queue Summary</label>
<description>View general queue statistics over a period of time.</description>
<fieldset submitButton="false">
Expand Down Expand Up @@ -444,4 +444,4 @@ sum(SlaP) as SlaPc by Queue
</chart>
</panel>
</row>
</form>
</form>

0 comments on commit 275d4e0

Please sign in to comment.