def test_system_facts(self):
     #system = System()
     new_org_name = "Org%s" % Base.random_string()
     new_sys_name = "Sys%s" % Base.random_string()
     out,err = System.system_facts(new_org_name,new_sys_name)
     Assert.equal(err,None)
    def test_system_subscribe(self):
        new_org_name = "Org%s" % Base.random_string()
        new_sys_name = "Sys%s" % Base.random_string()
	new_pool_id = "pool%s" % Base.random_string()
        out,err = System.system_facts(new_org_name,new_sys_name,new_pool_id)
        Assert.equal(err,None)
 def test_system_subscriptions(self):
     new_org_name = "Org%s" % Base.random_string()
     new_sys_name  = "Sys%s" % Base.random_string()
     out,err = System.system_subscriptions(new_org_name,new_sys_name)
     Assert.equal(err,None)
 def test_system_subscriptions_sysname_not_provided(self):
     new_org_name  = "Org%s" % Base.random_string()
     out,err = System.system_subscriptions_sysname_not_provided(new_org_name)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --name option requires an argument\n")
 def test_system_unregister_org_not_provided(self):
     new_sys_name = "Sys%s" % Base.random_string()
     out,err = System.system_unregister_orgname_not_provided(new_sys_name)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --org option requires an argument\n")
 def test_system_report(self):
     new_org_name = "Org%s" % Base.random_string()
     out,err = System.system_report(new_org_name)
     Assert.equal(err,None)
 def test_system_list_environment_not_provided(self):
     new_org_name = "Org%s" % Base.random_string()
     out, err = System.system_list_environment_not_provided(new_org_name)
     Assert.equal(err, "Couldn't find organization \'"+ new_org_name + "\'\n")
 def test_system_list_org_not_provided(self):
     out, err = System.system_list_org_not_provided()
     Assert.equal(err, "Usage: headpin [options]\n\nheadpin: error: --org option requires an argument\n")
 def test_system_update_sysname_missing(self):
     new_org_name = "Org%s" % Base.random_string()
     #new_sys_name = "Sys%s" % Base.random_string()
     out,err = System.system_update_sysname_missing(new_org_name)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --name option requires an argument\n")
Esempio n. 10
0
 def test_system_subscribe_orgname_not_provided(self):
     #new_org_name = "Org%s" % Base.random_string()
     new_sys_name = "Sys%s" % Base.random_string()
     new_pool_id = "pool%s" % Base.random_string()
     out,err = System.system_subscribe_orgname_not_provided(new_sys_name,new_pool_id)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --org option requires an argument\n")
Esempio n. 11
0
 def test_system_report(self):
     #new_org_name = "Org%s" % Base.random_string()
     out,err = System.system_report_orgname_missing()
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --org option requires an argument\n")