def METHOD_NAME(admin_pc, admin_cc_client):
    client = admin_pc.client
    ns = admin_cc_client.create_namespace(name=random_str(),
                                          projectId=admin_pc.project.id)
    name = random_str()
    workload1 = client.create_workload(
        name=name,
        namespaceId=ns.id,
        scale=1,
        containers=[{
            'name': 'one',
            'image': 'nginx',
        }])
    name = random_str()
    workload2 = client.create_workload(
        name=name,
        namespaceId=ns.id,
        scale=1,
        containers=[{
            'name': 'one',
            'image': 'nginx',
        }])
    name = random_str()
    ingress = client.create_ingress(name=name,
                                    namespaceId=ns.id,
                                    rules=[{
                                        'host': "foo.com",
                                        'paths': [
                                            {
                                                'path': '/',
                                                'targetPort': 80,
                                                'workloadIds':
                                                [workload1.id],
                                            },
                                        ]},
                                        {
                                        'host': "foo.com",
                                        'paths': [
                                            {
                                                'path': '/',
                                                'targetPort': 80,
                                                'workloadIds':
                                                [workload2.id],
                                            }
                                        ]},
                                    ])
    assert len(ingress.rules) == 1
    assert ingress.rules[0].host == "foo.com"
    path = ingress.rules[0].paths[0]
    assert path.path == '/'
    assert path.targetPort == 80
    assert len(path.workloadIds) == 2
    assert set(path.workloadIds) == set([workload1.id, workload2.id])
    assert path.serviceId is None
    client.delete(ns)