Exemplo n.º 1
0
    def _detect_metadata_protocol(self):
        protocol = MetadataProtocol()
        protocol.detect()

        #Only allow root access METADATA_ENDPOINT
        self.osutil.set_admin_access_to_ip(METADATA_ENDPOINT)

        self.save_protocol("MetadataProtocol")

        return protocol
Exemplo n.º 2
0
    def _test_getters(self, test_data, mock_restutil ,_):
        mock_restutil.http_get.side_effect = test_data.mock_http_get

        protocol = MetadataProtocol()
        protocol.detect()
        protocol.get_vminfo()
        protocol.get_certs()
        ext_handlers, etag = protocol.get_ext_handlers()
        for ext_handler in ext_handlers.extHandlers:
            protocol.get_ext_handler_pkgs(ext_handler)
Exemplo n.º 3
0
    def _detect_metadata_protocol(self):
        protocol = MetadataProtocol()
        protocol.detect()
        
        #Only allow root access METADATA_ENDPOINT
        self.osutil.set_admin_access_to_ip(METADATA_ENDPOINT)
        
        self.save_protocol("MetadataProtocol")

        return protocol
Exemplo n.º 4
0
    def _test_getters(self, test_data, mock_restutil, _):
        mock_restutil.http_get.side_effect = test_data.mock_http_get

        protocol = MetadataProtocol()
        protocol.detect()
        protocol.get_vminfo()
        protocol.get_certs()
        ext_handlers, etag = protocol.get_ext_handlers()
        for ext_handler in ext_handlers.extHandlers:
            protocol.get_ext_handler_pkgs(ext_handler)
Exemplo n.º 5
0
 def _detect_metadata_protocol(self):
     protocol = MetadataProtocol()
     protocol.detect()
     self.save_protocol("MetadataProtocol")
     return protocol
Exemplo n.º 6
0
 def _detect_metadata_protocol(self):
     protocol = MetadataProtocol()
     protocol.detect()
     self.save_protocol("MetadataProtocol")
     return protocol
 def _detect_metadata_protocol(self):
     protocol = MetadataProtocol()
     protocol.detect()
     return protocol
Exemplo n.º 8
0
 def _detect_metadata_protocol(self):
     protocol = MetadataProtocol()
     protocol.detect()
     return protocol