Matthias Bertschy
6fcfe7f4e5
Merge pull request #1497 from sulemaanhamza/bugfix-core-list-gencontrolrows
...
Fix for Index Out of Range Error in Malformed Policies Handling
2023-11-23 17:09:58 +01:00
Matthias Bertschy
633024f8c5
Merge pull request #1498 from kubescape/severity
...
add one test for imagescan to avoid coverage check failure
2023-11-23 16:45:30 +01:00
Matthias Bertschy
92a4c1f64a
add one test for imagescan, delete patch_test to avoid coverage check failure
...
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com >
2023-11-23 15:14:52 +01:00
Matthias Bertschy
5d5ac5c5d5
Merge pull request #1474 from kubescape/fix-install
...
fix install.sh when sudo is required to delete /usr/local/bin/kubescape
2023-11-23 14:33:24 +01:00
Matthias Bertschy
5d795edd31
Merge pull request #1493 from mohaidoss/fix-download-artifacts
...
Fix for Kubescape Reading Policies from Local File
2023-11-23 12:56:54 +01:00
Mehdi Moussaif
fd390bbd37
Bug fix where kubescape fails to read from framework local paths
...
Fix typo in error description
Bug fix where kubescape get policies from file
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Missing '.json' extension when getting Framework Paths
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Appropriate test case for FrameworksPaths
Bug fix where kubescape fails to read from frameworks local paths
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
2023-11-23 12:46:44 +01:00
Matthias Bertschy
ba7317b4eb
Merge pull request #1496 from VaibhavMalik4187/core-pkg-tests
...
Adding Unit Tests for core/pkg Package
2023-11-23 12:04:01 +01:00
Matthias Bertschy
85b8648724
fix install.sh when sudo is required to delete /usr/local/bin/kubescape
...
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com >
2023-11-23 10:35:12 +01:00
VaibhavMalik4187
55162829e7
Added Test Suite for core/pkg package
...
Added unit tests for the following files:
- containerscan/datastructures.go
- hostsensorutils/hostsensordeploy.go
- hostsensorutils/hostsensorworkerpool.go
- hostsensorutils/utils.go
- policyhandler/handlepullpolicies.go
- policyhandler/handlepullpoliciesutils.go
- resourcehandler/filesloader.go
- resourcehandler/remotegitutils.go
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2023-11-23 14:19:13 +05:30
Matthias Bertschy
27590f623f
Merge pull request #1495 from sulemaanhamza/pkg-yamlhelper-test-suite
...
Adding Comprehensive Test Suite for yamlhelper Package
2023-11-23 09:24:51 +01:00
sulemaanhamza
bc2fc83599
Enhanced policies list to cover multiple edge-cases + Added new test-case with table-like structure to test pretty print of rows
...
Signed-off-by: sulemaanhamza <sulemanhamza97@gmail.com >
2023-11-23 13:15:31 +05:00
Matthias Bertschy
cb78723a96
Merge pull request #1494 from cbrom/core_cautils_datastructuremethods_tests
...
Code Improvement on isRuleKubescapeVersionCompatible function
2023-11-23 09:01:46 +01:00
sulemaanhamza
a513c27dce
Possible bug fix to prevent index out of range error in case of malformed policies + test case for edge cases
...
Signed-off-by: sulemaanhamza <sulemanhamza97@gmail.com >
2023-11-23 12:36:54 +05:00
suleman
f814d1df19
Added Test Suite for core/pkg/fixhandler/yamlhelper
...
Signed-off-by: sulemaanhamza <sulemanhamza97@gmail.com >
2023-11-23 12:33:51 +05:00
Cbrom
5455855e65
Merge branch 'kubescape:master' into core_cautils_datastructuremethods_tests
2023-11-22 22:13:58 +03:00
Matthias Bertschy
eff7f36866
Merge pull request #1480 from VaibhavMalik4187/interrupt-signal-fix
...
Implementation of Interrupt Signal Handler
2023-11-22 17:52:41 +01:00
cbrom
12056f4cad
fixed a test where it would run 1 test case twice
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 19:28:30 +03:00
cbrom
d96ab483a4
code improvement on type assertion for useFromKubescapeVersion and useUntilKubescapeVersion
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 19:27:52 +03:00
Matthias Bertschy
43dbb4ac70
Merge pull request #1484 from VaibhavMalik4187/core-core-tests
...
Added Test Suite for core/core Package
2023-11-22 17:26:31 +01:00
Matthias Bertschy
dc6c379aa2
Merge pull request #1487 from cbrom/core_cautils_datastructuremethods_tests
...
Adding Tests and Refactoring for ruleWithKSOpaDependency Function in cautils
2023-11-22 17:21:17 +01:00
Matthias Bertschy
8cacd4d984
Merge pull request #1472 from kubescape/bump
...
bump for security fixes
2023-11-22 16:58:15 +01:00
Matthias Bertschy
1342a06f43
Merge pull request #1477 from mohaidoss/master
...
Adding Test Suite for core/pkg/score
2023-11-22 16:36:51 +01:00
VaibhavMalik4187
55da8c1ce2
Added signal handler for the interrupt signal
...
- Subscribing to an interrupt signal handler allows graceful shutdown of
the program.
- Use exit code 130 for interrupt signals.
Fixes: https://github.com/kubescape/kubescape/issues/1476
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2023-11-22 20:51:19 +05:30
Matthias Bertschy
6adfef2a48
Merge pull request #1483 from VaibhavMalik4187/core-cautils-tests
...
Added Test Suite for cautils
2023-11-22 15:58:22 +01:00
VaibhavMalik4187
beb6d9535c
Added tests for cautils
...
Wrote new tests for the following files:
- controllink.go
- display.go
- fileutils.go
- getter/getpoliciesutils.go
- getter/utils.go
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2023-11-22 20:24:16 +05:30
Matthias Bertschy
8827434cce
Merge pull request #1485 from mohaidoss/tests/go-tree
...
Adding Test Suite for core/pkg/resultshandling/gotree
2023-11-22 15:53:19 +01:00
VaibhavMalik4187
9845175d29
Added tests for the core/core package
...
Wrote tests for the following files:
- kscore.go
- list.go
- patch.go
- scan.go
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2023-11-22 20:03:27 +05:30
Matthias Bertschy
ddf01648b4
Merge pull request #1490 from VaibhavMalik4187/binary-build-workflow-update
...
Run binary-build job only for kubescape/kubscape
2023-11-22 14:19:56 +01:00
VaibhavMalik4187
16f4849323
Run binary-build job only for kubescape/kubscape
...
Added a check before running the binary-build job to ensure that the
owner of the repository is kubescape.
Fixes: https://github.com/kubescape/kubescape/issues/1482
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2023-11-22 15:12:36 +05:30
cbrom
4ae45cd727
added tests for non string values of useUntilKubescapeVersion and useFromKubescapeVersion
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 11:39:36 +03:00
cbrom
b0a376aa2b
safe check from and until strings before usage in isRuleKubescapeVersionCompatible function
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 11:39:36 +03:00
cbrom
d45c97cef0
removed ruleWithKSOpaDependency function along with tests
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 11:24:44 +03:00
cbrom
7eb97fcba0
added tests for ruleWithKSOpaDependency function
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 02:07:36 +03:00
cbrom
73d1805ce6
added tests for ruleWithKSOpaDependency function
...
Signed-off-by: cbrom <kb.cbrom@gmail.com >
2023-11-22 02:07:19 +03:00
Mehdi Moussaif
c7f9a6ebc4
Adding Test Suite for core/pkg/resultshandling/gotree
...
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Additional tests for core/pkg/gotree
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
tests for printItem in core/pkg/gotree
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Refactor printer initialization in gotree_test.go
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
2023-11-21 20:32:11 +01:00
Mehdi
a2f632beb4
Test suite for core/pkg/score
...
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Use cautils for mock data
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Removed test TestNewScoreWrapperWithNilOPASessionObj
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
2023-11-21 16:35:09 +01:00
Matthias Bertschy
567698356e
Merge pull request #1481 from mohaidoss/unknown-version-fix
...
Fix for Empty Build Number in cmd Version
2023-11-21 15:00:54 +01:00
Mehdi Moussaif
887f6a0d0e
fix(cmd version): show unknown when BuildNumber is empty
...
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Use cobra's OutOrStdout instead of os.Stdout
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Test cmd version output
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Apply recommanded changes
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com >
Unneeded if and print statement
2023-11-21 14:04:37 +01:00
Amir Malka
0191135b10
support a backend with service discovery v2 ( #1479 )
...
Signed-off-by: Amir Malka <amirm@armosec.io >
2023-11-21 11:40:33 +02:00
Matthias Bertschy
8b596ec951
Merge pull request #1478 from VaibhavMalik4187/update-tablewriter-version
...
Update the tablewriter version to latest
2023-11-21 07:41:36 +01:00
VaibhavMalik4187
4863edc042
Update the tablewriter version to latest
...
Fixes: https://github.com/kubescape/kubescape/issues/1452
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2023-11-21 11:23:12 +05:30
Matthias Bertschy
dc6d85bc34
bump for security fixes
...
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com >
2023-11-14 09:55:53 +01:00
Matthias Bertschy
1c48636155
Merge pull request #1469 from ibidani/patch-1
...
Adding Cox Communications Adopters
2023-11-08 18:22:38 +01:00
Idan Bidani
bd5f8a9439
Adding Cox Communications Adopters
...
Signed-off-by: Idan Bidani <iplaman@gmail.com >
2023-11-08 12:20:14 -05:00
Matthias Bertschy
18850b8d41
Merge pull request #1468 from dirien/patch-1
...
Update ADOPTERS.md
2023-11-08 13:39:23 +01:00
Engin Diri
47bab2a9ed
Update ADOPTERS.md
...
Add Schwarz IT to adopters list
Signed-off-by: Engin Diri <info@ediri.de >
2023-11-08 13:32:18 +01:00
Matthias Bertschy
9e8b11c34f
Merge pull request #1467 from kubescape/craigbox-affiliation
...
Update MAINTAINERS.md
2023-11-08 00:45:54 +01:00
Craig Box
74bfb57d3a
Update MAINTAINERS.md
...
Change my affiliation
Signed-off-by: Craig Box <craigb@armosec.io >
2023-11-08 12:34:58 +13:00
David Wertenteil
9fb56a2856
Merge pull request #1464 from kubescape/remove-config-tests
...
Remove deprecated tests
2023-11-06 08:12:06 -05:00
David Wertenteil
9a098c59df
Merge pull request #1457 from johnfercher/master
...
Update maroto version from 0.42.0 to 1.0.0
2023-11-01 21:57:28 +02:00