def setUp(self):
     self.agree_back = backends.Agreement()
     self.extras = {"security": {"DSS": "dss_pass"}, "customer": "larry"}
     self.entity = core_model.Resource('', occi_sla.AGREEMENT,
                                       [occi_sla.AGREEMENT_TEMPLATE])
     self.entity.attributes = \
         {"occi.agreement.effectiveFrom": "2114-11-02T02:17:26Z",
          "occi.agreement.effectiveUntil": "2114-11-02T02:17:29Z"}
     self.template_list = json.load(
         file("tests/sample_data/template_definition_v2.json"))
     provider_details.load_providers()
    def setUp(self):

        self.temps = json.load(file("tests/sample_data/template_definition_v2.json"))
        self.extras = {"security": {"DSS": "dss_pass"}, "customer": "larry"}

        templates.load_templates(self.temps)
        provider_details.load_providers()

        self.id = "/agreement/4545-4545454-sdasdas"
        self.compute_id = "/compute/ccccccc-ddddddd"
        self.link_id = "/agreement_link/lllllll-ddddddd"
Example #3
0
 def setUp(self):
     self.agree_back = backends.Agreement()
     self.extras = {"security": {"DSS": "dss_pass"}, "customer": "larry"}
     self.entity = core_model.Resource('', occi_sla.AGREEMENT,
                                       [occi_sla.AGREEMENT_TEMPLATE])
     self.entity.attributes = \
         {"occi.agreement.effectiveFrom": "2114-11-02T02:17:26Z",
          "occi.agreement.effectiveUntil": "2114-11-02T02:17:29Z"}
     self.template_list = json.load(
         file("tests/sample_data/template_definition_v2.json"))
     provider_details.load_providers()
Example #4
0
    def setUp(self):

        self.temps = json.load(
            file("tests/sample_data/template_definition_v2.json"))
        self.extras = {"security": {"DSS": "dss_pass"}, "customer": "larry"}

        templates.load_templates(self.temps)
        provider_details.load_providers()

        self.id = "/agreement/4545-4545454-sdasdas"
        self.compute_id = "/compute/ccccccc-ddddddd"
        self.link_id = "/agreement_link/lllllll-ddddddd"
Example #5
0
def init_environment():
    """
        Initialise MCN Provider details
    """
    # Load Templates

    temps_dss = json.load(file("configs/template_definition_DSS.json"))
    templates.load_templates(temps_dss)

    #Add Providers login credentials
    provider_details.load_providers()

    #Add monitoring capabilities and Collectos's API
    monitoring_details.load_monitoring_capabilities()

    clean_violation_from_db()
Example #6
0
def init_environment():
    """
        Initialise MCN Provider details
    """
    # Load Templates
    
    temps_dss = json.load(file("configs/template_definition_DSS.json"))
    templates.load_templates(temps_dss)

    #Add Providers login credentials
    provider_details.load_providers()

    #Add monitoring capabilities and Collectos's API
    monitoring_details.load_monitoring_capabilities()
    
    clean_violation_from_db()