Skip to content

Bugfix/empty exec

Bugfix/empty exec #689

Triggered via pull request November 26, 2024 09:38
Status Success
Total duration 18m 14s
Artifacts

component-tests.yaml

on: pull_request
build-and-push-image
2m 17s
build-and-push-image
Matrix: component-tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 12 warnings
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: workloads_list length is not equal to expected_workloads_list length, actual: len:1, expected: len:3; actual results: [{'name': 'nginx', 'kind': 'Deployment', 'customerGUID': '', 'namespace': 'systest-ns-vhjb', 'cluster': 'kind-systets-67dde9ed-59eb-4b70-94b8-e13108bd9c74', 'clusterShortName': 'kind-systets-67dde9ed-59eb-4b70-94b8-e13108bd9c74', 'appliedNetworkPolicyType': 'unknown', 'networkPolicyStatus': 2, 'networkPolicyStatusMessage': '', 'missingRuntimeInfoReason': 0}], expected results: [{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'mariadb', 'labels': {'app': 'mariadb'}}, 'spec': {'selector': {'matchLabels': {'app': 'mariadb'}}, 'template': {'metadata': {'labels': {'app': 'mariadb'}}, 'spec': {'containers': [{'name': 'mariadb', 'image': 'mariadb@sha256:821d0411208eaa88f9e1f0daccd1d534f88d19baf724eb9a2777cbedb10b6c66', 'env': [{'name': 'MYSQL_ROOT_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'ROOT_PASSWORD'}}}, {'name': 'MYSQL_DATABASE', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'MYSQL_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'MYSQL_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy_pod_restarted'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3306, 'name': 'mysql'}], 'volumeMounts': [{'name': 'mariadb-storage', 'mountPath': '/var/lib/mysql'}]}], 'volumes': [{'name': 'mariadb-storage', 'emptyDir': {}}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'wikijs', 'labels': {'app': 'wikijs'}}, 'spec': {'selector': {'matchLabels': {'app': 'wikijs'}}, 'template': {'metadata': {'labels': {'app': 'wikijs'}}, 'spec': {'containers': [{'name': 'wikijs', 'image': 'requarks/wiki@sha256:dd83fff15e77843ff934b25c28c865ac000edf7653e5d11adad1dd51df87439d', 'imagePullPolicy': 'Always', 'env': [{'name': 'DB_TYPE', 'value': 'mariadb'}, {'name': 'DB_HOST', 'value': 'mariadb'}, {'name': 'DB_PORT', 'value': '3306'}, {'name': 'DB_NAME', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'DB_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'DB_PASS', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy_pod_restarted'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'nginx'}, 'spec': {'selector': {'matchLabels': {'app': 'nginx'}}, 'replicas': 1, 'template': {'metadata': {'labels': {'app': 'nginx'}}, 'spec': {'containers': [{'name': 'nginx', 'image': 'nginx@sha256:aa0afebbb3cfa473099a62c4b32e9b3fb73ed23f2a75a65ce1d4b4f55a5c2ef2', 'ports': [{'containerPort': 80}], 'volumeMounts': [{'mountPath': '/etc/nginx', 'readOnly': True, 'name': 'nginx-conf'}], 'env': [{'name': 'ARMO_TEST_NAME', 'value': 'network_policy_pod_restarted'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}]}], 'volumes': [{'name': 'nginx-conf', 'configMap': {'name': 'nginx-conf', 'items': [{'key': 'nginx.conf', 'path': 'nginx.conf'}]}}]}}}}]. kwargs: '{'cluster': 'kind-systets-67dde9ed-59eb-4b70-94b8-e13108bd9c74', 'namespace': 'systest-ns-vhjb', 'expected_workloads_list': [{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'mariadb', 'labels': {'app': 'mariadb'}}, 'spec': {'selector': {'matchLabels': {'app': 'mariadb'}}, 'template': {'metadata': {'labels': {'app': 'mariadb'}}, 'spec': {'containers': [{'name': 'mariadb', 'image': 'mariadb@sha256:821d0411208eaa88f9e1f0daccd1d534f88d19baf724eb9a2777cbedb10b6c66', 'env': [{'name': 'MYSQL_ROOT_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'ROOT_PASSWORD'}}}, {'name': 'MYSQL_DATABASE', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'MYSQL_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'MYSQL_PASSWORD', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy_pod_restarted'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3306, 'name': 'mysql'}], 'volumeMounts': [{'name': 'mariadb-storage', 'mountPath': '/var/lib/mysql'}]}], 'volumes': [{'name': 'mariadb-storage', 'emptyDir': {}}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'wikijs', 'labels': {'app': 'wikijs'}}, 'spec': {'selector': {'matchLabels': {'app': 'wikijs'}}, 'template': {'metadata': {'labels': {'app': 'wikijs'}}, 'spec': {'containers': [{'name': 'wikijs', 'image': 'requarks/wiki@sha256:dd83fff15e77843ff934b25c28c865ac000edf7653e5d11adad1dd51df87439d', 'imagePullPolicy': 'Always', 'env': [{'name': 'DB_TYPE', 'value': 'mariadb'}, {'name': 'DB_HOST', 'value': 'mariadb'}, {'name': 'DB_PORT', 'value': '3306'}, {'name': 'DB_NAME', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'DATABASE'}}}, {'name': 'DB_USER', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'USER'}}}, {'name': 'DB_PASS', 'valueFrom': {'secretKeyRef': {'name': 'mariadb-real-secret', 'key': 'PASSWORD'}}}, {'name': 'ARMO_TEST_NAME', 'value': 'network_policy_pod_restarted'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'nginx'}, 'spec': {'selector': {'matchLabels': {'app': 'nginx'}}, 'replicas': 1, 'template': {'metadata': {'labels': {'app': 'nginx'}}, 'spec': {'containers': [{'name': 'nginx', 'image': 'nginx@sha256:aa0afebbb3cfa473099a62c4b32e9b3fb73ed23f2a75a65ce1d4b4f55a5c2ef2', 'ports': [{'containerPort': 80}], 'volumeMounts': [{'mountPath': '/etc/nginx', 'readOnly': True, 'name': 'nginx-conf'}], 'env': [{'name': 'ARMO_TEST_NAME', 'value': 'network_policy_pod_restarted'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}]}], 'volumes': [{'name': 'nginx-conf', 'configMap': {'name': 'nginx-conf', 'items': [{'key': 'nginx.conf', 'path': 'nginx.conf'}]}}]}}}}], 'expected_network_neighborhood_list': [{'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-wikijs', 'namespace': 'systest-ns-hvt7', 'uid': '6601c441-3774-42c8-8350-39770c6021ea', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:42:52Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'matchLabels': {'app': 'wikijs'}, 'containers': [{'name': 'wikijs', 'ingress': [], 'egress': [{'identifier': 'e5e8ca3d76f701a19b7478fdc1c8c24ccc6cef9902b52c8c7e015439e2a1ddf3', 'type': 'internal', 'dns': '', 'ports': [{'name': 'UDP-53', 'protocol': 'UDP', 'port': 53}], 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}, 'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'ipAddress': ''}, {'identifier': '9230d773194d84ea09e198e98b8aaa1dd71fd6f406314796f234240bb5111425', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'mariadb'}}, 'namespaceSelector': None, 'ipAddress': ''}]}]}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-hvt7', 'uid': '45a5f0df-855b-423d-b5d1-bea710fd2cbf', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:42:50Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'matchLabels': {'app': 'mariadb'}, 'containers': [{'name': 'mariadb', 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}], 'egress': []}]}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-hvt7', 'uid': '389bed91-3f2d-464d-9b70-7d29309162a5', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:42:51Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'matchLabels': {'app': 'nginx'}, 'containers': [{'name': 'nginx', 'ingress': [], 'egress': [{'identifier': 'e5e8ca3d76f701a19b7478fdc1c8c24ccc6cef9902b52c8c7e015439e2a1ddf3', 'type': 'internal', 'dns': '', 'ports': [{'name': 'UDP-53', 'protocol': 'UDP', 'port': 53}], 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}, 'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'ipAddress': ''}]}]}}], 'expected_generated_network_policy_list': [{'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:22:59Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'name': 'deployment-wikijs', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'wikijs'}, 'name': 'deployment-wikijs', 'namespace': 'systest-ns-pjqm'}, 'spec': {'egress': [{'ports': [{'port': 53, 'protocol': 'UDP'}], 'to': [{'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}}]}, {'ports': [{'port': 3306, 'protocol': 'TCP'}], 'to': [{'podSelector': {'matchLabels': {'app': 'mariadb'}}}]}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'policyTypes': ['Egress']}}}, {'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:24:41Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'name': 'deployment-mariadb', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'mariadb'}, 'name': 'deployment-mariadb', 'namespace': 'systest-ns-pjqm'}, 'spec': {'ingress': [{'from': [{'podSelector': {'matchLabels': {'app': 'wikijs'}}}], 'ports': [{'port': 3306, 'protocol': 'TCP'}]}], 'podSelector': {'matchLabels': {'app': 'mariadb'}}, 'policyTypes': ['Ingress']}}}, {'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2023-12-14T09:25:02Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'name': 'deployment-nginx', 'namespace': 'systest-ns-pjqm'}, 'policyRef': [], 'spec': {'apiVersion': 'networking.k8s.io/v1', 'kind': 'NetworkPolicy', 'metadata': {'annotations': {'generated-by': 'kubescape'}, 'creationTimestamp': None, 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'nginx'}, 'name': 'deployment-nginx', 'namespace': 'systest-ns-pjqm'}, 'spec': {'egress': [], 'podSelector': {'matchLabels': {'app': 'nginx'}}, 'policyTypes': ['Egress']}}}]}'
component-tests (Test_07_RuleBindingApplyTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_08_ApplicationProfilePatching)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_11_EndpointTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_06_KillProcessInTheMiddle)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_01_BasicAlertTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_12_MergingProfilesTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_10_MalwareDetectionTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_14_RulePoliciesTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_13_MergingNetworkNeighborhoodTest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_02_AllAlertsFromMaliciousApp)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_03_BasicLoadActivities)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
component-tests (Test_05_MemoryLeak_10K_Alerts)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/