Created attachment 928769 [details] reproducer Description of problem: When I run sync for the newly created repository, after sync is finished, I expect res = api_call(:repositories, :show, {'id' => repo['id']}) Time.parse(res['last_sync']) >= Time.parse(res['updated_at']) to be true, that means time of last sync to be after last modification. How reproducible: always/deterministic Steps to Reproduce: 1. run attached reproducer Actual results: result is false Expected results: result is true Additional info: This is regression. Described behaviour was first observed/noticed with compose Satellite-6.0.4-RHEL-6-20140813.2-Satellite-x86_64. Also, when I start sync, wait for it to finish, start sync again and again wait for it to finish, (it is commented out in reproducer after first sync), then it returns (as I would expect) true.
Per 6.3 planning, moving out non acked bugs to the backlog
the response structure for individual repository API(katello/api/repositories/:id) has been changed now in satellite 6.1+ as compared to previous response(when the BZ was created). Currently the `last_sync` attribute is a hash object with inner attributes as follows: "last_sync": { "id": "3181854a-a97b-43dc-aa0b-461d50fe0da5", "username": "admin", "started_at": "2016-04-20 13:05:43 +0530", "ended_at": "2016-04-20 13:47:31 +0530", "state": "stopped", "result": "success", "progress": 1.0 } Also the `started_at` and `ended_at` timestamp is greater than `updated_at` attribute. I guess there is nothing to do on this BZ now. This bugzilla can be closed.