From 393534bfb4538159866dcd76ab7a6656fb8b10bd Mon Sep 17 00:00:00 2001 From: yackob03 Date: Thu, 7 Nov 2013 23:29:58 -0500 Subject: [PATCH] Add an outside user to the orgrepo for the purpose of screenshots. --- initdb.py | 7 ++++++- test/data/test.db | Bin 96256 -> 96256 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/initdb.py b/initdb.py index cfc2f40f5..aebdbe684 100644 --- a/initdb.py +++ b/initdb.py @@ -144,6 +144,10 @@ def populate_database(): reader.verified = True reader.save() + outside_org = model.create_user('outsideorg', 'password', 'no2@thanks.com') + outside_org.verified = True + outside_org.save() + __generate_repository(new_user_1, 'simple', 'Simple repository.', False, [], (4, [], ['latest', 'prod'])) @@ -189,7 +193,8 @@ def populate_database(): org_repo = __generate_repository(org, 'orgrepo', 'Repository owned by an org.', False, - [], (4, [], ['latest', 'prod'])) + [(outside_org, 'read')], + (4, [], ['latest', 'prod'])) reader_team = model.create_team('readers', org, 'member', 'Readers of orgrepo.') diff --git a/test/data/test.db b/test/data/test.db index fc7db0002ddbdcec704797db76b9be8d9f2d0c22..20ed3819d36d71d54cdf20cd477623d14002ea5f 100644 GIT binary patch delta 1101 zcmbu7?{5=z9LMkaxx22^4K!#5F439sU{Sieu6Mn5Mrm)erR#dG>-Co*v%l!A+pe^| ztu2OF{{!@!_zV-3K-4F=BOxR#vX~J8p$rr?Q;AN+xDqECG0{Z7>mI;!pM4*^-tW)n z^L~FD8+2oXKKeKrdA&y>BOkte+_{4x*9kZVqG{FCF!hq_#>3PXq{+dcpxZHdfVL35 zuhIP$qN6ycSEjPLVmaSuPxW#3z85mia5kIq@g;BEk*_O(QbbA1UXSW44o;7b9m*s< zvXre>I6e_mW|e{3*nD_OE86$zYD$}~*fPag)Npt6=>gWOl%!BqiEDLz*tUO0)l<3r z;X*y2Me}Stl=CGb`QcJ@JYG^OLM<0Kn6RNM?tXqwEQkq3Q}Vv~N>xnQ>)Ap)DW@xP zM)V7c5Pebe@FPxcwj4{j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