summaryrefslogtreecommitdiffstats
path: root/data/fixtures
diff options
context:
space:
mode:
authorGravatar mszulecki2007-06-14 17:18:27 +0000
committerGravatar mszulecki2007-06-14 17:18:27 +0000
commit27a3ab7430cc7fdb8ba1d45c01bc5e7cf8384108 (patch)
treeffcf534d468b12658f7027d7b0095eec93344a88 /data/fixtures
parent0059033fa60956ffff7be1196fb4671c13e7fab8 (diff)
downloadmailadmin-27a3ab7430cc7fdb8ba1d45c01bc5e7cf8384108.tar.gz
mailadmin-27a3ab7430cc7fdb8ba1d45c01bc5e7cf8384108.tar.bz2
Add some more test data fixtures.
git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@4 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
Diffstat (limited to 'data/fixtures')
-rw-r--r--data/fixtures/20-test_data.yml155
1 files changed, 155 insertions, 0 deletions
diff --git a/data/fixtures/20-test_data.yml b/data/fixtures/20-test_data.yml
new file mode 100644
index 0000000..1bb12d8
--- /dev/null
+++ b/data/fixtures/20-test_data.yml
@@ -0,0 +1,155 @@
+User:
+ domainadmin:
+ nickname: domainadmin
+ first_name: Micky
+ last_name: Mouse
+ email: domainadmin@example.com
+ password: domainadmin
+ role_id: domainmaster
+ parent_user_id: admin
+ created_at:
+
+ mailboxadmin:
+ nickname: mailboxadmin
+ first_name: Kermit
+ last_name: The Frog
+ email: mailboxadmin@example.com
+ password: mailboxadmin
+ role_id: mailboxmaster
+ parent_user_id: admin
+ created_at:
+
+Domain:
+ d1:
+ name: example.com
+ mailbox_prefix: example
+ max_mailbox_count: 300
+ quota: 160000
+ default_mailbox_quota: 20000
+ creator_id: admin
+ d2:
+ name: test.com
+ mailbox_prefix: test
+ max_mailbox_count: 300
+ quota: 160000
+ default_mailbox_quota: 20000
+ creator_id: domainadmin
+ d3:
+ name: mailadmin.eu
+ mailbox_prefix: mailadmin
+ max_mailbox_count: 9999
+ quota: 160000
+ default_mailbox_quota: 20000
+ creator_id: mailboxadmin
+ d4:
+ name: anothertest.com
+ mailbox_prefix: anothertest
+ max_mailbox_count: 0
+ quota: 0
+ default_mailbox_quota: 40000
+ creator_id: admin
+ d5:
+ name: wealllovekittenz.com
+ mailbox_prefix: wealllovekittenz
+ max_mailbox_count: 0
+ quota: 0
+ default_mailbox_quota: 0
+ creator_id: domainadmin
+ d6:
+ name: sukimashita.com
+ mailbox_prefix: sukimashita
+ max_mailbox_count: 231
+ quota: 352351
+ default_mailbox_quota: 5000
+ creator_id: admin
+
+DomainPermission:
+ p1:
+ user_id: mailboxadmin
+ domain_id: d1
+ p2:
+ user_id: mailboxadmin
+ domain_id: d4
+ p3:
+ user_id: mailboxadmin
+ domain_id: d6
+
+ p4:
+ user_id: domainadmin
+ domain_id: d1
+ p5:
+ user_id: domainadmin
+ domain_id: d2
+ p6:
+ user_id: domainadmin
+ domain_id: d3
+ p7:
+ user_id: domainadmin
+ domain_id: d5
+
+Mailbox:
+ m1:
+ domain_id: d1
+ name: example0001
+ password: secret
+ max_quota: 20000
+ max_address_count: 999
+ m2:
+ domain_id: d2
+ name: test0001
+ password: secret1
+ max_quota: 20000
+ max_address_count: 0
+ m3:
+ domain_id: d3
+ name: mailadmin0001
+ password: secret2
+ max_quota: 20000
+ max_address_count: 0
+ m4:
+ domain_id: d1
+ name: example0002
+ password: secret3
+ max_quota: 20000
+ max_address_count: 2342
+
+Address:
+ a1:
+ mailbox_id: m1
+ alias: info@example.com
+ destination: example0001
+ domain_id: d1
+ a2:
+ mailbox_id: m1
+ alias: @example.com
+ destination: example0001
+ domain_id: d1
+ a3:
+ mailbox_id: m2
+ alias: test@test.com
+ destination: test0001
+ domain_id: d2
+ a4:
+ mailbox_id: m3
+ alias: info@mailadmin.eu
+ destination: maladmin0001
+ domain_id: d3
+ a5:
+ mailbox_id: m2
+ alias: @test.com
+ destination: forward@gmail.com,test0001
+ domain_id: d2
+ a6:
+ mailbox_id: m3
+ alias: support@mailadmin.eu
+ destination: example0001,mailadmin0001,test0001
+ domain_id: d3
+
+LogEntry:
+ l1:
+ user_id: admin
+ created_at:
+ host: aafab8a8df.aol.com
+ message: 'User admin logged in.'
+ priority: 0
+