Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rj/testing5 #75

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
11 changes: 11 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'build-tests'
on:
pull_request:
branches:
- 'dev'
jobs:
unit-testing:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- run: 'npm start'
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'deploy'
on:
push:
branches:
- 'dev'
jobs:
unit-testing:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- run: 'docker compose -f docker-compose-test.yml up --abort-on-container-exit'
deploy:
needs: 'unit-testing'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'setup-python'
uses: 'actions/setup-python@v5'
with:
python-version: '3.x'
- run: 'python3 -m pip install --upgrade pip'
- run: 'python3 -m pip install --user awscli'
- run: 'sh ./scripts/deploy.sh'
env:
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}'
GITHUB_SHA: '${{ github.sha }}'
86 changes: 86 additions & 0 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1730731708554" clover="3.2.0">
<project timestamp="1730731708554" name="All files">
<metrics statements="71" coveredstatements="62" conditionals="12" coveredconditionals="10" methods="10" coveredmethods="6" elements="93" coveredelements="78" complexity="0" loc="71" ncloc="71" packages="1" files="3" classes="3"/>
<file name="configController.js" path="/Users/rjmccarthy/codesmith/podpulse/server/controllers/configController.js">
<metrics statements="20" coveredstatements="20" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
<line num="1" count="2" type="stmt"/>
<line num="3" count="2" type="stmt"/>
<line num="24" count="2" type="stmt"/>
<line num="25" count="2" type="stmt"/>
<line num="26" count="1" type="stmt"/>
<line num="29" count="2" type="stmt"/>
<line num="30" count="2" type="stmt"/>
<line num="31" count="2" type="stmt"/>
<line num="32" count="2" type="stmt"/>
<line num="33" count="2" type="stmt"/>
<line num="34" count="2" type="stmt"/>
<line num="35" count="2" type="stmt"/>
<line num="39" count="2" type="stmt"/>
<line num="40" count="2" type="stmt"/>
<line num="41" count="2" type="stmt"/>
<line num="46" count="2" type="stmt"/>
<line num="53" count="2" type="stmt"/>
<line num="54" count="1" type="stmt"/>
<line num="56" count="1" type="stmt"/>
<line num="60" count="2" type="stmt"/>
</file>
<file name="kubeController.js" path="/Users/rjmccarthy/codesmith/podpulse/server/controllers/kubeController.js">
<metrics statements="13" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="1"/>
<line num="1" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="6" count="1" type="stmt"/>
<line num="9" count="0" type="stmt"/>
<line num="10" count="0" type="stmt"/>
<line num="11" count="0" type="stmt"/>
<line num="12" count="0" type="stmt"/>
<line num="15" count="0" type="stmt"/>
<line num="20" count="2" type="stmt"/>
<line num="21" count="2" type="stmt"/>
<line num="23" count="1" type="stmt"/>
<line num="27" count="1" type="stmt"/>
</file>
<file name="prometheusController.js" path="/Users/rjmccarthy/codesmith/podpulse/server/controllers/prometheusController.js">
<metrics statements="38" coveredstatements="34" conditionals="12" coveredconditionals="10" methods="5" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="2" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="6" count="1" type="stmt"/>
<line num="8" count="1" type="stmt"/>
<line num="10" count="1" type="stmt"/>
<line num="12" count="1" type="stmt"/>
<line num="13" count="3" type="stmt"/>
<line num="14" count="3" type="cond" truecount="1" falsecount="1"/>
<line num="15" count="0" type="stmt"/>
<line num="16" count="0" type="stmt"/>
<line num="18" count="3" type="stmt"/>
<line num="19" count="3" type="stmt"/>
<line num="23" count="3" type="cond" truecount="2" falsecount="0"/>
<line num="24" count="2" type="stmt"/>
<line num="28" count="2" type="stmt"/>
<line num="29" count="1" type="stmt"/>
<line num="31" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="32" count="1" type="stmt"/>
<line num="36" count="1" type="stmt"/>
<line num="37" count="1" type="stmt"/>
<line num="40" count="2" type="stmt"/>
<line num="42" count="1" type="stmt"/>
<line num="46" count="1" type="stmt"/>
<line num="47" count="2" type="stmt"/>
<line num="48" count="2" type="stmt"/>
<line num="49" count="2" type="cond" truecount="1" falsecount="1"/>
<line num="50" count="2" type="stmt"/>
<line num="51" count="2" type="stmt"/>
<line num="52" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="56" count="1" type="stmt"/>
<line num="64" count="1" type="stmt"/>
<line num="68" count="0" type="stmt"/>
<line num="72" count="1" type="stmt"/>
<line num="74" count="0" type="stmt"/>
<line num="76" count="1" type="stmt"/>
<line num="77" count="1" type="stmt"/>
</file>
</project>
</coverage>
4 changes: 4 additions & 0 deletions coverage/coverage-final.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"/Users/rjmccarthy/codesmith/podpulse/server/controllers/configController.js": {"path":"/Users/rjmccarthy/codesmith/podpulse/server/controllers/configController.js","statementMap":{"0":{"start":{"line":1,"column":28},"end":{"line":1,"column":68}},"1":{"start":{"line":3,"column":13},"end":{"line":22,"column":1}},"2":{"start":{"line":24,"column":22},"end":{"line":27,"column":1}},"3":{"start":{"line":25,"column":2},"end":{"line":25,"column":42}},"4":{"start":{"line":26,"column":2},"end":{"line":26,"column":45}},"5":{"start":{"line":29,"column":25},"end":{"line":29,"column":27}},"6":{"start":{"line":30,"column":0},"end":{"line":58,"column":2}},"7":{"start":{"line":31,"column":2},"end":{"line":57,"column":3}},"8":{"start":{"line":32,"column":56},"end":{"line":32,"column":64}},"9":{"start":{"line":33,"column":4},"end":{"line":33,"column":31}},"10":{"start":{"line":34,"column":4},"end":{"line":34,"column":38}},"11":{"start":{"line":35,"column":4},"end":{"line":38,"column":4}},"12":{"start":{"line":39,"column":4},"end":{"line":39,"column":37}},"13":{"start":{"line":40,"column":4},"end":{"line":40,"column":41}},"14":{"start":{"line":41,"column":4},"end":{"line":44,"column":6}},"15":{"start":{"line":46,"column":4},"end":{"line":52,"column":6}},"16":{"start":{"line":53,"column":4},"end":{"line":53,"column":26}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":18}},"18":{"start":{"line":56,"column":4},"end":{"line":56,"column":21}},"19":{"start":{"line":60,"column":0},"end":{"line":60,"column":46}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":24,"column":22},"end":{"line":24,"column":23}},"loc":{"start":{"line":24,"column":28},"end":{"line":27,"column":1}},"line":24},"1":{"name":"(anonymous_1)","decl":{"start":{"line":30,"column":30},"end":{"line":30,"column":31}},"loc":{"start":{"line":30,"column":56},"end":{"line":58,"column":1}},"line":30}},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":1,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":1,"18":1,"19":2},"f":{"0":2,"1":2},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"3dec957951627e2885b47072bd19df76bc190278"}
,"/Users/rjmccarthy/codesmith/podpulse/server/controllers/kubeController.js": {"path":"/Users/rjmccarthy/codesmith/podpulse/server/controllers/kubeController.js","statementMap":{"0":{"start":{"line":1,"column":12},"end":{"line":1,"column":46}},"1":{"start":{"line":3,"column":23},"end":{"line":3,"column":43}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":33}},"3":{"start":{"line":6,"column":15},"end":{"line":6,"column":58}},"4":{"start":{"line":9,"column":2},"end":{"line":16,"column":3}},"5":{"start":{"line":10,"column":16},"end":{"line":10,"column":54}},"6":{"start":{"line":11,"column":4},"end":{"line":13,"column":7}},"7":{"start":{"line":12,"column":6},"end":{"line":12,"column":70}},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":48}},"9":{"start":{"line":20,"column":2},"end":{"line":24,"column":3}},"10":{"start":{"line":21,"column":16},"end":{"line":21,"column":71}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":64}},"12":{"start":{"line":27,"column":0},"end":{"line":27,"column":27}}},"fnMap":{"0":{"name":"getPods","decl":{"start":{"line":8,"column":15},"end":{"line":8,"column":22}},"loc":{"start":{"line":8,"column":25},"end":{"line":17,"column":1}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":27},"end":{"line":11,"column":28}},"loc":{"start":{"line":11,"column":36},"end":{"line":13,"column":5}},"line":11},"2":{"name":"deletePod","decl":{"start":{"line":19,"column":15},"end":{"line":19,"column":24}},"loc":{"start":{"line":19,"column":48},"end":{"line":25,"column":1}},"line":19}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":2,"10":2,"11":1,"12":1},"f":{"0":0,"1":0,"2":2},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"111ae5129d666521cf5fae63c29149770e4f5cdf"}
,"/Users/rjmccarthy/codesmith/podpulse/server/controllers/prometheusController.js": {"path":"/Users/rjmccarthy/codesmith/podpulse/server/controllers/prometheusController.js","statementMap":{"0":{"start":{"line":1,"column":19},"end":{"line":1,"column":48}},"1":{"start":{"line":2,"column":37},"end":{"line":2,"column":77}},"2":{"start":{"line":3,"column":18},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":46}},"4":{"start":{"line":6,"column":21},"end":{"line":6,"column":24}},"5":{"start":{"line":8,"column":22},"end":{"line":8,"column":24}},"6":{"start":{"line":10,"column":29},"end":{"line":10,"column":31}},"7":{"start":{"line":12,"column":0},"end":{"line":44,"column":2}},"8":{"start":{"line":13,"column":2},"end":{"line":43,"column":3}},"9":{"start":{"line":14,"column":4},"end":{"line":17,"column":5}},"10":{"start":{"line":15,"column":6},"end":{"line":15,"column":31}},"11":{"start":{"line":16,"column":6},"end":{"line":16,"column":34}},"12":{"start":{"line":18,"column":28},"end":{"line":18,"column":53}},"13":{"start":{"line":19,"column":31},"end":{"line":19,"column":59}},"14":{"start":{"line":23,"column":4},"end":{"line":30,"column":5}},"15":{"start":{"line":24,"column":23},"end":{"line":27,"column":7}},"16":{"start":{"line":28,"column":6},"end":{"line":28,"column":70}},"17":{"start":{"line":29,"column":6},"end":{"line":29,"column":36}},"18":{"start":{"line":31,"column":4},"end":{"line":38,"column":5}},"19":{"start":{"line":32,"column":23},"end":{"line":35,"column":7}},"20":{"start":{"line":36,"column":6},"end":{"line":36,"column":73}},"21":{"start":{"line":37,"column":6},"end":{"line":37,"column":36}},"22":{"start":{"line":40,"column":4},"end":{"line":40,"column":18}},"23":{"start":{"line":42,"column":4},"end":{"line":42,"column":21}},"24":{"start":{"line":46,"column":21},"end":{"line":70,"column":1}},"25":{"start":{"line":47,"column":44},"end":{"line":47,"column":47}},"26":{"start":{"line":48,"column":15},"end":{"line":48,"column":60}},"27":{"start":{"line":49,"column":2},"end":{"line":69,"column":3}},"28":{"start":{"line":50,"column":20},"end":{"line":50,"column":36}},"29":{"start":{"line":51,"column":4},"end":{"line":66,"column":7}},"30":{"start":{"line":52,"column":6},"end":{"line":65,"column":7}},"31":{"start":{"line":56,"column":8},"end":{"line":63,"column":11}},"32":{"start":{"line":64,"column":8},"end":{"line":64,"column":56}},"33":{"start":{"line":68,"column":4},"end":{"line":68,"column":63}},"34":{"start":{"line":72,"column":22},"end":{"line":75,"column":1}},"35":{"start":{"line":74,"column":2},"end":{"line":74,"column":77}},"36":{"start":{"line":76,"column":0},"end":{"line":76,"column":67}},"37":{"start":{"line":76,"column":18},"end":{"line":76,"column":39}},"38":{"start":{"line":77,"column":0},"end":{"line":77,"column":71}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":38},"end":{"line":12,"column":39}},"loc":{"start":{"line":12,"column":64},"end":{"line":44,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":46,"column":21},"end":{"line":46,"column":22}},"loc":{"start":{"line":46,"column":36},"end":{"line":70,"column":1}},"line":46},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":20},"end":{"line":51,"column":21}},"loc":{"start":{"line":51,"column":29},"end":{"line":66,"column":5}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":72,"column":22},"end":{"line":72,"column":23}},"loc":{"start":{"line":72,"column":40},"end":{"line":75,"column":1}},"line":72},"4":{"name":"(anonymous_4)","decl":{"start":{"line":76,"column":12},"end":{"line":76,"column":13}},"loc":{"start":{"line":76,"column":18},"end":{"line":76,"column":39}},"line":76}},"branchMap":{"0":{"loc":{"start":{"line":14,"column":4},"end":{"line":17,"column":5}},"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":17,"column":5}},{"start":{},"end":{}}],"line":14},"1":{"loc":{"start":{"line":23,"column":4},"end":{"line":30,"column":5}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":30,"column":5}},{"start":{},"end":{}}],"line":23},"2":{"loc":{"start":{"line":31,"column":4},"end":{"line":38,"column":5}},"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":38,"column":5}},{"start":{},"end":{}}],"line":31},"3":{"loc":{"start":{"line":49,"column":2},"end":{"line":69,"column":3}},"type":"if","locations":[{"start":{"line":49,"column":2},"end":{"line":69,"column":3}},{"start":{"line":67,"column":9},"end":{"line":69,"column":3}}],"line":49},"4":{"loc":{"start":{"line":52,"column":6},"end":{"line":65,"column":7}},"type":"if","locations":[{"start":{"line":52,"column":6},"end":{"line":65,"column":7}},{"start":{},"end":{}}],"line":52},"5":{"loc":{"start":{"line":53,"column":8},"end":{"line":54,"column":79}},"type":"binary-expr","locations":[{"start":{"line":53,"column":8},"end":{"line":53,"column":32}},{"start":{"line":54,"column":8},"end":{"line":54,"column":79}}],"line":53}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":3,"9":3,"10":0,"11":0,"12":3,"13":3,"14":3,"15":2,"16":2,"17":1,"18":2,"19":1,"20":1,"21":1,"22":2,"23":1,"24":1,"25":2,"26":2,"27":2,"28":2,"29":2,"30":2,"31":1,"32":1,"33":0,"34":1,"35":0,"36":1,"37":0,"38":1},"f":{"0":3,"1":2,"2":2,"3":0,"4":0},"b":{"0":[0,3],"1":[2,1],"2":[1,1],"3":[2,0],"4":[1,1],"5":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a4c7358217df6f0e0c233fa29a7ce409d10b6f6d"}
}
Loading
Loading