Beispiel #1
0
 def test_publish(self):
     p = glideclientglobal.GlideClientGlobalManifests(config)
     with mock.patch.object(glideclientglobal.GlideClientGlobalManifests,
                            'publish_to_htcondor') as publish_to_htcondor:
         publish_to_htcondor.return_value = None
         # TODO: Complete this test when we have detailed contents of the
         #       dataframe and the logic engine facts
         assert (True == True)
Beispiel #2
0
 def test_create_invalidate_constraint(self):
     p = glideclientglobal.GlideClientGlobalManifests(config)
     p.create_invalidate_constraint(request_df)
     assert (p.invalidate_ads_constraint == expected_constraint)
Beispiel #3
0
 def test_publish(self):
     glideclientglobal.GlideClientGlobalManifests(config)
     with mock.patch.object(glideclientglobal.GlideClientGlobalManifests,
                            'publish_to_htcondor') as publish_to_htcondor:
         publish_to_htcondor.return_value = None
Beispiel #4
0
 def test_consumes(self):
     consumes = ['glideclientglobal_manifests']
     p = glideclientglobal.GlideClientGlobalManifests(config)
     assert (p.consumes() == consumes)
Beispiel #5
0
 def test_consumes(self):
     p = glideclientglobal.GlideClientGlobalManifests(config)
     assert p._consumes == {'glideclientglobal_manifests': pandas.DataFrame}