From 4963e88a0c59279ab53f1a5f4bef3a8c723ecabf Mon Sep 17 00:00:00 2001 From: jmontesi <100689165+jmontesi@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:17:50 +0100 Subject: [PATCH] docs: add CNFCERT demo (#1757) --- README.md | 12 ++++++++---- docs/assets/images/demo-cnfcert.svg | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 docs/assets/images/demo-cnfcert.svg diff --git a/README.md b/README.md index 3f33732e0..d3280eed5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,14 @@ Please contact us in case the documentation is broken. * The catalog of all the available test cases can be found [here](https://github.com/test-network-function/cnf-certification-test/blob/main/CATALOG.md). +## Demo + + + + + + + ## Target Audience * Partner @@ -39,10 +47,6 @@ Please contact us in case the documentation is broken. * OpenShift Container Platform * Kubernetes Operator -## Language - -Golang - ## Linters for the Codebase * [`checkmake`](https://github.com/mrtazz/checkmake) diff --git a/docs/assets/images/demo-cnfcert.svg b/docs/assets/images/demo-cnfcert.svg new file mode 100644 index 000000000..15116f202 --- /dev/null +++ b/docs/assets/images/demo-cnfcert.svg @@ -0,0 +1 @@ +>>./run-cnf-suites.sh-o/tmp-l'!lifecycle&&!platform-alteration'________________________________________________/__\|\|||___|/__\|___||___\|__|//|___||_|\\|/\/|\||||_|/\/||__||_//||||____|___\||/'||||||.||_||||__||/||||\\//\\|/|||||\__/\||\||||\__/\||___||\\||||\V//\__//_\|_//||\____/\_|\_/\_|\____/\____/\_|\_|\_/||\_/\____/(_)\___/||\_\/_/CNFCERTversion:Unreleasedbuildpostv4.5.7(0e8d7ebb07f1feff8701e068edb25c9d07443a3d)Claimfileversion:v0.4.0Checksfilter:!lifecycle&&!platform-alterationOutputfolder:/tmpLogfile:cnf-certsuite.logRunningdiscoveryofCNFtargetresources...RunningsuiteAFFILIATED-CERTIFICATION[FAIL]affiliated-certification-container-is-certified-digestRunningsuiteLIFECYCLE[SKIP]lifecycle-container-prestop(nomatchinglabels)[SKIP]lifecycle-crd-scaling(nomatchinglabels)[SKIP]lifecycle-container-poststart(nomatchinglabels)[SKIP]lifecycle-image-pull-policy(nomatchinglabels)[SKIP]lifecycle-readiness-probe(nomatchinglabels)[SKIP]lifecycle-liveness-probe(nomatchinglabels)[SKIP]lifecycle-startup-probe(nomatchinglabels)[SKIP]lifecycle-pod-owner-type(nomatchinglabels)[SKIP]lifecycle-pod-high-availability(nomatchinglabels)[SKIP]lifecycle-pod-scheduling(nomatchinglabels)[SKIP]lifecycle-pod-recreation(nomatchinglabels)[SKIP]lifecycle-deployment-scaling(nomatchinglabels)[SKIP]lifecycle-statefulset-scaling(nomatchinglabels)[SKIP]lifecycle-persistent-volume-reclaim-policy(nomatchinglabels)[SKIP]lifecycle-cpu-isolation(nomatchinglabels)[SKIP]lifecycle-affinity-required-pods(nomatchinglabels)[SKIP]lifecycle-pod-toleration-bypass(nomatchinglabels)[SKIP]lifecycle-storage-provisioner(nomatchinglabels)RunningsuiteMANAGEABILITY[PASS]manageability-containers-image-tag[PASS]manageability-container-port-name-formatRunningsuiteOBSERVABILITY[PASS]observability-container-logging[PASS]observability-termination-policy[FAIL]observability-pod-disruption-budgetRunningsuiteOPERATORRunningsuiteACCESS-CONTROL[FAIL]access-control-security-context[PASS]access-control-sys-admin-capability-check[PASS]access-control-net-admin-capability-check[PASS]access-control-net-raw-capability-check[PASS]access-control-ipc-lock-capability-check[PASS]access-control-bpf-capability-check[PASS]access-control-security-context-non-root-user-check[PASS]access-control-security-context-privilege-escalation[PASS]access-control-container-host-port[PASS]access-control-pod-host-network[PASS]access-control-pod-host-path[PASS]access-control-pod-host-ipc[PASS]access-control-pod-host-pid[PASS]access-control-namespace[PASS]access-control-pod-service-account[PASS]access-control-pod-role-bindings[PASS]access-control-cluster-role-bindings[PASS]access-control-pod-automount-service-account-token[FAIL]access-control-one-process-per-container[PASS]access-control-sys-nice-realtime-capability[PASS]access-control-namespace-resource-quota[FAIL]access-control-ssh-daemons[PASS]access-control-requests-and-limits[PASS]access-control-no-1337-uidRunningsuiteNETWORKING[SKIP]networking-icmpv4-connectivity(compliantandnon-compliantobjectslistsareempty)[SKIP]networking-icmpv4-connectivity-multus(compliantandnon-compliantobjectslistsareempty)[SKIP]networking-icmpv6-connectivity(compliantandnon-compliantobjectslistsareempty)[SKIP]networking-icmpv6-connectivity-multus(compliantandnon-compliantobjectslistsareempty)[FAIL]networking-undeclared-container-ports-usage[FAIL]networking-ocp-reserved-ports-usage[FAIL]networking-network-policy-deny-all[FAIL]networking-reserved-partner-portsRunningsuitePERFORMANCE[PASS]performance-exclusive-cpu-pool[PASS]performance-max-resources-exec-probesRunningsuitePLATFORM-ALTERATION[SKIP]platform-alteration-hyperthread-enable(nomatchinglabels)[SKIP]platform-alteration-base-image(nomatchinglabels)[SKIP]platform-alteration-tainted-node-kernel(nomatchinglabels)[SKIP]platform-alteration-isredhat-release(nomatchinglabels)[SKIP]platform-alteration-is-selinux-enforcing(nomatchinglabels)[SKIP]platform-alteration-hugepages-config(nomatchinglabels)[SKIP]platform-alteration-boot-params(nomatchinglabels)[SKIP]platform-alteration-sysctl-config(nomatchinglabels)[SKIP]platform-alteration-service-mesh-usage(nomatchinglabels)[SKIP]platform-alteration-ocp-lifecycle(nomatchinglabels)[SKIP]platform-alteration-ocp-node-os-lifecycle(nomatchinglabels)[SKIP]platform-alteration-hugepages-2m-only(nomatchinglabels)[SKIP]platform-alteration-hugepages-1g-only(nomatchinglabels)----------------------------------------------------------------------------------------------------------------------------------------------------INFO[Dec2011:11:52.495][suite.go:52][networking-undeclared-container-ports-usage]Checknetworking-undeclared-container-ports-usage:gettingtestenvironment.INFO[Dec2011:11:52.495][checksgroup.go:258][networking-undeclared-container-ports-usage]RunningcheckDEBUG[Dec2011:11:52.591][suite.go:211][networking-undeclared-container-ports-usage]Failedtogetthecontainer'slisteningports,err:failedtoexecutecommandss-tulwnHoncontainer:testpod:test-7bb7c4455-xq47nns:tnf,err:cannotexecutecommand:"ss-tulwnH"oncontainer:testpod:test-7bb7c4455-xq47nns:tnferr:commandterminatedwithexitcode1---------------------------------------------|LOG(networking-ocp-reserved-ports-usage)|INFO[Dec2011:11:52.891][suite.go:52][networking-ocp-reserved-ports-usage]Checknetworking-ocp-reserved-ports-usage:gettingtestenvironment.INFO[Dec2011:11:52.891][checksgroup.go:258][networking-ocp-reserved-ports-usage]Runningcheck--------------------------------------------|LOG(networking-network-policy-deny-all)|INFO[Dec2011:11:53.292][suite.go:52][networking-network-policy-deny-all]Checknetworking-network-policy-deny-all:gettingtestenvironment.INFO[Dec2011:11:53.292][checksgroup.go:258][networking-network-policy-deny-all]RunningcheckINFO[Dec2011:11:53.292][suite.go:325][networking-network-policy-deny-all]TestforDenyAllinnetworkpoliciesDEBUG[Dec2011:11:53.292][suite.go:359][networking-network-policy-deny-all]test-7bb7c4455-xq47nwasfoundtonothaveadefaultingressdeny-allnetworkpolicy.DEBUG[Dec2011:11:53.292][suite.go:365][networking-network-policy-deny-all]test-7bb7c4455-xq47nwasfoundtonothaveadefaultegressdeny-allnetworkpolicy.-------------------------------------------|LOG(networking-reserved-partner-ports)|INFO[Dec2011:11:53.593][suite.go:52][networking-reserved-partner-ports]Checknetworking-reserved-partner-ports:gettingtestenvironment.INFO[Dec2011:11:53.593][checksgroup.go:258][networking-reserved-partner-ports]Runningcheck|LOG(observability-pod-disruption-budget)|INFO[Dec2011:11:43.535][checksgroup.go:258][observability-pod-disruption-budget]Runningcheck----------------------------------------------------------------|LOG(affiliated-certification-container-is-certified-digest)|INFO[Dec2011:11:40.552][suite.go:48][affiliated-certification-container-is-certified-digest]Checkaffiliated-certification-container-is-certified-digest:gettingtestenvironmentandcertdbvalidator.INFO[Dec2011:11:40.927][checksgroup.go:258][affiliated-certification-container-is-certified-digest]RunningcheckDEBUG[Dec2011:11:42.017][suite.go:190][affiliated-certification-container-is-certified-digest]container:testpod:test-7bb7c4455-xq47nns:tnfdigestnotfoundindatabase,failingvalidation(repo=quay.ioimage=testnetworkfunction/cnf-test-partnertag=latestdigest=sha256:5747bf903b77d9be4d765c4abe87a7c270fb0667173d3cabfa6fdf68e50f34e7)>./run-cnf-suites.sh -o /tmp -l '!lifecycle && !platform-alteration'[RUNNING]affiliated-certification-container-is-certified-digest[RUNNING]affiliated-certification-container-is-certified-digest(1s)[RUNNING]affiliated-certification-container-is-certified-digest(1s)DEBUG[Dec2011:11:42.017][suite.go:190][affiliated-certification-container-is-certified-digest]cont[RUNNING]manageability-containers-image-tag[RUNNING]manageability-container-port-name-format[RUNNING]observability-container-logging[RUNNING]observability-termination-policy(0s)INFO[Dec2011:11:43.234][suite.go:171][observability-termination-policy]TestingforterminationMessagePolicy:container:[RUNNING]observability-pod-disruption-budget[RUNNING]access-control-security-context[RUNNING]access-control-sys-admin-capability-check[RUNNING]access-control-net-admin-capability-check[RUNNING]access-control-net-raw-capability-check[RUNNING]access-control-ipc-lock-capability-check[RUNNING]access-control-bpf-capability-check[RUNNING]access-control-security-context-non-root-user-check[RUNNING]access-control-security-context-privilege-escalation[RUNNING]access-control-container-host-port[RUNNING]access-control-pod-host-network[RUNNING]access-control-pod-host-path[RUNNING]access-control-pod-host-ipc[RUNNING]access-control-pod-host-pid[RUNNING]access-control-namespace[RUNNING]access-control-namespace(0s)INFO[Dec2011:11:47.744][suite.go:507][access-control-namespace]CRsfromautodiscoveredCRDsshouldbelongonlytotheconfigure[RUNNING]access-control-pod-service-account[RUNNING]access-control-pod-service-account(0s)INFO[Dec2011:11:48.045][suite.go:529][access-control-pod-service-account]Testingserviceaccountforpodtest-7bb7c44[RUNNING]access-control-pod-role-bindings[RUNNING]access-control-pod-role-bindings(0s)INFO[Dec2011:11:48.346][suite.go:551][access-control-pod-role-bindings]Testingrolebindingforpod:test-7bb7c4455-xq4[RUNNING]access-control-cluster-role-bindings[RUNNING]access-control-pod-automount-service-account-token[RUNNING]access-control-pod-automount-service-account-token(0s)INFO[Dec2011:11:48.956][suite.go:708][access-control-pod-automount-service-account-token]Shouldhave[RUNNING]access-control-one-process-per-container[RUNNING]access-control-one-process-per-container(0s)DEBUG[Dec2011:11:49.383][suite.go:762][access-control-one-process-per-container]Couldnotgetnumberofprocesse[RUNNING]access-control-sys-nice-realtime-capability[RUNNING]access-control-namespace-resource-quota[RUNNING]access-control-ssh-daemons[RUNNING]access-control-ssh-daemons(0s)ERROR[Dec2011:11:50.387][suite.go:866][access-control-ssh-daemons]couldnotgetsshdaemonportoncontainer:testpod:test-7[RUNNING]access-control-requests-and-limits[RUNNING]access-control-no-1337-uid[RUNNING]networking-icmpv4-connectivity[RUNNING]networking-icmpv4-connectivity(0s)DEBUG[Dec2011:11:51.291][icmp.go:129][networking-icmpv4-connectivity]TherearenoIPv4networkstotest,skippingtest[RUNNING]networking-icmpv4-connectivity-multus(0s)DEBUG[Dec2011:11:51.592][icmp.go:126][networking-icmpv4-connectivity-multus]Nonetworkstotest.[RUNNING]networking-icmpv4-connectivity-multus(0s)WARN[Dec2011:11:51.592][check.go:205][networking-icmpv4-connectivity-multus]Checknetworking-icmpv4-connectivity-m[RUNNING]networking-icmpv6-connectivity[RUNNING]networking-icmpv6-connectivity(0s)DEBUG[Dec2011:11:51.893][icmp.go:126][networking-icmpv6-connectivity]Nonetworkstotest.[RUNNING]networking-icmpv6-connectivity(0s)WARN[Dec2011:11:51.894][check.go:205][networking-icmpv6-connectivity]Checknetworking-icmpv6-connectivitymarkedasskipp[RUNNING]networking-icmpv6-connectivity-multus[RUNNING]networking-undeclared-container-ports-usage[RUNNING]networking-undeclared-container-ports-usage(0s)DEBUG[Dec2011:11:52.591][suite.go:211][networking-undeclared-container-ports-usage]Failedtogetthecontaine[RUNNING]networking-ocp-reserved-ports-usage[RUNNING]networking-network-policy-deny-all[RUNNING]networking-reserved-partner-ports[RUNNING]performance-exclusive-cpu-pool[RUNNING]performance-max-resources-exec-probes|SUITEPASSEDFAILEDSKIPPED||manageability200||observability211||access-control2133||networking047||platform-alteration0013||affiliated-certification013||lifecycle0018||performance204||operator003|--------------------------------------------------INFO[Dec2011:11:49.261][suite.go:61][access-control-one-process-per-container]Checkaccess-control-one-process-per-container:gettingtestenvironment.INFO[Dec2011:11:49.261][checksgroup.go:258][access-control-one-process-per-container]RunningcheckDEBUG[Dec2011:11:49.383][suite.go:762][access-control-one-process-per-container]Couldnotgetnumberofprocessesfor:container:testpod:test-7bb7c4455-xq47nns:tnf,error:cmd:"lsns-p52494-tpid-n"returnedaninvalidvalue|LOG(access-control-ssh-daemons)|INFO[Dec2011:11:50.285][suite.go:61][access-control-ssh-daemons]Checkaccess-control-ssh-daemons:gettingtestenvironment.INFO[Dec2011:11:50.285][checksgroup.go:258][access-control-ssh-daemons]RunningcheckERROR[Dec2011:11:50.387][suite.go:866][access-control-ssh-daemons]couldnotgetsshdaemonportoncontainer:testpod:test-7bb7c4455-xq47nns:tnf,err:failedtoexecutecommandss-tpln|grepsshd|head-1|awk'{print$4}'|awk-F:'{print$2}'oncontainer:testpod:test-7bb7c4455-xq47nns:tnf,err:<nil>|LOG(networking-undeclared-container-ports-usage)|INFO[Dec2011:11:53.593][suite.go:52][networking-reserved-partner-ports]Checknetworking-reserved-partner-portexit \ No newline at end of file