5353 "- (SRCE branch) test-dddd" ,
5454 "- (SRCE branch) test-eeee" ,
5555 "- (SRCE branch) test-ffff" ,
56- "[ BUSY ] Initializing namespace assets transfer..." ,
56+ "[ BUSY ] Initializing namespace assets branch(es) transfer..." ,
5757 "[ WARN ] Transferring 8 available branches" ,
5858 "[1/8] Branch 'HEAD' was transferred to the destination namespace" ,
5959 "[2/8] Branch 'main' was transferred to the destination namespace" ,
6464 "[7/8] Branch 'test-eeee' was transferred to the destination namespace" ,
6565 "[8/8] Branch 'test-ffff' was transferred to the destination namespace" ,
6666 "Assets transferred: 8 branch(es) completed, 8 branch(es) requested" ,
67- "[ PASS ] Namespace assets transfer succeeded!" ,
67+ "[ PASS ] Namespace assets branch(es) transfer succeeded!" ,
68+ "[ BUSY ] Reading tags data from the locally cloned assets..." ,
69+ "[ PASS ] Tags data reading succeeded!" ,
70+ "Available in source namespace: 0 tag(s)" ,
71+ "[ BUSY ] Initializing namespace assets tag(s) transfer..." ,
72+ "[ WARN ] Transferring 0 available tags" ,
73+ "[ PASS ] Namespace assets tag(s) transfer succeeded!" ,
6874 ],
69- id = "pagure.io - Migrating repository contents with specifying zero valid branch names" ,
75+ id = "pagure.io - Migrating repository contents with specifying zero valid branch and tag names" ,
7076 ),
7177 pytest .param (
7278 f"--splt { envr ['TEST_SPLT_FEDO' ]} --dplt { envr ['TEST_DPLT' ]} --srce { envr ['TEST_SRCE' ]} --dest { envr ['TEST_DEST' ]} --pkey { envr ['TEST_PKEY' ]} --gkey { envr ['TEST_GKEY' ]} --fusr { envr ['TEST_FUSR' ]} --tusr { envr ['TEST_TUSR' ]} repo --brcs test-aaaa,test-bbbb,test-cccc,test-dddd" , # noqa: E501
8389 "- (RQST branch) test-bbbb" ,
8490 "- (RQST branch) test-cccc" ,
8591 "- (RQST branch) test-dddd" ,
86- "[ BUSY ] Initializing namespace assets transfer..." ,
92+ "[ BUSY ] Initializing namespace assets branch(es) transfer..." ,
8793 "[ WARN ] Transferring 4 requested branches" ,
8894 "[1/4] Branch 'test-aaaa' was transferred to the destination namespace" ,
8995 "[2/4] Branch 'test-bbbb' was transferred to the destination namespace" ,
9096 "[3/4] Branch 'test-cccc' was transferred to the destination namespace" ,
9197 "[4/4] Branch 'test-dddd' was transferred to the destination namespace" ,
9298 "Assets transferred: 4 branch(es) completed, 4 branch(es) requested" ,
93- "[ PASS ] Namespace assets transfer succeeded!" ,
99+ "[ PASS ] Namespace assets branch(es) transfer succeeded!" ,
100+ "[ BUSY ] Reading tags data from the locally cloned assets..." ,
101+ "[ PASS ] Tags data reading succeeded!" ,
102+ "Available in source namespace: 0 tag(s)" ,
103+ "[ BUSY ] Initializing namespace assets tag(s) transfer..." ,
104+ "[ WARN ] Transferring 0 available tags" ,
105+ "[ PASS ] Namespace assets tag(s) transfer succeeded!" ,
94106 ],
95- id = "pagure.io - Migrating repository contents with specifying four valid branch names" ,
107+ id = "pagure.io - Migrating repository contents with specifying four valid branch names and zero valid tag names " ,
96108 ),
97109 pytest .param (
98110 f"--splt { envr ['TEST_SPLT_FEDO' ]} --dplt { envr ['TEST_DPLT' ]} --srce { envr ['TEST_SRCE' ]} --dest { envr ['TEST_DEST' ]} --pkey { envr ['TEST_PKEY' ]} --gkey { envr ['TEST_GKEY' ]} --fusr { envr ['TEST_FUSR' ]} --tusr { envr ['TEST_TUSR' ]} repo --brcs test-aaaa,test-bbbb,test-cxxc,test-dxxd" , # noqa: E501
109121 "- (RQST branch) test-bbbb" ,
110122 "- (RQST branch) test-cxxc" ,
111123 "- (RQST branch) test-dxxd" ,
112- "[ BUSY ] Initializing namespace assets transfer..." ,
124+ "[ BUSY ] Initializing namespace assets branch(es) transfer..." ,
113125 "[ WARN ] Transferring 4 requested branches" ,
114126 "[1/4] Branch 'test-aaaa' was transferred to the destination namespace" ,
115127 "[2/4] Branch 'test-bbbb' was transferred to the destination namespace" ,
116128 "[3/4] Branch 'test-cxxc' was not found in the source namespace" ,
117129 "[4/4] Branch 'test-dxxd' was not found in the source namespace" ,
118130 "Assets transferred: 2 branch(es) completed, 4 branch(es) requested" ,
119- "[ WARN ] Namespace assets transfer partially completed!" ,
131+ "[ WARN ] Namespace assets branch(es) transfer partially completed!" ,
132+ "[ BUSY ] Reading tags data from the locally cloned assets..." ,
133+ "[ PASS ] Tags data reading succeeded!" ,
134+ "Available in source namespace: 0 tag(s)" ,
135+ "[ BUSY ] Initializing namespace assets tag(s) transfer..." ,
136+ "[ WARN ] Transferring 0 available tags" ,
137+ "[ PASS ] Namespace assets tag(s) transfer succeeded!" ,
120138 ],
121- id = "pagure.io - Migrating repository contents with specifying two valid branch names and two invalid branch names" , # noqa: E501
139+ id = "pagure.io - Migrating repository contents with specifying two valid branch names and two invalid branch names and zero valid tag names " , # noqa: E501
122140 ),
123141 pytest .param (
124142 f"--splt { envr ['TEST_SPLT_FEDO' ]} --dplt { envr ['TEST_DPLT' ]} --srce { envr ['TEST_SRCE' ]} --dest { envr ['TEST_DEST' ]} --pkey { envr ['TEST_PKEY' ]} --gkey { envr ['TEST_GKEY' ]} --fusr { envr ['TEST_FUSR' ]} --tusr { envr ['TEST_TUSR' ]} repo --brcs test-axxa,test-bxxb,test-cxxc,test-dxxd" , # noqa: E501
135153 "- (RQST branch) test-bxxb" ,
136154 "- (RQST branch) test-cxxc" ,
137155 "- (RQST branch) test-dxxd" ,
138- "[ BUSY ] Initializing namespace assets transfer..." ,
156+ "[ BUSY ] Initializing namespace assets branch(es) transfer..." ,
139157 "[ WARN ] Transferring 4 requested branches" ,
140158 "[1/4] Branch 'test-axxa' was not found in the source namespace" ,
141159 "[2/4] Branch 'test-bxxb' was not found in the source namespace" ,
142160 "[3/4] Branch 'test-cxxc' was not found in the source namespace" ,
143161 "[4/4] Branch 'test-dxxd' was not found in the source namespace" ,
144162 "Assets transferred: 0 branch(es) completed, 4 branch(es) requested" ,
145- "[ FAIL ] Namespace assets transfer failed!" ,
163+ "[ FAIL ] Namespace assets branch(es) transfer failed!" ,
164+ "[ BUSY ] Reading tags data from the locally cloned assets..." ,
165+ "[ PASS ] Tags data reading succeeded!" ,
166+ "Available in source namespace: 0 tag(s)" ,
167+ "[ BUSY ] Initializing namespace assets tag(s) transfer..." ,
168+ "[ WARN ] Transferring 0 available tags" ,
169+ "[ PASS ] Namespace assets tag(s) transfer succeeded!" ,
146170 ],
147- id = "pagure.io - Migrating repository contents with specifying four invalid branch names" ,
171+ id = "pagure.io - Migrating repository contents with specifying four invalid branch names and zero invalid tag names " ,
148172 ),
149173 pytest .param (
150174 f"--splt { envr ['TEST_SPLT_FEDO' ]} --dplt { envr ['TEST_DPLT' ]} --srce { envr ['TEST_SRCE' ]} --dest { envr ['TEST_DEST' ]} --pkey { envr ['TEST_PKEY' ]} --gkey { envr ['TEST_GKEY' ]} --fusr { envr ['TEST_FUSR' ]} --tusr { envr ['TEST_TUSR' ]} repo" , # noqa: E501
@@ -170,7 +194,8 @@ def test_main_repo(caplog, cmdl, code, text):
170194
171195 # Changing the shared variable back to its default
172196 # Please check https://github.com/gridhead/protop2g/issues/35 for additional details
173- standard .transfer_index = 0
197+ standard .branch_transfer_index = 0
198+ standard .tag_transfer_index = 0
174199
175200 assert result .exit_code == code # noqa: S101
176201 for indx in text :
0 commit comments