Skip to content
Snippets Groups Projects
test_kolla_docker.py 43.2 KiB
Newer Older
  • Learn to ignore specific revisions
  •         self.fake_data['params']['dimensions'] = {
                'ulimits': {'nofile': {'soft': 131072, 'hard': 131072}}}
            ulimits_nofile = Ulimit(name='nofile',
                                    soft=131072, hard=131072)
            container_info = dict()
            container_info['HostConfig'] = {
                'CpuPeriod': 0, 'KernelMemory': 0, 'Memory': 0, 'CpuQuota': 0,
                'CpusetCpus': '', 'CpuShares': 0, 'BlkioWeight': 0,
                'CpusetMems': '', 'MemorySwap': 0, 'MemoryReservation': 0,
                'Ulimits': [ulimits_nofile]}
            self.dw = get_DockerWorker(self.fake_data['params'])
            self.assertFalse(self.dw.compare_dimensions(container_info))