GithubHelp home page GithubHelp logo

Comments (3)

tomasaschan avatar tomasaschan commented on July 17, 2024

I've been able to verify this with a (somewhat) simple test; see the code snippet at the bottom. It boils down to req.azuriteRequest not being defined here, but I don't really know why it's undefined, or where its value should have been set even though it wasn't. I'll keep digging, but any advice would be much appreciated.

const chai = require("chai"),
  chaiHttp = require("chai-http"),
  should = chai.should(),
  expect = chai.expect,
  BbPromise = require("bluebird"),
  fs = BbPromise.promisifyAll(require("fs-extra")),
  Azurite = require("./../lib/AzuriteTable"),
  rp = require("request-promise"),
  path = require("path"),
  xml2js = require("xml2js");

chai.use(chaiHttp);

const containerName = "testcontainer";
const tableName = "testtable";

const url = "http://localhost:10002";
const urlPath = "/devstoreaccount1";

describe("Table HTTP API", () => {
  const azurite = new Azurite();

  before(() => {
    const location = path.join(process.env.AZURITE_LOCATION, "TABLE");
    return azurite.init({ l: location, silent: "true", overwrite: "true" });
  });

  after(() => {
    return azurite.close();
  });

  describe("List tables", () => {
    it("doesn't blow up when listing tables", () =>
      chai
        .request(url)
        .get(`${urlPath}/Tables`)
        .set("Accept", "application/json")
        .send()
        .then(res => {
          res.should.have.status(200);
        })
        // uncomment to see entire error with stacktrace etc:
        // .catch(err => {
        //   console.log(JSON.stringify(err, null, 2));
        // })
        );
  });
});

from azurite.

arafato avatar arafato commented on July 17, 2024

Hi @tlycken ! The reason Azurite crashes is that QueryTables has not been implemented yet. I'm aiming for implementing QueryTables and QueryEntities until end of next week. Will update you here.

Current support of Table storage is really limited right now. See https://github.com/arafato/azurite/blob/master/release-notes.md and https://github.com/arafato/azurite#table-storage---api-implementation-status respectively, for more details.

I planning on having full support by the end of this month, so stay tuned!

from azurite.

tomasaschan avatar tomasaschan commented on July 17, 2024

Good news! I'm willing to help with this, if I can, in order to speed it up even further :)

I'm having some difficulties following request flow at the beginning of a request, though; would you mind pointing me to the extension point(s) where I need to register/modify stuff to initialize those properties on the request object?

from azurite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.