Skip to content

Failing test has been disabled due to request-shim-update #259

@jason-fox

Description

@jason-fox

The following test has been disabled:

test/unit/ngsiv2/registration-test.js

+                    /*ngsiClient.getRegistrations('TestClient:Light', 'Light', undefined, function (
                        error,
                        response,
                        body
                    ) {
                        should.not.exist(error);
                        should.exist(body);
                        response.statusCode.should.equal(200);
-                        let registrations = JSON.parse(body);
-                        registrations.length.should.equal(0);
-                       done();
-                    });
+                        body.length.should.equal(0);*/
+                    done();
+                    /*});*/

The reasoning is as follows:

Because ngsiClient was calling an NGSI-v1 function, and after the switch to NGSI-v2 and got, it still doesn't work 😄

This is a test expectation using an HTTP request to check some things which assume the request was made by the obsolete
request library - I guess it is the same situation as JSON body length thing.

Progress the request-shim refactoring the following workaround has been implemented: see #255 (comment)

  • Create an issue about this, explaining the situation (the text in the comment above could be useful)
  • Disable de case using xit() with a code comment FIXME referring the issue number created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions