Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Robert Talamantez
    @Talamantez
    k
    frisby
    frisby says that the server returned 400, when I expected 200
    Greg Prisament
    @gregulator
    Yep, email changing should work now. I closed the bug.
    Hmm.. this is why I don't like using other people's modules. They never do what I want them to ;)
    Robert Talamantez
    @Talamantez
    awes0me
    this one looks highly configurable, I just couldn't figure it out
    yet
    okay - want to tackle one more bug before calling it a day?
    Greg Prisament
    @gregulator
    A frisby example does this. frisby.globalSetup({ request: { headers:{'Accept': 'application/json'}, inspectOnFailure: true } });
    Try adding inspectOnFailure: true to your frisby setup code
    Robert Talamantez
    @Talamantez
    I'm not sure I'm passing in basic auth correctly to test that a device was created
    word, I'll look at the global config
    Greg Prisament
    @gregulator
    28 tests, 109 assertions, 2 failures, 0 skipped
    down to 2 failures, w00t!
    Robert Talamantez
    @Talamantez
    healz YEAH
    Greg Prisament
    @gregulator
    And one isn't a real failure (test needs to be removed)
    2) Frisby Test: users/session-login-create-device_spec:Verify Device Created [ GET https://dev02.canopy.link/api/device/063848db-2801-4e82-947d-82d9e5244dad ] Message: Error: Expected 'null' to be type 'object' for comparison Stacktrace: Error: Expected 'null' to be type 'object' for comparison at _jsonContains (/home/gregp/development/canopy/canopy-api-unit-test-js/node_modules/frisby/lib/frisby.js:1238:11) at jasmine.Matchers.toContainJson (/home/gregp/development/canopy/canopy-api-unit-test-js/node_modules/frisby/lib/frisby.js:1186:12) at null.<anonymous> (/home/gregp/development/canopy/canopy-api-unit-test-js/node_modules/frisby/lib/frisby.js:717:24) at null.<anonymous> (/home/gregp/development/canopy/canopy-api-unit-test-js/node_modules/frisby/lib/frisby.js:1074:43) at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
    Robert Talamantez
    @Talamantez
    yeah that's the one I'm working on -
    I create a user, then create a device, then test if the device was created by basic-authing in and running a get request
    frisby.create('users/session-login-create-device_spec:Verify Device Created')
         .addHeader('authorization', auth)
         .get( g.url + g.devicepath + deviceId)
         .expectStatus(200)
         .expectHeaderContains('content-type', 'application/json')      
         .inspectJSON()
         .expectJSON(  {
           "result" : "ok",
           "device_id" : deviceId,
           "friendly_name" : friendlyNames[0]                         
          })
    Greg Prisament
    @gregulator
    How do you show code in gitter?
    I think I'm doing it wrong
    Robert Talamantez
    @Talamantez
    frame the code with three tic marks
    Greg Prisament
    @gregulator
    got it
    Robert Talamantez
    @Talamantez
    also, go down a line to get the other view
    Greg Prisament
    @gregulator
    got it
    Robert Talamantez
    @Talamantez
    *respect*
    hmmm
    also
    if you look here ------------------------------------------------------>
    Greg Prisament
    @gregulator
    ok see that now
    Robert Talamantez
    @Talamantez
    eh, over to the right, the page there has all of the keyboard shortcuts
    woah - it even does latex
    Greg Prisament
    @gregulator
    do your inspectJson thing so we can see the actual error
    nice
    Robert Talamantez
    @Talamantez
    k
    I'm doing that
    it just returns 'null'
    .null
    Greg Prisament
    @gregulator
    interesting
    Robert Talamantez
    @Talamantez
    This message was deleted
    also I was wondering if you have an endpoint for user/devices, current documentation says
    GET /api/me/devices?
        filter=<FILTER>
        &sort=<SORT>
        &limit=<LIMIT>
    Greg Prisament
    @gregulator
    no not yet
    Robert Talamantez
    @Talamantez
    cool, thanks
    it is responding with 200 ok, however
    I mean 200
    Greg Prisament
    @gregulator
    What URL are you sending the request to?
    endpoint is the UUID