Exemplo n.º 1
0
def test_new_cea_object(a_gitrepo, a_jss):
    """ Can we create a new Script object? """
    newobj = processors.ComputerExtensionAttribute(
        a_gitrepo,
        a_jss,
        source_file='coreconfig-softwareupdate-run.py',
        target='test-1')
    assert newobj
Exemplo n.º 2
0
def test_update_cea_object(a_gitrepo, a_jss):
    """ Can we update a CEA object ? """
    newobj = processors.ComputerExtensionAttribute(
        a_gitrepo,
        a_jss,
        source_file='coreconfig-softwareupdate-run.py',
        target='test-1')

    newobj.update()
Exemplo n.º 3
0
def test_save_cea_object():
    """ Can we save a CEA object ? """
    newobj = processors.ComputerExtensionAttribute(
        repo,
        JSS,
        source_file='coreconfig-softwareupdate-run.py',
        target='test-1')

    newobj.update()
    newobj.save()