

def test_create_policy_rule_with_all_params(self):
    'grouppolicy-policy-rule-create with all params.'
    resource = 'policy_rule'
    cmd = gbp.CreatePolicyRule(test_cli20.MyApp(sys.stdout), None)
    name = 'my-name'
    tenant_id = 'my-tenant'
    description = 'My PolicyRule'
    my_id = 'my-id'
    enabled = 'true'
    policy_classifier_id = 'pc-id'
    policy_actions_res = ['pa1', 'pa2']
    policy_actions_arg = 'pa1,pa2'
    shared = 'true'
    args = ['--tenant-id', tenant_id, '--description', description, '--enabled', enabled, '--classifier', policy_classifier_id, '--actions', policy_actions_arg, '--shared', shared, name]
    position_names = ['name']
    position_values = [name]
    shared._test_create_resource(resource, cmd, name, my_id, args, position_names, position_values, tenant_id=tenant_id, description=description, enabled=enabled, policy_classifier_id=policy_classifier_id, policy_actions=policy_actions_res, shared=shared)

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_policyrule.py CLITestV20PolicyRuleJSON.test_create_policy_rule_with_all_params/VarMisuse@116/236 `self`->`shared`