Added two files. Empty test working in test-carddav.. .jsm is merely a copy and paste of mork..jsm  atm

added a comment

File name change. Trying to get import to work

Working on testing a basic server connection via HTTP HEAD request

Removed old file. Finalized testServerConnection & unit test. The function now produces a OPTIONS HTTP Request to the designated server location, and resolves the promise if Status 200 is produced, and rejects otherwise.

Addressed suggestions from pull request. Added aSync, as well as onload function to XMLHttpRequest. Looks like it works, although I still have a feeling something is off. I've tested the httprequest  using a manual request via a browser plugin when the Radical server is down, and the browser test results in the expected Status of 0 (server doesn't exist). however, the testServerConnection either returns a resolved promise (beliving a 200 response status), OR because I'm misunderstanding the goal of the test-carddav-connector's test function. Should it return a successfully passed test even if a promise is brought back as rejected?

Caching for testing

pushing up

Cleaned up code

Original httpd unit test server seems to not be working, caching progress to try with another method of unit testing w/ a server

Caching at start of new days

Added connectionResponder, odd jsbridge error has appeared, seems to be unrelated in regards to its appearance, but it is very odd that it has surfaced. Might have to do with accidentally closing the thunderbird app prematurely in the midst of a test.

Keeps timing out at waiting for promise to resolve. Unsure whats going on... by all accounts the server is starting, and is on the defaulted http://localhost:<port>, at least it seems like it is. Is the server actually on that URI?

Confirmed that the URI that is getting sent to the connector is the correct one, yet the connection still hangs until mc.waitFor gives up. What is going on? Is there something specific to the project setup that is stopping this kind of http server connection?

Potentially completed mc pattern, as well as somehow addressing other branches issues. caching this branch and seeing if same change also fixes main test branch

false alarm on solving the original issue on the other branch, but the mc pattern is working

checking out to other branch

merged test... into wait_for branch, prepping for merge the other way

Addressed issue where the connection would always time out with the httpd.js server. It seems to have been a
combonation of two things: not using the latest version of the .js, and not properly closing the server upon test completion (apparently the close method request a parametered function that addresses the hanging test boolean, even if the test boolean remains false).

Cleaned up code, prepping for overhaul to address future design considerations.

Added new const handlers, cleaned up old const vars

Woops, recommit as there was an error that made it through

Built prototype for mock server

caching for branch switch

Completed transistion into new test case design, with confirmation that it passes as expected

Committing the suggested changes sans wait_for

Added blocking via. wait_for... function

Working on new test for a new feature that creates a new addressbook. Currently does not pass test, I just wanted to dump it on the repo

Working on the new function, I'm using the setup that has worked as a successful request in Radicale interactions, although I'm currently encountering a new issue (which apparently is unrelated to the new features), where my tests are failing with the passage:   EXCEPTION: no message!
    at: nonesuch line 0

Quick code cleaning, issue reported in last commit still exists

Added core of readRecords functionality, not yet tested.

Cleaned up code by removing old functions and collections. Even after suggested fix for 'No Message' error, issue still persists. Any ideas?

A few fixes that I believed to have been an issue, although its seems that these fixes have had no effect on the current 'no message' error. Continuing the search for the reason for this error.

A few fixes, making the test
Connection header proper, added additional checks to make sure connectionTest is properly checking for addressbook support, still have No Message error occuring. More then likely related to pathhandling, but don't know specifics

Added quick fix to make sure that if a new mock carddav server is requested, that any previously ran mock servers are stopped first.

Quick commit to dump where I'm at. So far no progress in understanding this error. When the gServer.start() line is commented out in the setupCardDAVServer function, the wait_for function activates the mc.waitFor line, as if the test begins with the server off, and then never succeeds (this is what is wanted). However, when its not commented out, then the error appears. Does this mean that there's something wrong on the server itself, or the handler? :S

Addressed suggested fixes, have a look

Addressed suggested fixes, once again

Addressed suggested fixes, third time is the charm

Addressed suggested fixes, FORE

Addressed suggested fixes, removed gServer.stop()

Finally addressed issue, and cleanup