Home | History | Annotate | Download | only in afe

Lines Matching refs:labels

122         host2.labels.add(label1)
147 leased_host.labels.add(label1)
171 host3.labels.add(label1)
390 host1.labels.add(non_static_platform)
391 host1.labels.add(label1)
403 # Respect all labels in afe_hosts_labels.
404 self.assertEquals(host['labels'],
406 # Respect static labels.
424 host2.labels.add(label1)
445 host2.labels.add(label1)
471 host1.labels.add(non_static_platform)
479 id='test_host', labels=['platform2'])
497 host1.labels.add(platform2)
506 id='test_host', labels=['static_platform'])
519 host1.labels.add(label)
529 """Test remove labels of a given host."""
536 host1.labels.add(label)
537 host1.labels.add(label1)
538 host1.labels.add(label2)
544 labels = rpc_interface.get_labels(host__hostname__in=['test_host'])
546 self.assertEquals(len(labels), 2)
547 self.assertEquals(labels[0].get('name'), 'label2')
556 shard.labels.add(label)
568 self.assertItemsEqual(shard1.labels.all(), [])
589 host.labels.add(label)
607 host.labels.add(label1)
608 host.labels.add(label2)
625 host.labels.add(label1)
626 host.labels.add(label2)
644 shard.labels.add(label)
648 host.labels.add(label)
723 id='host1', labels=['platform2'])
775 self.assertEquals(sorted(host['labels']), ['label1', 'myplatform'])
893 self.assertEquals(host.labels.count(), 0)
1298 host2.labels.add(label1)
1321 host2.labels.add(label1)
1764 shard.labels.add(label)
1768 host.labels.add(label)
1788 self.assertItemsEqual(shard1.labels.all(), [lumpy_label])
1794 self.assertItemsEqual(shard1.labels.all(), [])
1807 hostname='host1', labels='board:lumpy,board:stumpy')
1810 hostname='host1', labels='board:lumpy,board:stumpy')
1813 hostname='host1', labels='board:peppy')
1816 self.assertEqual(shard.labels.values_list('pk')[0], (lumpy_label.id,))
1817 self.assertEqual(shard.labels.values_list('pk')[1], (stumpy_label.id,))
1820 [{'labels': ['board:lumpy','board:stumpy'],
1831 hostname='shard1', labels='board:stumpy')
1835 hostname='shard1', labels='board:test')
1839 hostname='shard1', labels='board:lumpy')
1842 self.assertEqual(shard.labels.values_list('pk')[0], (lumpy_label.id,))
1843 self.assertEqual(shard.labels.values_list('pk')[1], (stumpy_label.id,))
1846 [{'labels': ['board:lumpy','board:stumpy'],