Added dynamic open path detector #413
GitHub Actions / JUnit Test Report
failed
Sep 19, 2024 in 0s
1 tests run, 0 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 30 in results_xml_format/network_policy_multiple_replicas.xml
github-actions / JUnit Test Report
network_policy_multiple_replicas
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-systets-6c010157-0f23-470a-b832-9ea6c1c4219b', 'namespace': 'systest-ns-woso', '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']}}}]}'
Raw output
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-systets-6c010157-0f23-470a-b832-9ea6c1c4219b', 'namespace': 'systest-ns-woso', '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']}}}]}'
Loading