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

Merging latest #3

Open
wants to merge 344 commits into
base: docs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
344 commits
Select commit Hold shift + click to select a range
a291525
Fix URL for ping test (#400)
sebrandon1 Oct 19, 2021
9f291be
CRD status handler using generic json template. (#391)
greyerof Oct 19, 2021
ce4547a
Get Release version from Git tag (#379)
edcdavid Oct 20, 2021
ebe0298
New TC: CRDs status subresource availability (#372)
greyerof Oct 20, 2021
a435ca2
removing no-effect incorect code to get rid of warnings (#403)
edcdavid Oct 20, 2021
8d1afa9
Upgrade to Go 1.17.2 (#402)
sebrandon1 Oct 20, 2021
8d11ed0
Adding lint to list of tools installed by make (#404)
edcdavid Oct 20, 2021
d0be7e0
Tainted kernel log improvement (#401)
edcdavid Oct 20, 2021
8d55a81
Reel.go trace changed to debug level. (#406)
greyerof Oct 21, 2021
fa4fa3c
Run nodeport test once per namspace (#409)
edcdavid Oct 26, 2021
2faeb92
Integrate best practice reference into test catalog (#398)
shimritproj Oct 26, 2021
03b5d5c
Replacing adhoc oc debug commands with precreated shell sessions to t…
hamadise Oct 26, 2021
fac1228
Increase time out for deploying debug pods (#411)
jc-rh Oct 26, 2021
9bacf5a
Fix for "latest" image tag not created (#412)
edcdavid Oct 27, 2021
835e2c0
Support for more accurate logs in claims and adaptation to Ginkgo V2.…
edcdavid Oct 27, 2021
d2818cb
make sure node has debug pod before testing tainted kernel (#414)
hamadise Oct 28, 2021
ffbb611
Fix observability TS panic in CRD TC. (#421)
greyerof Oct 29, 2021
a680688
Hugepages TC fix (#410)
greyerof Oct 29, 2021
3a446be
Enabling intrusive tests in Github workflow (#423)
edcdavid Oct 29, 2021
f467748
Fix for Ginkgo v2 deprecation warnings and filtering bug (#420)
edcdavid Oct 29, 2021
bac107a
small fixes to diagnostic suite (#422)
hamadise Oct 29, 2021
e532df8
Fix for duplicate dangling sessions un-expectedly closing (#424)
edcdavid Nov 1, 2021
283ed35
test fix (#427)
edcdavid Nov 1, 2021
91009fe
Checks if the claim/junit directory exists (#426)
edcdavid Nov 1, 2021
cb11215
Fix gitCommit static var (#425)
jc-rh Nov 1, 2021
91eee9a
Add SCC capability checks for IPC_LOCK and NET_RAW (#413)
shimritproj Nov 2, 2021
0da5bb3
Add redhat_registry to enable offline run of daemon debug set (#429)
hamadise Nov 2, 2021
4e5aec3
Expecters Sent/Match debug output only when LOG_LEVEL=trace (#407)
greyerof Nov 2, 2021
848d7e1
Adding source for overview.svg picture (#430)
edcdavid Nov 2, 2021
4377b44
Removed the unnecessary loop in the session monitoring routine (#431)
jc-rh Nov 2, 2021
151a239
Consolidate all cmds into one tnf cmd (#428)
aabughosh Nov 2, 2021
c9b90f3
Skip connectivity test when no suitable container found (#434)
jc-rh Nov 2, 2021
b755f7f
Fix makefile target dependency (#435)
jc-rh Nov 2, 2021
7094a23
Fix typos (#432)
sebrandon1 Nov 3, 2021
742a2d4
Created generic command launcher on utils package. (#433)
greyerof Nov 3, 2021
734a116
use number of nodes with expected debug pod to verify if daemonset is…
hamadise Nov 3, 2021
400867b
add missing suite to readme (#439)
hamadise Nov 3, 2021
b86786c
Bump google.golang.org/grpc from 1.41.0 to 1.42.0 (#437)
dependabot[bot] Nov 3, 2021
efcad18
Fix CRD tc identifier test suite. (#441)
greyerof Nov 3, 2021
54c10ba
update logging test (#440)
hamadise Nov 3, 2021
93dc5f0
platform-alteration-base-image test fix(#443)
hamadise Nov 3, 2021
8115e8f
update the best practice (#447)
aabughosh Nov 4, 2021
8a06122
Fix typo in claim/junit filepath check (#445)
edcdavid Nov 4, 2021
88ffa4a
Skip pods not in Running state in discovery (#442)
jc-rh Nov 4, 2021
d47c9ca
Fix jq hostPort lookup (#444)
sebrandon1 Nov 5, 2021
75ca603
Fix error handling in platform tests (#451)
jc-rh Nov 5, 2021
26f4fca
More typo cleanup (#453)
sebrandon1 Nov 5, 2021
27f65a8
Go 1.17.3 update (#452)
sebrandon1 Nov 5, 2021
a4d5171
exclude default pod IP from multus ip list (#436)
edcdavid Nov 5, 2021
71c20d0
Add IPC_LOCK and NET_RAW to pod SCC check (#449)
shimritproj Nov 5, 2021
031ad11
Fix deployment discovery with non qualified taget pod label names (#454)
jc-rh Nov 5, 2021
e2d163a
Bump github.com/onsi/gomega from 1.16.0 to 1.17.0 (#456)
dependabot[bot] Nov 8, 2021
85dfa3b
Lifecycle suite issues (#446)
edcdavid Nov 8, 2021
e4d73e5
Fix rolebinding result parsing (#457)
edcdavid Nov 10, 2021
85337e4
add multinamespaces support (#455)
hamadise Nov 11, 2021
42b9e62
Up-version oc client in tnf image (#463)
jc-rh Nov 11, 2021
b68b199
Restore CRDs autodiscovery. (#464)
greyerof Nov 11, 2021
338e49d
fix ifconfig (#469)
hamadise Nov 12, 2021
dff3dd2
Fix catalog md header (#471)
jc-rh Nov 12, 2021
f632111
Fails Ginko test with non zero exit code (#470)
edcdavid Nov 12, 2021
bced9a4
Update version.json
jc-rh Nov 12, 2021
2879355
update readme (#473)
hamadise Nov 15, 2021
fa89def
Use go template for hostPort check (#474)
sebrandon1 Nov 15, 2021
c8521d2
remove 3.0.x branch(due to failure to build), add 3.1.x branch to mat…
edcdavid Nov 15, 2021
42d03b6
GolangCI v1.43.0; various fixes (#476)
sebrandon1 Nov 16, 2021
a33b3d5
Escape special chars in the utils.ExecuteCommand function. (#467)
greyerof Nov 17, 2021
c46bf49
CNFCERT-170:HPA support (autodiscovery and scaling) (#459)
aabughosh Nov 17, 2021
981d8ab
delete hpa from pods and run scaling test (#478)
aabughosh Nov 18, 2021
d7e84ed
Fix URL for node selector identifier (#480)
javierpena Nov 19, 2021
5b10b68
cnfcert170: move the delete to be befor running with container] (#485)
aabughosh Nov 19, 2021
3f27833
Fix Multus log (#479)
edcdavid Nov 19, 2021
b8ff30e
Optimize test target discovery with multiple namespaces (#482)
hamadise Nov 19, 2021
fea1e7c
Update CONTRIBUTING.md to reflect current status (#484)
javierpena Nov 22, 2021
9cdc185
Add tests for isMaster/isWorker (#483)
sebrandon1 Nov 22, 2021
deae0b1
Retiring TNF_MINIKUBE_ONLY (#487)
jc-rh Nov 22, 2021
46bb545
Add more test coverage to autodiscover (#481)
sebrandon1 Nov 23, 2021
132da5f
Update links to files from the partner repo (#489)
jc-rh Nov 23, 2021
4052810
Archive test run artifacts (#491)
javierpena Nov 25, 2021
411c3f3
Namespaces TC extended with CRs namespace check. (#468)
greyerof Nov 25, 2021
1b281ff
CNFCER-185: add handler to check image pull policy (#488)
aabughosh Nov 26, 2021
8426219
Utility function for creating generic test handler (#492)
jc-rh Nov 26, 2021
9e78c1d
More typo cleanup (#495)
sebrandon1 Nov 29, 2021
aba57da
Fix the capability test in case of multi lines from the command outpu…
shimritproj Nov 29, 2021
edd78bc
Add static HTML page to visualize claim.json (#494)
javierpena Nov 30, 2021
4a8ef3f
Added claim file logger function in tnf (test.go) package (#498)
greyerof Nov 30, 2021
b5a8cc1
Add unit tests for containerid package (#497)
sebrandon1 Dec 1, 2021
1e65ec4
Fixing Multus skip logic (#499)
edcdavid Dec 1, 2021
2f4dfaa
Fix for ReelMatch() always getting called (#496)
jc-rh Dec 1, 2021
e11a65f
Combo TC improvements. (#501)
greyerof Dec 2, 2021
2db4a35
Insert claim.json file in results HTML page (#500)
javierpena Dec 2, 2021
b675450
add automount service test (#490)
hamadise Dec 2, 2021
1e4ebb4
Remove dead func (#503)
sebrandon1 Dec 2, 2021
683b4b9
Skipping certification tests when test input not present (#505)
edcdavid Dec 3, 2021
44a594d
Add more unit tests for autodiscover (#504)
sebrandon1 Dec 7, 2021
0671c42
Update Go to 1.17.4 (#509)
sebrandon1 Dec 7, 2021
7a3adee
Parsing and wait for termination fix in daemonset (#510)
edcdavid Dec 7, 2021
ac29c57
Utility function to collect status on lifecycle test failure (#512)
jc-rh Dec 8, 2021
a2543f7
Ensure drained nodes are uncordoned if test times out (#502)
javierpena Dec 9, 2021
e708386
Access-control: continue TCs with other Pods when one fails. (#508)
greyerof Dec 9, 2021
ee05a1e
Observability: Continue TCs with other CUTs/CRDs when someone fails. …
greyerof Dec 9, 2021
607fd8c
Refactoring oc session access for recreating on demand (#516)
jc-rh Dec 9, 2021
19e0dde
Network connectivity test based on running nsenter/ping on debug pods…
edcdavid Dec 10, 2021
fc0d6b5
removing dependency on ip utility (via nsenter) (#518)
edcdavid Dec 13, 2021
fc12eb9
Remove partner pod dead code and doc update (#514)
edcdavid Dec 13, 2021
1518f96
Added clarification about the functionality (#522)
theemj Dec 14, 2021
4248f93
Stop passing REDHAT_RHEL_REGISTRY in run-container.sh (#525)
javierpena Dec 14, 2021
01bf2e2
Updated descriptions of affiliated-cert tests (#527)
theemj Dec 14, 2021
0ae5d02
Update fsdiff test with oc session recovery on timeout (#526)
jc-rh Dec 14, 2021
2022e4c
run networking tests once per pod (#521)
hamadise Dec 14, 2021
a4c87e3
Add utils package unit tests (#523)
sebrandon1 Dec 14, 2021
e927522
Enable diagnostic suite tests in non-OCP environments (#519)
javierpena Dec 14, 2021
4f3d47a
Run cluster role binding test once per pod (#530)
javierpena Dec 15, 2021
5e2232d
Add unit tests for diagnostic suite (#528)
sebrandon1 Dec 15, 2021
533ce9a
Remove TNF_OC_DEBUG_IMAGE_ID env var (#529)
javierpena Dec 15, 2021
aa4fee1
Remove TNF_PARTNER_NAMESPACE (#534)
jc-rh Dec 15, 2021
a187e61
Enable image building from 3.2.x branch
jc-rh Dec 15, 2021
cfb69a1
Putting the old minikube only var back
jc-rh Dec 15, 2021
767e9f0
Add unit tests for common/env (#535)
sebrandon1 Dec 16, 2021
0761bf5
Affiliated-certification TS: ensure all containers/operators are test…
greyerof Dec 16, 2021
9870ed9
CNFCERT-164:Scaling test on stateful sets (#513)
aabughosh Dec 16, 2021
b34776f
Operator TS: ensure all operators are tested. (#533)
greyerof Dec 16, 2021
a8d50e0
Platform alteration hp TC: added coverage for single hugepages param.…
greyerof Dec 16, 2021
748e3bd
Update Go to 1.17.5 (#538)
sebrandon1 Dec 17, 2021
dcf36a9
lifecycle: improve logging, test all pods if one fails (#532)
javierpena Dec 17, 2021
303f7fe
Remove several unused handlers (#544)
javierpena Dec 20, 2021
0f12ab0
Readme and version update (#541)
jc-rh Dec 20, 2021
0fc1a1a
Display failure reason for failed and skipped tests (#545)
javierpena Dec 20, 2021
727a7f0
Remove unused readremotefile handler (#539)
javierpena Dec 20, 2021
fb86a25
Statefulset support for pod-recreation (node drain) test (#543)
aabughosh Dec 20, 2021
c128018
CATALOG: Restore Cluster CSI info TC. (#548)
greyerof Dec 21, 2021
3a8fb85
Networking TS: ensure all networks/namespaces are tested. (#536)
greyerof Dec 21, 2021
ce721c0
Missed version upgrade; 1.43.x (#551)
sebrandon1 Dec 22, 2021
498206d
Catalog correction (#553)
jc-rh Dec 22, 2021
562c8b6
Add unit test coverage gate (#552)
sebrandon1 Dec 22, 2021
7042470
Fix more typos (#555)
sebrandon1 Dec 22, 2021
8c39854
Removing naked returns (#546)
sebrandon1 Dec 22, 2021
bdad8fb
update statefulset scaling identifier (#550)
aabughosh Dec 23, 2021
66df443
Replace usage of ifconfig with ip (#554)
javierpena Dec 23, 2021
49353e9
Update platform-alteration/sysctl-config in CATALOG.md (#557)
javierpena Dec 23, 2021
cdbdc61
Remove dead code and out-of-date comment (#558)
jc-rh Dec 24, 2021
649acf9
Improve CNI plugin collection (#556)
javierpena Dec 24, 2021
294729f
Expose the interactive context from Oc (#563)
jc-rh Jan 6, 2022
8dc95ec
Make the networking tests run once per pod instead of once per contai…
edcdavid Jan 6, 2022
e9f015b
Update copyright notice with year 2022 (#564)
jc-rh Jan 6, 2022
6a0eea2
Add tests for csv_info.go (#559)
sebrandon1 Jan 7, 2022
e798c34
Limit the number of local shell sessions to 1 (#565)
jc-rh Jan 11, 2022
a43025b
Bump github.com/spf13/cobra from 1.2.1 to 1.3.0 (#568)
dependabot[bot] Jan 11, 2022
cd107c9
Bump google.golang.org/grpc from 1.42.0 to 1.43.0 (#569)
dependabot[bot] Jan 11, 2022
4267e52
Add more autodiscover tests (#567)
sebrandon1 Jan 11, 2022
b9f9954
Add best practice ref for automount token (#572)
sebrandon1 Jan 12, 2022
30a7721
Fix missed Go 1.17.5 upgrade (#573)
sebrandon1 Jan 13, 2022
5a685c1
Lifecycle's TC for terminationGracePeriod param refactored. (#562)
greyerof Jan 13, 2022
ae87316
Use labels in test cases (#571)
javierpena Jan 13, 2022
32d1630
Fix false positives caused by the grep expression in clusterrolebindi…
jc-rh Jan 13, 2022
f2c0c83
Improve git management in Makefile and release workflow (#574)
javierpena Jan 14, 2022
921f2e4
#1 enhance catalog browsing (#561)
jgato Jan 14, 2022
dea0724
Add unit tests for config.go (#578)
sebrandon1 Jan 18, 2022
a85cb06
Collect and parse image source for contains under test (#579)
jc-rh Jan 18, 2022
8575cfd
Add test label to catalog (#582)
javierpena Jan 19, 2022
c95b79b
Update multus networking TC id (#577)
javierpena Jan 19, 2022
c6547bc
Include discovered container images in the container certification te…
jc-rh Jan 20, 2022
3ad1568
Update Go to 1.17.6 (#585)
sebrandon1 Jan 20, 2022
410a858
Check if port that listening is declared (#566)
shimritproj Jan 20, 2022
f081162
Bump coverage threshold to 70% (#590)
sebrandon1 Jan 20, 2022
1433979
Fix simple typo (#588)
sebrandon1 Jan 20, 2022
f732cc4
Catalog query retry on errors only (#589)
jc-rh Jan 20, 2022
4a55622
Ensure catalog suites are always ordered (#586)
javierpena Jan 20, 2022
897b4f7
Bump github.com/onsi/gomega from 1.17.0 to 1.18.0 (#594)
dependabot[bot] Jan 24, 2022
9d41140
Re-enable the unused linter (#593)
sebrandon1 Jan 25, 2022
d6e88f6
Add unit test for FindDebugPods (#592)
sebrandon1 Jan 25, 2022
77153f3
Add allow-list for tainted modules (#580)
sebrandon1 Jan 25, 2022
145caa6
Add tag/digest support in container certification query (#595)
jc-rh Jan 25, 2022
0d8465b
Bump google.golang.org/grpc from 1.43.0 to 1.44.0 (#598)
dependabot[bot] Jan 26, 2022
ff7b058
Bump GolangCI-lint to 1.44.0 (#600)
sebrandon1 Jan 26, 2022
ebc99de
Add type field to the CNI plugin info in claim file. (#601)
greyerof Jan 27, 2022
860cc63
Bump github.com/onsi/gomega from 1.18.0 to 1.18.1 (#606)
dependabot[bot] Jan 31, 2022
435d3c5
Upgrade Ginkgo to v2.1.1 (#608)
sebrandon1 Jan 31, 2022
386913f
Lifecycle TS: avoid some TCs to stop after each failure. (#609)
greyerof Feb 1, 2022
d4484ee
Add freshness grade check to container certification test (#599)
jc-rh Feb 1, 2022
362ce6a
Add identifer tests (#597)
sebrandon1 Feb 1, 2022
d6710c3
Fix install-tools path (#610)
sebrandon1 Feb 1, 2022
e6d20f7
cnfcert-203: check csi certified (#570)
aabughosh Feb 1, 2022
14cbd5a
Add accesscontrol tests (#602)
sebrandon1 Feb 2, 2022
4964737
Diagnostic TS removal (#591)
greyerof Feb 2, 2022
2165d05
Backport for skip Multus label support (#614)
edcdavid Feb 2, 2022
816ca25
Add case for docker-pullable (#613)
sebrandon1 Feb 3, 2022
3e9378a
update partner to v3.3.0 (#615)
hamadise Feb 3, 2022
9d0d60f
adding 3.3.x branch to the image building and bugfix (#617)
edcdavid Feb 4, 2022
8bc280c
Reverting local tag (#618)
edcdavid Feb 4, 2022
6a92bdd
Forcing sequential actions in matrix (#619)
edcdavid Feb 4, 2022
f3ec3d6
Add IPv6 support for networking tests (#603)
edcdavid Feb 7, 2022
f0e4183
Adding new label to skip Multus networking tests on specific pods (#605)
edcdavid Feb 7, 2022
e0a58c6
Pushing latest only once (#620)
edcdavid Feb 7, 2022
ee64c02
Fix test; add contains feature to StringInSlice (#623)
sebrandon1 Feb 8, 2022
b6ad801
More typos (#616)
sebrandon1 Feb 8, 2022
62a913d
Fix image generation after ipv6 merge (#622)
edcdavid Feb 8, 2022
d14d6b4
Fix for bug in networking latest PR (#627)
edcdavid Feb 9, 2022
4570e03
CNFCERT-266:affiliated-certification operator-is-certified test error…
aabughosh Feb 9, 2022
560d9ff
Create new test ID for networking's testListenAndDeclared TC (#626)
greyerof Feb 9, 2022
0463519
Remove claimjson.js from repo. (#628)
greyerof Feb 10, 2022
184e32f
unitTest for file suite.go in "networking" (#604)
shimritproj Feb 13, 2022
ee466a7
Bump github.com/onsi/ginkgo/v2 from 2.1.1 to 2.1.2 (#631)
dependabot[bot] Feb 15, 2022
780e8a7
Bump install-tools ginkgo to 2.1.2 (#632)
sebrandon1 Feb 15, 2022
3d922f7
Update Go to 1.17.7 (#630)
sebrandon1 Feb 15, 2022
eb3ad1a
Remove unused func (#629)
sebrandon1 Feb 15, 2022
cf15eb4
Bump github.com/onsi/ginkgo/v2 from 2.1.2 to 2.1.3 (#633)
dependabot[bot] Feb 16, 2022
3e65429
Bump install-tools ginkgo to v2.1.3 (#635)
sebrandon1 Feb 22, 2022
3b5bceb
fix for a bug on test all operator certified (#637)
aabughosh Feb 22, 2022
c1fe06c
ModuleInTree function modified to use /sys/module/<mod>/taint (#638)
greyerof Feb 22, 2022
8d62438
Bump GolangCI-lint to v1.44.1 (#636)
sebrandon1 Feb 28, 2022
e9f485e
CNFCERT-239:Expand IsCertified test to include Helm Chart certificati…
aabughosh Feb 28, 2022
2662769
Liveness and Readiness check (#634)
shimritproj Feb 28, 2022
c0c2164
Upgrade GolangCI-lint to v1.44.2 (#641)
sebrandon1 Mar 2, 2022
a9b4eae
Fix typo (#640)
jmontesi Mar 2, 2022
570abc5
Fix for unit testing and test coverage (backport from new repo) (#639)
edcdavid Mar 2, 2022
b065c46
Update Go to 1.17.8 (#643)
sebrandon1 Mar 7, 2022
dec985b
Added timeout const for node drain steps, increased drainTimeoutMinut…
shaior Mar 8, 2022
f80804d
Include logic to retrieve indexImage and bundleImage for CSV (#612)
ramperher Mar 8, 2022
ebadfe1
Bump Helm to 3.8.1 (#648)
sebrandon1 Mar 11, 2022
b925c65
Bump github.com/spf13/cobra from 1.3.0 to 1.4.0 (#650)
dependabot[bot] Mar 14, 2022
24b83c8
using tar.gz realease to install helm instead of git repo (#652)
edcdavid Mar 14, 2022
a2f6cec
Avoid panic'ing when helm is not installed. (#645)
greyerof Mar 14, 2022
f522a10
Removing extra statefulset test (#651)
edcdavid Mar 14, 2022
c8e5f85
Bump google.golang.org/grpc from 1.44.0 to 1.45.0 (#647)
dependabot[bot] Mar 14, 2022
89e10ee
Added dynamic timeout for the pod-recreation TC. (#646)
greyerof Mar 15, 2022
82ff9cd
Get all CSV's installPlans (#649)
greyerof Mar 15, 2022
19b7849
backporting the log highlighting fix from new repo (#655)
edcdavid Mar 16, 2022
e22e6b7
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#654)
dependabot[bot] Mar 17, 2022
1aae545
Bug fix: kernel tainted test did not fail on other types of failures …
sebrandon1 Mar 17, 2022
97ba55c
Adding data about number of container (#658)
shimritproj Mar 28, 2022
7c47e24
Bump github.com/onsi/gomega from 1.18.1 to 1.19.0 (#659)
dependabot[bot] Mar 29, 2022
e982e8b
Update GolangCI to 1.45.2 (#660)
sebrandon1 Mar 31, 2022
d2f531a
Porting of Fail operator cert test if operator is not certified #95 (…
edcdavid Mar 31, 2022
8710512
Fix timeout (#663)
edcdavid Apr 12, 2022
905f117
Bug fix for the NodeSelector handler. (#664)
greyerof Apr 12, 2022
fae36e9
Diagnostic mode fix: close debug oc sessions before removing node lab…
greyerof Apr 12, 2022
9cfa683
Timeout for debug pods increased to 5mins. (#669)
greyerof Apr 13, 2022
4ff1263
Container testing log level set to trace. (#665)
greyerof Apr 13, 2022
d6ba0fe
lifecycle's terminationGracePeriod TC removed. (#667)
greyerof Apr 18, 2022
c463484
Solution for issue on Nokia (#671)
shimritproj Apr 19, 2022
873a85e
Update Go to 1.17.9 (#668)
sebrandon1 Apr 19, 2022
c239746
Fix missed version changes (#670)
sebrandon1 Apr 19, 2022
2b901f3
Fix the regex used to parse the sysctl config params (#675)
jmontesi Apr 28, 2022
da1fc1d
Bump google.golang.org/grpc from 1.45.0 to 1.46.0 (#673)
dependabot[bot] May 5, 2022
3d9ad89
Upgrade Ubuntu release to 22.04 (#676)
sebrandon1 Jun 17, 2022
9b55232
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#680)
dependabot[bot] Jun 17, 2022
b754ace
Bump google.golang.org/grpc from 1.46.0 to 1.47.0 (#679)
dependabot[bot] Jun 17, 2022
121c5ea
Bump github.com/hashicorp/go-version from 1.4.0 to 1.5.0 (#678)
dependabot[bot] Jun 17, 2022
f6f45e2
Bump github.com/stretchr/testify from 1.7.2 to 1.7.5 (#683)
dependabot[bot] Jun 27, 2022
e0dd034
Add deprecation notice
sebrandon1 Aug 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,21 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.15
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: 1.17.9

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Rebuild mocks
run: go get github.com/golang/mock/mockgen && make mocks
run: go install github.com/golang/mock/mockgen@v1.6.0 && make mocks

- name: Run Tests
run: make test
env:
SHELL: /bin/bash

close_job:
if: github.event.pull_request.merged == false
Expand Down
131 changes: 100 additions & 31 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,88 +12,137 @@ env:
IMAGE_NAME: testnetworkfunction/test-network-function
IMAGE_TAG: unstable
TNF_CONTAINER_CLIENT: docker
TNF_MINIKUBE_ONLY: true
TNF_NON_INTRUSIVE_ONLY: true
TNF_NON_INTRUSIVE_ONLY: false
TNF_DISABLE_CONFIG_AUTODISCOVER: false
TNF_CONFIG_DIR: /tmp/tnf/config
TNF_OUTPUT_DIR: /tmp/tnf/output
TNF_SRC_URL: 'https://github.com/${{ github.repository }}'
TESTING_CMD_PARAMS: '-n host -i ${REGISTRY_LOCAL}/${IMAGE_NAME}:${IMAGE_TAG} -t ${TNF_CONFIG_DIR} -o ${TNF_OUTPUT_DIR}'
CONTAINER_DIAGNOSTIC_LOG_LEVEL: trace
TNF_PARTNER_DIR: '/usr/tnf-partner'
TNF_PARTNER_SRC_DIR: '${TNF_PARTNER_DIR}/src'
TERM: xterm-color

jobs:
lint:
name: Run Linter
runs-on: ubuntu-20.04
name: Run Linter and Vet
runs-on: ubuntu-22.04

steps:
- name: Set up Go 1.15
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: 1.17.9

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.sha }}

- name: Rebuild mocks
run: go get github.com/golang/mock/mockgen && make mocks

- name: Install golint
run: go get golang.org/x/lint/golint
run: go install github.com/golang/mock/[email protected] && make mocks

# TODO: golangci-lint team recommends using a GitHub Action to perform golangci-lint responsibilities. However,
# TODO: golangci-lint team recommends using a GitHub Action to perform golangci-lint responsibilities. However
# there does not appear to be a way to honor our existing .golangci.yml. For now, mimic developer behavior.
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0
run: make install-lint

- name: make lint
run: make lint

- name: make vet
run: make vet

yamllint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
config_data: |
extends: default
rules:
line-length:
level: warning
trailing-spaces:
level: warning
brackets:
level: warning
empty-lines:
level: warning

unit-tests:
name: Run Unit Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Set up Go 1.15
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: 1.17.9

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.sha }}

- name: Rebuild mocks
run: go get github.com/golang/mock/mockgen && make mocks
run: go install github.com/golang/mock/mockgen@v1.6.0 && make mocks

- name: Run Tests
run: make test
env:
SHELL: /bin/bash

- name: Quality Gate - Test coverage shall be above threshold
env:
TESTCOVERAGE_THRESHOLD: 50
run: |
echo "Quality Gate: checking test coverage is above threshold ..."
echo "Threshold : $TESTCOVERAGE_THRESHOLD %"
totalCoverage=`UNIT_TEST='true' go tool cover -func=cover.out | grep total | grep -Eo '[0-9]+\.[0-9]+'`
echo "Current test coverage : $totalCoverage %"
if (( $(echo "$totalCoverage $TESTCOVERAGE_THRESHOLD" | awk '{print ($1 > $2)}') )); then
echo "OK"
else
echo "Current test coverage is below threshold. Please add more unit tests or adjust threshold to a lower value."
echo "Failed"
exit 1
fi

smoke-tests:
name: Run Smoke Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
SHELL: /bin/bash
KUBECONFIG: '/home/runner/.kube/config'

steps:
- name: Set up Go 1.15
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: 1.17.9

- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.sha }}

- name: Execute `make mocks`
run: go get github.com/golang/mock/mockgen && make mocks
run: go install github.com/golang/mock/mockgen@v1.6.0 && make mocks

- name: Install ginkgo
run: go get -u github.com/onsi/ginkgo/ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.1.3

- name: Execute `make build`
run: make build
Expand All @@ -107,7 +156,9 @@ jobs:
path: cnf-certification-test-partner

- name: Start the minikube cluster for `local-test-infra`
uses: ./cnf-certification-test-partner/.github/actions/start-minikube
uses: ./cnf-certification-test-partner/.github/actions/start-k8s-cluster
with:
working_directory: cnf-certification-test-partner

- name: Create `local-test-infra` OpenShift resources
uses: ./cnf-certification-test-partner/.github/actions/create-local-test-infra-resources
Expand All @@ -116,11 +167,19 @@ jobs:

# Perform smoke tests.

- name: 'Test: Run diagnostic test suite'
run: ./run-cnf-suites.sh diagnostic

- name: 'Test: Run test suites'
run: ./run-cnf-suites.sh access-control lifecycle platform observablility networking
run: ./run-cnf-suites.sh --focus access-control lifecycle platform observability networking affiliated-certification operator

- name: Upload smoke test results as an artifact
uses: actions/upload-artifact@v2
if: always()
with:
name: smoke-tests
path: |
test-network-function/*.xml
test-network-function/claim.json
test-network-function/claimjson.js
test-network-function/results.html

# Perform smoke tests using a TNF container.

Expand All @@ -140,14 +199,24 @@ jobs:
cp test-network-function/*.yml $TNF_CONFIG_DIR
shell: bash

- name: 'Test: Run diagnostic test suite in a TNF container'
run: ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} diagnostic

- name: 'Test: Run without any TS, just get diagnostic information'
run: LOG_LEVEL=${CONTAINER_DIAGNOSTIC_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }}
- name: 'Test: Run generic test suite in a TNF container'
run: ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} generic access-control
run: ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -f access-control lifecycle platform observability networking affiliated-certification operator

# Push the new unstable TNF image to Quay.io.
- name: Upload container test results as an artifact
uses: actions/upload-artifact@v2
if: always()
with:
name: smoke-tests-container
path: |
${{ env.TNF_OUTPUT_DIR }}/*.xml
${{ env.TNF_OUTPUT_DIR }}/claim.json
${{ env.TNF_OUTPUT_DIR }}/claimjson.js
${{ env.TNF_OUTPUT_DIR }}/results.html

# Push the new unstable TNF image to Quay.io.
- name: (if on main and upstream) Authenticate against Quay.io
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'test-network-function' }}
uses: docker/login-action@v1
Expand Down
Loading