Esempio n. 1
0
    def test_018_queue_insert_metadata_size65537(self):
        """Updates Queue with metadata_size = 65537."""
        url = self.cfg.base_url + '/queues/qtestqueue/metadata'
        doc = functionlib.get_custom_body({"metadatasize": 65537})
        result = http.put(url, self.header, doc)

        self.assertEqual(result.status_code, 400)
Esempio n. 2
0
    def test_017_queue_insert_metadata_size65536(self):
        """Updates Queue with metadata_size = 65536."""
        url = self.cfg.base_url + '/queues/qtestqueue/metadata'
        doc = functionlib.get_custom_body({"metadatasize": 65536})
        result = http.put(url, self.header, doc)

        self.assertEqual(result.status_code, 204)

        result = http.get(url, self.header)
        self.assertEqual(result.status_code, 200)
        self.assertEqual(result.json(), json.loads(doc))