Bugfix: fix testcase for repository update

Context manager delete the created repository as cleanup,
But repository is update afterwards, the newly created one
does not exist any more. So update repository again to the original
one so that context manager can delete it successfully.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>