From f29a1b6e795abe273f800a0b587fa7cb9fc8b0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 16 May 2014 11:58:36 +0200 Subject: [PATCH] - follow in test suite the old/new setlinkrev behaviour --- tests/test_setlinkrev.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_setlinkrev.py b/tests/test_setlinkrev.py index 79f28e1a..2e91f54e 100644 --- a/tests/test_setlinkrev.py +++ b/tests/test_setlinkrev.py @@ -39,20 +39,21 @@ class TestSetLinkRev(OscTestCase): osc.core.set_link_rev('http://localhost', 'osctest', 'simple', expand=True) @GET('http://localhost/source/osctest/simple/_link', file='link_with_rev') + @GET('http://localhost/source/srcprj/srcpkg?rev=latest', file='simple_filesremote') @PUT('http://localhost/source/osctest/simple/_link', - exp='', text='dummytext') + exp='', text='dummytext') def test_existingrev(self): - """link already has a rev attribute (no expand)""" + """link already has a rev attribute, update it to current version""" # we could also avoid the superfluous PUT osc.core.set_link_rev('http://localhost', 'osctest', 'simple') @GET('http://localhost/source/osctest/simple/_link', file='link_with_rev') - @GET('http://localhost/source/srcprj/srcpkg?rev=7&expand=1', file='expandedsrc_filesremote') + @GET('http://localhost/source/srcprj/srcpkg?rev=latest&expand=1', file='expandedsrc_filesremote') @PUT('http://localhost/source/osctest/simple/_link', exp='', text='dummytext') def test_expandexistingrev(self): - """link already has a rev attribute (expand it)""" + """link already has a rev attribute, update it to current version""" osc.core.set_link_rev('http://localhost', 'osctest', 'simple', expand=True) @GET('http://localhost/source/osctest/simple/_link', file='simple_link')