mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-08 14:08:42 +02:00
- initial testcases for the new update mechanism
some generic stuff from test_update.py will be moved into a new module later
This commit is contained in:
1
tests/update_fixtures/osctest/.osc/_apiurl
Normal file
1
tests/update_fixtures/osctest/.osc/_apiurl
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost
|
1
tests/update_fixtures/osctest/.osc/_packages
Normal file
1
tests/update_fixtures/osctest/.osc/_packages
Normal file
@@ -0,0 +1 @@
|
||||
<project name="osctest" />
|
1
tests/update_fixtures/osctest/.osc/_project
Normal file
1
tests/update_fixtures/osctest/.osc/_project
Normal file
@@ -0,0 +1 @@
|
||||
osctest
|
@@ -0,0 +1 @@
|
||||
http://localhost
|
@@ -0,0 +1,5 @@
|
||||
<directory name="already_in_conflict" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282133912" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282133912" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282133912" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1 @@
|
||||
merge
|
@@ -0,0 +1,8 @@
|
||||
<package project="osctest" name="already_in_conflict">
|
||||
<title/>
|
||||
<description>
|
||||
|
||||
</description>
|
||||
<person userid="Admin" role="maintainer"/>
|
||||
<person userid="Admin" role="bugowner"/>
|
||||
</package>
|
@@ -0,0 +1 @@
|
||||
1.0
|
@@ -0,0 +1 @@
|
||||
already_in_conflict
|
@@ -0,0 +1 @@
|
||||
osctest
|
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/already_in_conflict/foo
Normal file
1
tests/update_fixtures/osctest/already_in_conflict/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
2
tests/update_fixtures/osctest/already_in_conflict/merge
Normal file
2
tests/update_fixtures/osctest/already_in_conflict/merge
Normal file
@@ -0,0 +1,2 @@
|
||||
Is it
|
||||
I hope so...
|
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/conflict/.osc/_apiurl
Normal file
1
tests/update_fixtures/osctest/conflict/.osc/_apiurl
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost
|
5
tests/update_fixtures/osctest/conflict/.osc/_files
Normal file
5
tests/update_fixtures/osctest/conflict/.osc/_files
Normal file
@@ -0,0 +1,5 @@
|
||||
<directory name="conflict" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282130148" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282130148" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282130148" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1 @@
|
||||
1.0
|
1
tests/update_fixtures/osctest/conflict/.osc/_package
Normal file
1
tests/update_fixtures/osctest/conflict/.osc/_package
Normal file
@@ -0,0 +1 @@
|
||||
conflict
|
1
tests/update_fixtures/osctest/conflict/.osc/_project
Normal file
1
tests/update_fixtures/osctest/conflict/.osc/_project
Normal file
@@ -0,0 +1 @@
|
||||
osctest
|
1
tests/update_fixtures/osctest/conflict/.osc/foo
Normal file
1
tests/update_fixtures/osctest/conflict/.osc/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/conflict/.osc/merge
Normal file
4
tests/update_fixtures/osctest/conflict/.osc/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/conflict/.osc/nochange
Normal file
1
tests/update_fixtures/osctest/conflict/.osc/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/conflict/foo
Normal file
1
tests/update_fixtures/osctest/conflict/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/conflict/merge
Normal file
4
tests/update_fixtures/osctest/conflict/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it possible
|
||||
to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/conflict/nochange
Normal file
1
tests/update_fixtures/osctest/conflict/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/deleted/.osc/_apiurl
Normal file
1
tests/update_fixtures/osctest/deleted/.osc/_apiurl
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost
|
5
tests/update_fixtures/osctest/deleted/.osc/_files
Normal file
5
tests/update_fixtures/osctest/deleted/.osc/_files
Normal file
@@ -0,0 +1,5 @@
|
||||
<directory name="deleted" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282134731" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282134731" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282134731" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1 @@
|
||||
1.0
|
1
tests/update_fixtures/osctest/deleted/.osc/_package
Normal file
1
tests/update_fixtures/osctest/deleted/.osc/_package
Normal file
@@ -0,0 +1 @@
|
||||
deleted
|
1
tests/update_fixtures/osctest/deleted/.osc/_project
Normal file
1
tests/update_fixtures/osctest/deleted/.osc/_project
Normal file
@@ -0,0 +1 @@
|
||||
osctest
|
@@ -0,0 +1,2 @@
|
||||
merge
|
||||
foo
|
1
tests/update_fixtures/osctest/deleted/.osc/foo
Normal file
1
tests/update_fixtures/osctest/deleted/.osc/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/deleted/.osc/merge
Normal file
4
tests/update_fixtures/osctest/deleted/.osc/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/deleted/.osc/nochange
Normal file
1
tests/update_fixtures/osctest/deleted/.osc/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
3
tests/update_fixtures/osctest/deleted/merge
Normal file
3
tests/update_fixtures/osctest/deleted/merge
Normal file
@@ -0,0 +1,3 @@
|
||||
Is it possible to,
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/deleted/nochange
Normal file
1
tests/update_fixtures/osctest/deleted/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/restore/.osc/_apiurl
Normal file
1
tests/update_fixtures/osctest/restore/.osc/_apiurl
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost
|
5
tests/update_fixtures/osctest/restore/.osc/_files
Normal file
5
tests/update_fixtures/osctest/restore/.osc/_files
Normal file
@@ -0,0 +1,5 @@
|
||||
<directory name="restore" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282047302" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282047303" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282047303" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1 @@
|
||||
1.0
|
1
tests/update_fixtures/osctest/restore/.osc/_package
Normal file
1
tests/update_fixtures/osctest/restore/.osc/_package
Normal file
@@ -0,0 +1 @@
|
||||
restore
|
1
tests/update_fixtures/osctest/restore/.osc/_project
Normal file
1
tests/update_fixtures/osctest/restore/.osc/_project
Normal file
@@ -0,0 +1 @@
|
||||
osctest
|
1
tests/update_fixtures/osctest/restore/.osc/foo
Normal file
1
tests/update_fixtures/osctest/restore/.osc/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/restore/.osc/merge
Normal file
4
tests/update_fixtures/osctest/restore/.osc/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/restore/.osc/nochange
Normal file
1
tests/update_fixtures/osctest/restore/.osc/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
0
tests/update_fixtures/osctest/restore/exists
Normal file
0
tests/update_fixtures/osctest/restore/exists
Normal file
4
tests/update_fixtures/osctest/restore/merge
Normal file
4
tests/update_fixtures/osctest/restore/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/restore/nochange
Normal file
1
tests/update_fixtures/osctest/restore/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/resume/.osc/_apiurl
Normal file
1
tests/update_fixtures/osctest/resume/.osc/_apiurl
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost
|
5
tests/update_fixtures/osctest/resume/.osc/_files
Normal file
5
tests/update_fixtures/osctest/resume/.osc/_files
Normal file
@@ -0,0 +1,5 @@
|
||||
<directory name="simple" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282047302" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282047303" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282047303" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1,6 @@
|
||||
<directory name="simple" rev="2" srcmd5="3ac41c59a5ed169d5ffef4d824700f7d" vrev="2">
|
||||
<entry md5="ff22941336956098ae9a564289d1bf1b" mtime="1282137256" name="added" size="15" />
|
||||
<entry md5="14758f1afd44c09b7992073ccf00b43d" mtime="1282137220" name="foo" size="7" />
|
||||
<entry md5="256d8f76ba7a0a231fb46a84866f25d8" mtime="1282137238" name="merge" size="20" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282047303" name="nochange" size="25" />
|
||||
</directory>
|
1
tests/update_fixtures/osctest/resume/.osc/_in_update/foo
Normal file
1
tests/update_fixtures/osctest/resume/.osc/_in_update/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
8
tests/update_fixtures/osctest/resume/.osc/_meta
Normal file
8
tests/update_fixtures/osctest/resume/.osc/_meta
Normal file
@@ -0,0 +1,8 @@
|
||||
<package project="osctest" name="simple">
|
||||
<title/>
|
||||
<description>
|
||||
|
||||
</description>
|
||||
<person userid="Admin" role="maintainer"/>
|
||||
<person userid="Admin" role="bugowner"/>
|
||||
</package>
|
@@ -0,0 +1 @@
|
||||
1.0
|
1
tests/update_fixtures/osctest/resume/.osc/_package
Normal file
1
tests/update_fixtures/osctest/resume/.osc/_package
Normal file
@@ -0,0 +1 @@
|
||||
simple
|
1
tests/update_fixtures/osctest/resume/.osc/_project
Normal file
1
tests/update_fixtures/osctest/resume/.osc/_project
Normal file
@@ -0,0 +1 @@
|
||||
osctest
|
1
tests/update_fixtures/osctest/resume/.osc/added
Normal file
1
tests/update_fixtures/osctest/resume/.osc/added
Normal file
@@ -0,0 +1 @@
|
||||
This is a test
|
1
tests/update_fixtures/osctest/resume/.osc/foo
Normal file
1
tests/update_fixtures/osctest/resume/.osc/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/resume/.osc/merge
Normal file
4
tests/update_fixtures/osctest/resume/.osc/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/resume/.osc/nochange
Normal file
1
tests/update_fixtures/osctest/resume/.osc/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/resume/added
Normal file
1
tests/update_fixtures/osctest/resume/added
Normal file
@@ -0,0 +1 @@
|
||||
This is a test
|
0
tests/update_fixtures/osctest/resume/exists
Normal file
0
tests/update_fixtures/osctest/resume/exists
Normal file
1
tests/update_fixtures/osctest/resume/foo
Normal file
1
tests/update_fixtures/osctest/resume/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/resume/merge
Normal file
4
tests/update_fixtures/osctest/resume/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/resume/nochange
Normal file
1
tests/update_fixtures/osctest/resume/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
@@ -0,0 +1 @@
|
||||
http://localhost
|
6
tests/update_fixtures/osctest/resume_deleted/.osc/_files
Normal file
6
tests/update_fixtures/osctest/resume_deleted/.osc/_files
Normal file
@@ -0,0 +1,6 @@
|
||||
<directory name="simple" rev="5" srcmd5="3ac41c59a5ed169d5ffef4d824700f7d" vrev="5">
|
||||
<entry md5="ff22941336956098ae9a564289d1bf1b" mtime="1282137256" name="added" size="15" />
|
||||
<entry md5="14758f1afd44c09b7992073ccf00b43d" mtime="1282137220" name="foo" size="7" />
|
||||
<entry md5="256d8f76ba7a0a231fb46a84866f25d8" mtime="1282137238" name="merge" size="20" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282047303" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1,5 @@
|
||||
<directory name="simple" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282047302" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282047303" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282047303" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1 @@
|
||||
foobar
|
8
tests/update_fixtures/osctest/resume_deleted/.osc/_meta
Normal file
8
tests/update_fixtures/osctest/resume_deleted/.osc/_meta
Normal file
@@ -0,0 +1,8 @@
|
||||
<package project="osctest" name="simple">
|
||||
<title/>
|
||||
<description>
|
||||
|
||||
</description>
|
||||
<person userid="Admin" role="maintainer"/>
|
||||
<person userid="Admin" role="bugowner"/>
|
||||
</package>
|
@@ -0,0 +1 @@
|
||||
1.0
|
@@ -0,0 +1 @@
|
||||
simple
|
@@ -0,0 +1 @@
|
||||
osctest
|
1
tests/update_fixtures/osctest/resume_deleted/.osc/foo
Normal file
1
tests/update_fixtures/osctest/resume_deleted/.osc/foo
Normal file
@@ -0,0 +1 @@
|
||||
foobar
|
5
tests/update_fixtures/osctest/resume_deleted/.osc/merge
Normal file
5
tests/update_fixtures/osctest/resume_deleted/.osc/merge
Normal file
@@ -0,0 +1,5 @@
|
||||
xxx
|
||||
xxx
|
||||
yyy
|
||||
zzz
|
||||
zzz
|
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
0
tests/update_fixtures/osctest/resume_deleted/exists
Normal file
0
tests/update_fixtures/osctest/resume_deleted/exists
Normal file
1
tests/update_fixtures/osctest/resume_deleted/f
Normal file
1
tests/update_fixtures/osctest/resume_deleted/f
Normal file
@@ -0,0 +1 @@
|
||||
This is a test
|
1
tests/update_fixtures/osctest/resume_deleted/foo
Normal file
1
tests/update_fixtures/osctest/resume_deleted/foo
Normal file
@@ -0,0 +1 @@
|
||||
foobar
|
5
tests/update_fixtures/osctest/resume_deleted/merge
Normal file
5
tests/update_fixtures/osctest/resume_deleted/merge
Normal file
@@ -0,0 +1,5 @@
|
||||
xxx
|
||||
xxx
|
||||
yyy
|
||||
zzz
|
||||
zzz
|
1
tests/update_fixtures/osctest/resume_deleted/nochange
Normal file
1
tests/update_fixtures/osctest/resume_deleted/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
1
tests/update_fixtures/osctest/simple/.osc/_apiurl
Normal file
1
tests/update_fixtures/osctest/simple/.osc/_apiurl
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost
|
5
tests/update_fixtures/osctest/simple/.osc/_files
Normal file
5
tests/update_fixtures/osctest/simple/.osc/_files
Normal file
@@ -0,0 +1,5 @@
|
||||
<directory name="simple" rev="1" srcmd5="2df1eacfe03a3bec2112529e7f4dc39a" vrev="1">
|
||||
<entry md5="0d62ceea6020d75154078a20d8c9f9ba" mtime="1282047302" name="foo" size="23" />
|
||||
<entry md5="17b9e9e1a032ed44e7a584dc6303ffa8" mtime="1282047303" name="merge" size="48" />
|
||||
<entry md5="7efa70f68983fad1cf487f69dedf93e9" mtime="1282047303" name="nochange" size="25" />
|
||||
</directory>
|
@@ -0,0 +1 @@
|
||||
1.0
|
1
tests/update_fixtures/osctest/simple/.osc/_package
Normal file
1
tests/update_fixtures/osctest/simple/.osc/_package
Normal file
@@ -0,0 +1 @@
|
||||
simple
|
1
tests/update_fixtures/osctest/simple/.osc/_project
Normal file
1
tests/update_fixtures/osctest/simple/.osc/_project
Normal file
@@ -0,0 +1 @@
|
||||
osctest
|
1
tests/update_fixtures/osctest/simple/.osc/foo
Normal file
1
tests/update_fixtures/osctest/simple/.osc/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/simple/.osc/merge
Normal file
4
tests/update_fixtures/osctest/simple/.osc/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
1
tests/update_fixtures/osctest/simple/.osc/nochange
Normal file
1
tests/update_fixtures/osctest/simple/.osc/nochange
Normal file
@@ -0,0 +1 @@
|
||||
This file didn't change.
|
0
tests/update_fixtures/osctest/simple/exists
Normal file
0
tests/update_fixtures/osctest/simple/exists
Normal file
1
tests/update_fixtures/osctest/simple/foo
Normal file
1
tests/update_fixtures/osctest/simple/foo
Normal file
@@ -0,0 +1 @@
|
||||
This is a simple test.
|
4
tests/update_fixtures/osctest/simple/merge
Normal file
4
tests/update_fixtures/osctest/simple/merge
Normal file
@@ -0,0 +1,4 @@
|
||||
Is it
|
||||
possible to
|
||||
merge this file?
|
||||
I hope so...
|
2
tests/update_fixtures/osctest/simple/nochange
Normal file
2
tests/update_fixtures/osctest/simple/nochange
Normal file
@@ -0,0 +1,2 @@
|
||||
This file didn't change but
|
||||
is modified.
|
Reference in New Issue
Block a user