Skip to content

Conversation

@petersgiles
Copy link
Contributor

relates to #200

If there is a trailing slash on the end of the ServiceControl api uri in the config file ServicePulse would compensate for it inappropriately. Now if the config has a trailing slash or not ServicePulse will be able to handle it.

@petersgiles petersgiles changed the title if servicecontrol url is configured with or without a trailing slash the application will behave properly If ServiceControl Api Uri is configured with or without a trailing slash the application will now behave properly Oct 30, 2015
@petersgiles
Copy link
Contributor Author

@johnsimons @colin-higgins please review

@johnsimons
Copy link
Member

@petersgiles at first it scared me the ammount of code changed to fix a missing backspash.
But I think i see the approach u took and cover all the basis.
So 👍 to merge

Just for future, is there a way to test this ?

@petersgiles
Copy link
Contributor Author

@johnsimons we need to look at a test framework perhaps karma but I've never run one up in anything other than gulp. Dunno how it would all work with team city etc.

petersgiles pushed a commit that referenced this pull request Oct 30, 2015
…sh-on-servicecontrol-uri

If ServiceControl Api Uri is configured with or without a trailing slash the application will now behave properly
@petersgiles petersgiles merged commit cac51f3 into develop Oct 30, 2015
@petersgiles petersgiles deleted the fix-inconsistent-trailing-slash-on-servicecontrol-uri branch October 30, 2015 02:54
@petersgiles petersgiles added the Type: Bug Type: Bug label Oct 30, 2015
@petersgiles petersgiles self-assigned this Oct 30, 2015
@petersgiles petersgiles added this to the 1.3.1 milestone Oct 30, 2015
@colin-higgins
Copy link
Contributor

@petersgiles @johnsimons

I've set up javascript tests in TeamCity before, I can get that up for us soon. We'd use a headless browser like PhantomJS to run the tests. PhantomJS is just an executable that you feed some arguments to, easy to add as a step in TeamCity.

For running the tests in visual studio, I've used Chutzpah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Type: Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants