~andreserl/maas/doc_cleanup

« back to all changes in this revision

Viewing changes to src/maasserver/testing/sampledata.py

  • Committer: MAAS Lander
  • Author(s): Mike Pontillo
  • Date: 2016-03-08 03:25:30 UTC
  • mfrom: (4742.1.2 vlan-amendments)
  • Revision ID: maas_lander-20160308032530-600njmwvdlh68ibs
[r=andreserl][bug=][author=mpontillo] Minor fixes for VLAN details page and sample data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    get_one,
26
26
    transactional,
27
27
)
 
28
import petname
28
29
from provisioningserver.utils.ipaddr import get_mac_addresses
29
30
 
30
31
 
182
183
        factory.make_Node(
183
184
            owner=user1, status=NODE_STATUS.ALLOCATED,
184
185
            zone=random.choice(zones), fabric=random.choice(fabrics),
 
186
            hostname=petname.Generate(2, '-')
185
187
        ),
186
188
        factory.make_Node(
187
189
            owner=user1, status=NODE_STATUS.DEPLOYED,
188
190
            zone=random.choice(zones), fabric=random.choice(fabrics),
 
191
            hostname=petname.Generate(2, '-')
189
192
        ),
190
193
    ]
191
194
    user2_machines = [  # noqa
192
195
        factory.make_Node(
193
196
            owner=user2, status=NODE_STATUS.DEPLOYING,
194
197
            zone=random.choice(zones), fabric=random.choice(fabrics),
 
198
            hostname=petname.Generate(2, '-')
195
199
        ),
196
200
        factory.make_Node(
197
201
            owner=user2, status=NODE_STATUS.RELEASING,
198
202
            zone=random.choice(zones), fabric=random.choice(fabrics),
 
203
            hostname=petname.Generate(2, '-')
199
204
        ),
200
205
    ]