def test_api_create(self):
     ds = DaemonSet(_constants.fluentd_daemonset())
     k8s_ds = _utils.create_daemonset(name=ds.name)
     k8s_ds.model = ds
     if _utils.is_reachable(k8s_ds.config):
         k8s_ds.create()
         self.assertIsInstance(k8s_ds, K8sDaemonSet)
    def test_list(self):
        ds = DaemonSet(_constants.fluentd_daemonset())
        k8s_ds = _utils.create_daemonset(name=ds.name)
        k8s_ds.model = ds

        if _utils.is_reachable(k8s_ds.config):
            k8s_ds.create()
            _list = k8s_ds.list()
            for x in _list:
                self.assertIsInstance(x, K8sDaemonSet)