Skip to content

Merge pull request #504 from kubescape/bump #1330

Merge pull request #504 from kubescape/bump

Merge pull request #504 from kubescape/bump #1330

Triggered via push September 16, 2024 14:18
Status Success
Total duration 1m 11s
Artifacts

kubescape.yaml

on: push
kubescape
59s
kubescape
Fit to window
Zoom out
Zoom in

Annotations

47 errors and 2 warnings
ks_microservice_on_demand: results_xml_format/ks_microservice_on_demand.xml#L1
Failed to get the report-guid for the last scan.
synchronizer_proxy: results_xml_format/synchronizer_proxy.xml#L1
BE kubernetes resources is empty
scan_compliance_score: results_xml_format/scan_compliance_score.xml#L1
Failed to get the report-guid for the last scan.
network_policy_known_servers: results_xml_format/network_policy_known_servers.xml#L37
validate_expected_backend_results, timeout: 2 minutes, error: network policies workloads list is 0 'CyberArmorTests' (code: 200, message: {"total":{"value":0,"relation":"eq"},"response":[],"cursor":""} ). kwargs: '{'cluster': 'kind-systests-54ba0f8b-1e3e-4d75-9f9f-4ff8c04e27d3', 'namespace': 'systest-ns-vqef', 'expected_workloads_list': [{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'busybox-deployment'}, 'spec': {'replicas': 2, 'selector': {'matchLabels': {'app': 'busybox'}}, 'template': {'metadata': {'labels': {'app': 'busybox'}}, 'spec': {'containers': [{'name': 'busybox', 'image': 'busybox', 'command': ['tail', '-f', '/dev/null'], 'env': [{'name': 'ARMO_TEST_NAME', 'value': 'network_policy_known_servers'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}]}]}}}}], 'expected_network_neighborhood_list': [{'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-busybox-deployment', 'namespace': 'systest-ns-myoi', 'uid': '3ca77764-ca27-492f-b752-ef4560887a28', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:37:19Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'busybox-deployment'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'busybox', 'egress': [{'identifier': '238053dc2e1cbe8820de562678e8cde84593e95d41e6f1a58bb987741f9e30a3', 'type': 'external', 'dns': '', 'ports': [{'name': 'TCP-80', 'protocol': 'TCP', 'port': 80}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.199.108.153'}, {'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': '35d62fc884ab3d8896d6be5bad0176619aa60756d33dfa47c9de024902a720c5', 'type': 'external', 'dns': 'www.google.com.', 'dnsNames': ['www.google.com.'], 'ports': [{'name': 'TCP-80', 'protocol': 'TCP', 'port': 80}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.68'}], 'ingress': []}], 'matchLabels': {'app': 'busybox'}}}], 'expected_generated_network_policy_list': [{'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2024-03-07T13:03:29Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'busybox-deployment'}, 'name': 'deployment-busybox-deployment', 'namespace': 'systest-ns-sjcr'}, 'policyRef': [{'dns': 'www.google.com.', 'ipBlock': '64.233.181.104/32', 'name': '', 'originalIP': '64.233.181.104', 'server': ''}, {'dns': '', 'ipBlock': '185.199.108.153/24', 'name': 'github-workflows', 'originalIP': '185.199.108.153', 'server': 'github.com'}], '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': 'busybox-deployment'}, 'name': 'deployment-busybox-deployment', 'namespace': 'systest-ns-sjcr'}, 'spec': {'egress': [{'ports': [{'port': 80, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '185.199.108.153/24'}}, {'ipBlock': {'cidr': '64.233.181.104/32'}}]}, {'ports': [{'port': 53, 'protocol': 'UDP'}], 'to': [{'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}}]}], 'ingress': [], 'podSelector': {'matchLabels': {'app': 'busybox'}}, 'policyTypes': ['Ingress', 'Egress']}}}]}'
ks_microservice_delete_cronjob: results_xml_format/ks_microservice_delete_cronjob.xml#L1
Failed to get the report-guid for the last scan.
network_policy_multiple_replicas: results_xml_format/network_policy_multiple_replicas.xml#L30
validate_expected_backend_results, timeout: 2 minutes, error: network policies workloads list is 0 'CyberArmorTests' (code: 200, message: {"total":{"value":0,"relation":"eq"},"response":[],"cursor":""} ). kwargs: '{'cluster': 'kind-systests-4bc2cfad-9009-4efe-a9ec-18c5ccece4ff', 'namespace': 'systest-ns-bhwf', 'expected_workloads_list': [{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'busybox-deployment'}, 'spec': {'replicas': 2, 'selector': {'matchLabels': {'app': 'busybox'}}, 'template': {'metadata': {'labels': {'app': 'busybox'}}, 'spec': {'containers': [{'name': 'busybox', 'image': 'busybox', 'command': ['tail', '-f', '/dev/null'], 'env': [{'name': 'ARMO_TEST_NAME', 'value': 'network_policy_multiple_replicas'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}]}]}}}}], 'expected_network_neighborhood_list': [{'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-busybox-deployment', 'namespace': 'systest-ns-rxrl', 'uid': '07e74b42-8ba2-46b1-9de9-f6c33e3b180c', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:30:40Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'busybox-deployment'}, 'annotations': {'kubescape.io/completion': 'complete', 'kubescape.io/status': 'ready'}}, 'spec': {'containers': [{'name': 'busybox', 'egress': [{'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-80', 'protocol': 'TCP', 'port': 80}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'identifier': '35d62fc884ab3d8896d6be5bad0176619aa60756d33dfa47c9de024902a720c5', 'type': 'external', 'dns': 'www.google.com.', 'dnsNames': ['www.google.com.'], 'ports': [{'name': 'TCP-80', 'protocol': 'TCP', 'port': 80}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.68'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'busybox'}}}], 'expected_generated_network_policy_list': [{'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'kind': 'GeneratedNetworkPolicy', 'metadata': {'creationTimestamp': '2024-03-07T12:50:12Z', 'labels': {'kubescape.io/workload-api-group': 'apps', 'kubescape.io/workload-api-version': 'v1', 'kubescape.io/workload-kind': 'Deployment', 'kubescape.io/workload-name': 'busybox-deployment'}, 'name': 'deployment-busybox-deployment', 'namespace': 'systest-ns-h8yd'}, 'policyRef': [{'dns': 'google.com.', 'ipBlock': '64.233.182.138/32', 'name': '', 'originalIP': '64.233.182.138', 'server': ''}, {'dns': 'www.google.com.', 'ipBlock': '209.85.145.147/32', 'name': '', 'originalIP': '209.85.145.147', 'server': ''}], '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': 'busybox-deployment'}, 'name': 'deployment-busybox-deployment', 'namespace': 'systest-ns-h8yd'}, 'spec': {'egress': [{'ports': [{'port': 80, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '209.85.145.147/32'}}, {'ipBlock': {'cidr': '64.233.182.138/32'}}]}, {'ports': [{'port': 53, 'protocol': 'UDP'}], 'to': [{'namespaceSelector': {'matchLabels': {'kubernetes.io/metadata.name': 'kube-system'}}, 'podSelector': {'matchLabels': {'k8s-app': 'kube-dns'}}}]}], 'ingress': [], 'podSelector': {'matchLabels': {'app': 'busybox'}}, 'policyTypes': ['Ingress', 'Egress']}}}]}'
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-42f6593e-df67-4175-8b2d-8f38c0670646', 'namespace': 'systest-ns-jlig', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_data_appended: results_xml_format/network_policy_data_appended.xml#L50
validate_expected_backend_results, timeout: 2 minutes, error: workloads_list length is not equal to expected_workloads_list length, actual: len:2, expected: len:3; actual results: [{'name': 'mariadb', 'kind': 'Deployment', 'customerGUID': '', 'namespace': 'systest-ns-s2rf', 'cluster': 'kind-systests-38721b8d-cd7e-442a-9f4f-038b07035f44', 'clusterShortName': 'kind-systests-38721b8d-cd7e-442a-9f4f-038b07035f44', 'appliedNetworkPolicyType': 'unknown', 'networkPolicyStatus': 1, 'networkPolicyStatusMessage': '', 'missingRuntimeInfoReason': 1}, {'name': 'wikijs', 'kind': 'Deployment', 'customerGUID': '', 'namespace': 'systest-ns-s2rf', 'cluster': 'kind-systests-38721b8d-cd7e-442a-9f4f-038b07035f44', 'clusterShortName': 'kind-systests-38721b8d-cd7e-442a-9f4f-038b07035f44', 'appliedNetworkPolicyType': 'unknown', 'networkPolicyStatus': 1, 'networkPolicyStatusMessage': '', 'missingRuntimeInfoReason': 1}], expected results: [{'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_data_appended'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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_data_appended'}, {'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': '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_data_appended'}, {'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-systests-38721b8d-cd7e-442a-9f4f-038b07035f44', 'namespace': 'systest-ns-s2rf', 'expected_workloads_list': [{'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_data_appended'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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_data_appended'}, {'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': '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_data_appended'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-f240f27d-c0dd-42e6-9ff2-765df0fd3d60', 'namespace': 'systest-ns-t799', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L1
in validate_network_policy_entry: verified_entries is not equal, actual: 0, expected: 1
network_policy_data_appended: results_xml_format/network_policy_data_appended.xml#L50
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-de1f712a-d669-44a8-850b-66611796bc68', 'namespace': 'systest-ns-bp4p', 'expected_workloads_list': [{'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_data_appended'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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_data_appended'}, {'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': '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_data_appended'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-bd812d8f-4ea1-455d-b3af-6d2c84b185c2', 'namespace': 'systest-ns-1khj', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
synchronizer_proxy: results_xml_format/synchronizer_proxy.xml#L1
cluster resource 'systest-ns-itwq/StatefulSet/my-statefulset' is '2258' while resource version in BE is '2070'
synchronizer_proxy: results_xml_format/synchronizer_proxy.xml#L1
BE kubernetes resources is empty
network_policy_data_appended: results_xml_format/network_policy_data_appended.xml#L50
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-118b3a1e-41a0-4e85-a634-03f642f0c329', 'namespace': 'systest-ns-jqpf', 'expected_workloads_list': [{'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_data_appended'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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_data_appended'}, {'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': '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_data_appended'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: in validate_network_policy_entry: verified_entries is not equal, actual: 2, expected: 3. kwargs: '{'cluster': 'kind-systests-de13d547-e555-4f9a-b68e-5fb8c58aef1e', 'namespace': 'systest-ns-xdmh', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-ab503ced-1aa9-462e-9782-d3af7fe49d1d', 'namespace': 'systest-ns-8wfo', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
synchronizer_proxy: results_xml_format/synchronizer_proxy.xml#L1
BE kubernetes resources is empty
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-cf55aac1-c800-4d81-b73b-86374d0b503d', 'namespace': 'systest-ns-fnji', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-d0c43616-9ef9-4406-83d1-83db8efc538e', 'namespace': 'systest-ns-lsnb', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
synchronizer_proxy: results_xml_format/synchronizer_proxy.xml#L1
BE kubernetes resources is empty
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: network policies workloads list is 0 'CyberArmorTests' (code: 200, message: {"total":{"value":0,"relation":"eq"},"response":[],"cursor":""} ). kwargs: '{'cluster': 'kind-systests-0da4e766-eed1-47f4-aeec-73e4cebe7df5', 'namespace': 'systest-ns-7fut', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-a4525810-180d-4229-9795-7d3475ebd279', 'namespace': 'systest-ns-ostf', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-86276bcd-c89d-4789-a15a-00590b567bc9', 'namespace': 'systest-ns-xaox', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-7e76ec4d-b926-4d60-879a-a26a0339a8aa', 'namespace': 'systest-ns-jlap', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
synchronizer_proxy: results_xml_format/synchronizer_proxy.xml#L1
cluster resource 'systest-ns-wuen/StatefulSet/my-statefulset' is '2152' while resource version in BE is '1950'
network_policy: configurations/system/network_policy.py#L22
validate_expected_backend_results, timeout: 2 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-7c01ec4b-2d94-4c8b-9841-a9b5c0afbf43', 'namespace': 'systest-ns-fqek', 'expected_workloads_list': [{'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'}, {'name': 'CAA_ENABLE_CRASH_REPORTER', 'value': '1'}], 'ports': [{'containerPort': 3000, 'name': 'http'}]}]}}}}, {'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'}, {'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': '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'}, {'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-j1m4', 'uid': '571e146a-600f-4893-9b7a-ea48c8f5c953', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:07Z', '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': {'containers': [{'name': 'wikijs', 'egress': [{'identifier': '5ad9341e6dde8c3207c811b3304d1e18601c56151f02dfeb6ec20f4f7b6dfb47', 'type': 'external', 'dns': 'wikipedia.org.', 'dnsNames': ['wikipedia.org.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '185.15.58.224'}, {'identifier': '66c89b9fd8bd51e9c16c2eb568c64285e1bf89a98e5eb878c7cfb123246857a6', 'type': 'external', 'dns': 'google.com.', 'dnsNames': ['google.com.'], 'ports': [{'name': 'TCP-443', 'protocol': 'TCP', 'port': 443}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '142.250.179.78'}, {'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': ''}], 'ingress': []}], 'matchLabels': {'app': 'wikijs'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-mariadb', 'namespace': 'systest-ns-j1m4', 'uid': '14375c2f-c5c9-49e7-b5e2-d7f76728b0e4', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'mariadb', 'egress': [], 'ingress': [{'identifier': 'ee5c5b2f07834fa64174c3d2ad0505366e4b26777174906b91e83dcd163f8ec2', 'type': 'internal', 'dns': '', 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': {'matchLabels': {'app': 'wikijs'}}, 'namespaceSelector': None, 'ipAddress': ''}]}], 'matchLabels': {'app': 'mariadb'}}}, {'kind': 'NetworkNeighborhood', 'apiVersion': 'spdx.softwarecomposition.kubescape.io/v1beta1', 'metadata': {'name': 'deployment-nginx', 'namespace': 'systest-ns-j1m4', 'uid': 'e415ac32-19de-4744-9700-61c773e080ca', 'resourceVersion': '1', 'creationTimestamp': '2024-07-03T15:50:06Z', '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': {'containers': [{'name': 'nginx', 'egress': [], 'ingress': []}], 'matchLabels': {'app': 'nginx'}}}], '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': [{'dns': 'google.com.', 'ipBlock': '108.177.120.100/32', 'name': '', 'originalIP': '108.177.120.100', 'server': ''}, {'dns': 'wikipedia.org.', 'ipBlock': '208.80.154.224/32', 'name': '', 'originalIP': '208.80.154.224', 'server': ''}], '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': 443, 'protocol': 'TCP'}], 'to': [{'ipBlock': {'cidr': '108.177.120.100/32'}}, {'ipBlock': {'cidr': '208.80.154.224/32'}}]}, {'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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-ae1c3593-55a7-4418-a3cc-6c04742a05d7', 'namespace': 'systest-ns-i3gn', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy: configurations/system/network_policy.py#L1
expected_entries length is not lower or equal to actual_entries length, actual: 2, expected: 4
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-59855681-6ee6-47e3-9c5c-a744f31855a6', 'namespace': 'systest-ns-ndp3', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy: configurations/system/network_policy.py#L1
expected a network neighbor entry with namespaceSelector: {} and podSelector: {'app': 'wikijs'} not found in actual entries [{'identifier': '5fbdf18ae2bebef5794b509b38df1b99e0d9745de3e0280fbf4c91148ecb6990', 'type': 'external', 'dns': '', 'dnsNames': None, 'ports': [{'name': 'TCP-3306', 'protocol': 'TCP', 'port': 3306}], 'podSelector': None, 'namespaceSelector': None, 'ipAddress': '10.244.0.19'}]
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-90ce3cf3-c473-4e99-bc6d-d30cb2b1974f', 'namespace': 'systest-ns-lset', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L1
expected_entries length is not lower or equal to actual_entries length, actual: 0, expected: 2
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-463b926f-49cf-42e6-9663-7f112af48b69', 'namespace': 'systest-ns-ihge', 'expected_workloads_list': [{'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'}]}}]}}}}, {'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': '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': {}}]}}}}], '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: in validate_network_policy_entry: verified_entries is not equal, actual: 0, expected: 1. kwargs: '{'cluster': 'kind-systests-e3c16252-77d4-4c63-8706-dcc4b0230442', 'namespace': 'systest-ns-r1zj', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: in validate_network_policy_entry: verified_entries is not equal, actual: 0, expected: 1. kwargs: '{'cluster': 'kind-systests-1a126fe5-5190-4cb7-84a4-684447558d7e', 'namespace': 'systest-ns-wfus', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: in validate_network_policy_entry: verified_entries is not equal, actual: 0, expected: 1. kwargs: '{'cluster': 'kind-systests-a678ccc7-99b6-4be2-b700-6359a971055f', 'namespace': 'systest-ns-l3j8', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-4a7941c0-4e5d-4f43-b669-e129a135c4df', 'namespace': 'systest-ns-8a9f', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
network_policy_pod_restarted: results_xml_format/network_policy_pod_restarted.xml#L42
validate_expected_backend_results, timeout: 4 minutes, error: object of type 'NoneType' has no len(). kwargs: '{'cluster': 'kind-systests-b60dbed3-b4f6-434a-97bc-24aeca6f8791', 'namespace': 'systest-ns-m3ww', 'expected_workloads_list': [{'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': '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': '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']}}}]}'
kubescape
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, github/codeql-action/upload-sarif@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
kubescape
CodeQL Action v2 will be deprecated on December 5th, 2024. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/