Project

Profile

Help

Issue #1104

closed

If relative_url is not specified during repo creation it should not be present in distibutor_config post data

Added by ipanova@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - OSTree:
master
Platform Release:
Target Release - OSTree:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

If relative_url is not specified during repo creation it should not be present in distibutor_config post data. If relative_url was not specified it means that it defaults to repo_id

$ pulp-admin -vv ostree repo create --repo-id=test2

2015-07-03 15:00:02,511 - DEBUG - sending POST request to /pulp/api/v2/repositories/
2015-07-03 15:00:02,653 - INFO - POST request to /pulp/api/v2/repositories/ with parameters {"display_name": null, "description": null, "distributors": [{"distributor_id": "ostree_web_distributor_name_cli", "auto_publish": true, "distributor_config": {"relative_path": null}, "distributor_type_id": "ostree_web_distributor"}], "notes": {"_repo-type": "OSTREE"}, "importer_type_id": "ostree_web_importer", "importer_config": {"feed": null, "validate": null}, "id": "test2"}
2015-07-03 15:00:02,653 - INFO - Response status : 201 

2015-07-03 15:00:02,653 - INFO - Response body :
 {
  "scratchpad": {}, 
  "display_name": "test2", 
  "description": null, 
  "last_unit_added": null, 
  "notes": {
    "_repo-type": "OSTREE"
  }, 
  "last_unit_removed": null, 
  "content_unit_counts": {}, 
  "_ns": "repos", 
  "_id": {
    "$oid": "5596875245ef484fc385096e"
  }, 
  "id": "test2", 
  "_href": "/pulp/api/v2/repositories/test2/"
}

Repository [test2] successfully created

Related issues

Related to OSTree Support - Issue #1105: relative_path should default to repo_id if not specified differentlyCLOSED - WONTFIXActions

Also available in: Atom PDF