Skip to content

Remove old references#1052

Merged
nwmac merged 15 commits into
susefrom
remove-old-refs
Jun 1, 2017
Merged

Remove old references#1052
nwmac merged 15 commits into
susefrom
remove-old-refs

Conversation

@richard-cox
Copy link
Copy Markdown
Contributor

hpe, hce, stackato, hewlett-packard, etc

Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation
@richard-cox
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than a few questions I had reading through it.

margin-right: $hpe-unit-space / 4;

&.hpe-icon-right {
margin-left: $hpe-unit-space / 4;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this -icon-right style unused?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, couldn't find any references to it.

}

.hpe-media-select-col {
.app-media-select-col {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason this one gets the "app" prefix?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any references to this style being changed - is it used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started out with the app prefix before switching to console, this one should also be console. Will update. It's used a couple times in stratos-extras but not in stratos-ui.

@@ -1,5 +1,5 @@
<div class="space-services-table">
<div ng-if="spaceRoutesCtrl.spaceDetail().routes.length < 1"
<div ng-if="!spaceRoutesCtrl.spaceDetail() || spaceRoutesCtrl.spaceDetail().routes.length < 1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a bug fix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional, though it's only to improve what we show when a user navigates directly to the page with a junk org or space guid.

@@ -1,5 +1,5 @@
<div class="space-services-table">
<div ng-if="spaceSrvsCtrl.serviceInstances.length < 1"
<div ng-if="!spaceSrvsCtrl.serviceInstances || spaceSrvsCtrl.serviceInstances.length < 1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a bug fix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional, though it's only to improve what we show when a user navigates directly to the page with a junk org or space guid.

Copy link
Copy Markdown
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nwmac nwmac merged commit 671b589 into suse Jun 1, 2017
irfanhabib pushed a commit that referenced this pull request Jun 1, 2017
commit 5dad190
Merge: 3b13b8e 044208f
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 15:06:44 2017 +0100

    Merge remote-tracking branch 'origin/suse' into remove-old-refs

commit 3b13b8e
Author: Neil MacDougall <nwmac@users.noreply.github.com>
Date:   Thu Jun 1 14:55:30 2017 +0100

    gate check

commit 044208f
Author: Irfan Habib <irfan.habib@suse.com>
Date:   Thu Jun 1 14:53:19 2017 +0100

    Merge Portal Proxy (#1059)

    * update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

    * drop unneeded headers var

    * update glide deps to include logrus

    * update new log entries from rebase to use logger instead of log

    * DRY up error messages

    * prevent API from registering same cluster multiple times

    * rename and return only bool for existing CNSI endpoint check function

    * throw a regular Error instead of a Fatal if VCS Clients can't be parsed

    * List VCS clients endpoint

    * Using clientNotFound template in handleVCSAuth

    * Use logger instead of log

    * Refactor the use of inline markup to templates

    * Copt templates to container; fix file paths

    * fix logger call

    * Update the template names for clarity

    * Fixed logger statements

    * Initial commit

    Initial commit to get etcd stood up in a cluster

    * Finalize initial version of the init script & Dockerfile

    * Clean up and document init script

    * Convert LONGGGG command to multiline

    * Rename the Dockerfile

    * Fix paths

    * Rename folder

    * Rename refs to etcd folder

    * create PGStore mock

    * update tests to use mocked db returned from setupHTTPTest()

    * drop logging from mocks, make sure StoreSession.Options is initialized in mock

    * add SessionStorer interface

    * Expose pgsql EncryptToken function so we can use it in our tests

    * use insertErr instead of err

    * expand from 3-5 instances

    * Remove ENV VAR based approach

    * TEAMFOUR-541 Implement stolon for Postgres HA

    This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

    - cut over to use stolon proxy instead of single user Postgres
    - DRY up params in SDL
    - remove ENV VARs from postflight Dockerfile
    - DRY up ENV VARs in the postflight script
    - rename the stratos user/pwd to stackato
    - update the README
    - tighten up connection string
    - override the default stolon startup script with mechanics necessary for HCP.
    - provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
    - move the etcd initial cluster def into SDL
    - add reconfig check
    - move several env vars over to SDL

    * TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

    * Remove debug info

    * Fixed api prefix

    * Address feedback from Chris

    * TEAMFOUR-1044 - Added endpoint to validate HCF credentials

    * drop sensitive DB config data from logs

    * update vcs.go to send logs to flight recorder

    * HSC-1040: Move versions api so that it does not require auth

    * Support proxy for Noaa consumer

    * HSC-1093: Fix JSON parse error

    * add skip_ssl_validation to CNSI records

    * use skip_ssl_validation flag to pick which http client to use for requests

    * store VCS tokens in the db for reuse

    * Refresh token on verifySession

    * HSC-1097

    * Set Session expiry time to 20 minutes
    * Correctly enable the cleanup tick in pgstore

    * Reordered time

    * s/vcs_user_id/user_guid

    * check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

    * Extend the expires_on of the session after verifySession is called

    * Change distro from debian to ubuntu

    * HSC-1097 - expose expiry time to clients

    * HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

    * Revert etcd containers to debian jessie

    * Update the logger command usage

    Update logger command to use:
    - FLIGHT_RECORDER_HOST
    - FLIGHT_RECORDER_PORT
    - -u to overcome issue with the version of logger that ships with trusty
    src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

    * Specify the full hostname

    * Put this config file back

    * Address review feedback

    * Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

    * Align field [trivial]

    * Removed unused code

    * Don't log DB username password. Forward exit code but still popd

    * Let's return 503 error when the db is not available

    * HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

    - added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
    - fixed a few lint errors

    * HSC-1134 Secure our cookies

    Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

    * Also return 503 in admin middleware

    * HSC-1141 Ensure DB password is set for both install & upgrade

    The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

    * Changed approach to set NO_PROXY to reduce risk

    * Ensure all etcd host names are added to the NO_PROXY

    * Tweak if statement & remove cruft

    * Removed unused environment variable

    * Do not forward the Connection header to HCF

    * Add HCP CA to the OS CA certificate store (#124)

    * Add HCP CA to the OS CA certificate store

    * Added new line

    * Added new line

    * Extracted len(clientData) as variable [trivial]

    * Use the correct global http client in all vcs requests

    * Oops, pass the pointer to client, not the value

    * Return on error or else panic!

    * Initial changes to embed version in exe

    - Remove use of CONSOLE_VERSION
    - Add a new var to the interface for console version
    - Pull version in within main.go
    - Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

    * Finish up the version logic update

    * Remove the use of the ‘Secure’ option for now

    * Added a Jira to cover this

    * HSC-1034 - Check VCS token is valid on OAuth (#125)

    * Check VCS token is valid on OAuth

    * Moved response.status read after error check to avoid panic

    * Fixed HSC-1166

    * HSC-1042 Log all stolon logs to FlightRecorder

    * Revert back to the use of ENTRYPOINT

    As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

    * Update user

    * Fix incorrect (and missing) transport timeouts (#123)

    * Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

    * Removed unused select blocks

    * Reindent portal_config after merging master

    * Work around certain browsers sending back an empty cookie after logout

    * Renamed function to removeEmptyCookie

    * Better fix using regex

    * Also moved HttpOnly option into the sessionStore defaults instead of
    in Save

    * Remove redundant call to SetCookie as this is covered by clearSession

    * Drop cookies from request in login

    * Will separate secure cookie into another PR

    * Secure our cookie to only be sent over HTTPS (#131)

    * Detect error when the DB does not have an entry for a valid session cookie id (#133)

    * Refactor to remove stolon, etcd and use postgres alone

    * Enable migration of the database from stolon HA to single instance

    - Update the postfllight job container to use postgres 9.4
    - refactor/simplify the RUN statements to reduce layers in the db container
    - Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

    * HSC-1250 Containers need to include Third Party license text files

    * Typo

    * Update LICENSE file location

    * Fix for error logic to check for db and assume session issue otherwise

    * Default to returning 401, only return 503 when we get dial type errors

    * Trim whitespaces from VCS_CLIENTS param values (#135)

    * 1017 refactor unit tests (#104)

    * factor out SQL statements

    * return errors instead of ok

    * DRY up the queries, arguments, and expected rows

    * er -> err [trivial]

    * make sure verifySession() always returns HTTP Errors, fix panicky tests

    * factor out SQL statements

    * return errors instead of ok

    * DRY up the queries, arguments, and expected rows

    * fix up a few more tests

    * update calls to initializeHTTPClients and pp.doRequest to match new function signatures

    * Implement Goconvey (BDD) DSL (#140)

    * factor out SQL statements

    * DRY up the queries, arguments, and expected rows

    * Initial effort with  the goconvey DSL

    * fixups

    * clean up these tests

    * refactor multiple funcs into one big one

    * Further refactor, DRY up these tests

    * Edge cases, more DRYing things up (85% coverage)

    * Need to call the correct method - I’m an idiot!

    * Add goose db version tests

    * Refactor datastore

    * Refactor to dry up encrypt/decrypt

    - Refactor to dry up encrypt/decrypt
    - fix up lint errors

    * Fix several annoying lint errors

    * Further test development, slight refactoring of ReadKey metyhod name

    * Skip unnecessary backup/restore to speed up upgrades

    * HSC-1185 - detect SSL verification problems

    * HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

    * Send pings every 27s

    Protect against very aggressive proxies by sending pings more frequently

    * HSC-1276 - close the connection if we miss a pong

    * Comment: ping -> pong

    * No ;

    * Bring docker registry, image name up to date (#137)

    * Detect a wider range of SSL errors

    * HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

    * HSC-1292 - Faster deployment of Portal Proxy in dev environments

    * Optimised Goose file

    * HSC-1310 - Removed Dockerfile.goose.base (#146)

    This has migrated to stratos-deploy

    * Migrate Console to use GitHub/BitBucket Personal Access Tokens

    * Return empty array instead of JSON null in list calls when the list is empty

    * Check token scopes and report to the UI

    * On upgrade, automatically migrate VCS from connected Code Engines

    * Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

    * Removed reference to old git oauth flow templates

    * Remove bad sudo

    * Install missing lsb-release

    * Pin to earlier Postgres image

    * Fix volume name in middleware.go

    * Fix volume name in migrate-vcs.go

    * Wait for upgrade to complete before migrating VCSes

    * typo

    * Relay underlying message from internal method

    * Allow deleting a VCS (#153)

    * Allow deleting a VCS

    * Fixed comment

    * Detect that we failed to delete a VCS and return the correct status code (#154)

    * When SSl errors occur, feed back detail to the caller

    * More concise error msg

    * Small update to README to cause new git tag for 4.1

    * Update README to get new hash

    * Support for HSM endpoints (#157)

    * Support for HSM endpoints

    * Remove commented out code as per Julein's review

    * CF Firehose support (#160)

    * Firehose support WIP

    * Ensure each user gets the full Firehose stream even if they share credentials

    * Refactor common code between app stream and firehose

    * Reordered funcs

    * Further polishing

    * Tidy ups and tune down logging

    * Refactor common code between firehose and app streams

    * Renamed file to represent enhanced responsibilities

    * Fix Portal Proxy tests and convert them to GoConvey (#162)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Let's not parse strings a byte at a time

    * Tests for token storage/retrieval (#163)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Added tests for CNSI/UAA Token storage/retrieval

    * Added for VCS Tokens

    * Fixed typos

    * Added additional tests to reach 80%+ coverage (#164)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Update README.md

    * Added tests for CNSI/UAA Token storage/retrieval

    * Added for VCS Tokens

    * Fixed typos

    * Added additional tests to reach 80%+ coverage

    * Initial k8s work

    * Updates to logging and configuration

    * Fix for for more log statements

    * Removed unsused HCP* config properties

    * WIP SQLite support

    * Added support for SQLite database backend

    * Remove files not needed

    * Update vendor folder

    * Add support for deploying as a Cloud Foundry application

    * Remove manifest file

    * Addressed PR issues and fixed unit tests

    * Fixes

    * Add extra metadata to the stackatoinfo call for Cloud Foundry

    * Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

    * SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

    * Params MUST be in order - can't use indices with sqlite

    * Add check to make sure at least 1 row gets updated

    * Update README.md

    * Omit cloud foundry metadata when not applicable

    * Fixed unit test

    * Add portal-proxy concourse Dockerfile (#173)

    * Remove comment in test code

    * Change go path default

    * Remove HPE terms. Rename cookie

    * Test commit

    * Fix unit tests

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Optimised Postflight Job (#174)

    * Optimised Postflight Job

    * Fix unit tests

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Fix unit tests (#175)

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Missed a couple

    * Tidy up glide dependency management (#177)

    * Cleaned up glide.yaml

    * Update build script to run glide

    * Updated glide files

    * Add glide to concourse image for unit tests

    * Updated glide.lock file

    * Add openssl package to builder

    * Downgrade sqlmock-go

    * Add vendor to gitignore and downgrade sqlmock-go

    * Componentise proxy (#179)

    * Initial refactor

    * WIP

    * Get websocket/firehose working

    * Moving stuff around to write build scripts

    * Moved dockerfiles to be top level

    * renamed components to src

    * plugin load mechanism

    * fixed imports

    * plugin improvements

    * Gulp build mechanism [WIP]

    * Updated Gulp build files

    * Fixed lint issues

    * Fixed further lint issues

    * Updated Portal Proxy builder image

    * Updated load plugin mechanism

    * Dedup vendor before building plugins/core

    * Changes to interfaces

    * Updated GeneralPlugin interface

    * CloudFoundry Hosting plugin

    * Core changes

    * Moved portal proxy config definition

    * minor fixes

    * Final fixes to the CF Hosting plugin

    * Moved code around to reflect stratos-ui structure

    * Update build_portal_proxy.sh

    * Delete `build.sh`

    * remove core & misc changes

    * build updates

    * Update plugin names

    * Update build_portal_proxy.sh

    * Update portal-proxy unit tests

    * Debugging concourse tests

    * minor updates

    * Rename `EndpointSpecification` to `EndpointPlugin`

    * Renamed Dockerfile.dev

    * renamed backend Dockerfile

    * Fix lint issue

    * Rename backend gulp tasks

    * Renamed Dockerfiles

    * updated gulpfile for funnsies

    * remove hosting plugin

commit 1e765c2
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 14:12:27 2017 +0100

    gate check

commit 5c0c89c
Author: Richard Cox <richard.cox@suse.com>
Date:   Thu Jun 1 10:35:22 2017 +0100

    Updated class name app --> console

commit b6c6021
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 16:15:00 2017 +0100

    e2e fix

commit b2c765a
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 15:49:45 2017 +0100

    Remove old company name

commit 6f03e32
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 15:33:47 2017 +0100

    Removed references to hce
    Includes removal of code to hide/remove the 'hce' service previously
    associated with a hcf applicaiton with a hce pipeline.
    If application pipelines are included again it'll be a fresh implementation

commit 6b4d47d
Merge: 7f90d7e 2e01010
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 14:27:04 2017 +0100

    Merge branch 'suse' into remove-old-refs

commit 7f90d7e
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 14:07:38 2017 +0100

    Removed references to HPE

commit 97f6427
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 12:02:02 2017 +0100

    Remove references to stackato

commit 787eb9b
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 10:49:46 2017 +0100

    Tweak readme

commit 82f751d
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Sat May 27 18:38:20 2017 +0100

    gate check

commit c9cb6a2
Merge: bac7625 05cb232
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 17:35:27 2017 +0100

    Merge branch 'suse' into remove-helion-refs

commit bac7625
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 17:31:19 2017 +0100

    Remove references to 'helion'
    - Three remaining instances, two in README and one in nginx/license.txt
    - In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

commit c43edb9
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 16:58:09 2017 +0100

    Rename module helion.framework to app.framework
richard-cox pushed a commit that referenced this pull request Jun 1, 2017
* Fixed translation typos

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check
richard-cox pushed a commit that referenced this pull request Jun 1, 2017
#1061)

* Move brand scss into src file so that it is watched for changes. Small branding updates.

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check
nwmac pushed a commit that referenced this pull request Jun 1, 2017
* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Remove references to hcf (does not cover hcf cnsi_type)

* Undo endpoints.hcf --> endpoints.cf (object comes from response from backend)

* Fix failing e2e tests

* CI bump

* Fix failing e2e

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check

* CI bump
nwmac pushed a commit that referenced this pull request Jun 6, 2017
commit 5dad190
Merge: 3b13b8e 044208f
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 15:06:44 2017 +0100

    Merge remote-tracking branch 'origin/suse' into remove-old-refs

commit 3b13b8e
Author: Neil MacDougall <nwmac@users.noreply.github.com>
Date:   Thu Jun 1 14:55:30 2017 +0100

    gate check

commit 044208f
Author: Irfan Habib <irfan.habib@suse.com>
Date:   Thu Jun 1 14:53:19 2017 +0100

    Merge Portal Proxy (#1059)

    * update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

    * drop unneeded headers var

    * update glide deps to include logrus

    * update new log entries from rebase to use logger instead of log

    * DRY up error messages

    * prevent API from registering same cluster multiple times

    * rename and return only bool for existing CNSI endpoint check function

    * throw a regular Error instead of a Fatal if VCS Clients can't be parsed

    * List VCS clients endpoint

    * Using clientNotFound template in handleVCSAuth

    * Use logger instead of log

    * Refactor the use of inline markup to templates

    * Copt templates to container; fix file paths

    * fix logger call

    * Update the template names for clarity

    * Fixed logger statements

    * Initial commit

    Initial commit to get etcd stood up in a cluster

    * Finalize initial version of the init script & Dockerfile

    * Clean up and document init script

    * Convert LONGGGG command to multiline

    * Rename the Dockerfile

    * Fix paths

    * Rename folder

    * Rename refs to etcd folder

    * create PGStore mock

    * update tests to use mocked db returned from setupHTTPTest()

    * drop logging from mocks, make sure StoreSession.Options is initialized in mock

    * add SessionStorer interface

    * Expose pgsql EncryptToken function so we can use it in our tests

    * use insertErr instead of err

    * expand from 3-5 instances

    * Remove ENV VAR based approach

    * TEAMFOUR-541 Implement stolon for Postgres HA

    This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

    - cut over to use stolon proxy instead of single user Postgres
    - DRY up params in SDL
    - remove ENV VARs from postflight Dockerfile
    - DRY up ENV VARs in the postflight script
    - rename the stratos user/pwd to stackato
    - update the README
    - tighten up connection string
    - override the default stolon startup script with mechanics necessary for HCP.
    - provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
    - move the etcd initial cluster def into SDL
    - add reconfig check
    - move several env vars over to SDL

    * TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

    * Remove debug info

    * Fixed api prefix

    * Address feedback from Chris

    * TEAMFOUR-1044 - Added endpoint to validate HCF credentials

    * drop sensitive DB config data from logs

    * update vcs.go to send logs to flight recorder

    * HSC-1040: Move versions api so that it does not require auth

    * Support proxy for Noaa consumer

    * HSC-1093: Fix JSON parse error

    * add skip_ssl_validation to CNSI records

    * use skip_ssl_validation flag to pick which http client to use for requests

    * store VCS tokens in the db for reuse

    * Refresh token on verifySession

    * HSC-1097

    * Set Session expiry time to 20 minutes
    * Correctly enable the cleanup tick in pgstore

    * Reordered time

    * s/vcs_user_id/user_guid

    * check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

    * Extend the expires_on of the session after verifySession is called

    * Change distro from debian to ubuntu

    * HSC-1097 - expose expiry time to clients

    * HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

    * Revert etcd containers to debian jessie

    * Update the logger command usage

    Update logger command to use:
    - FLIGHT_RECORDER_HOST
    - FLIGHT_RECORDER_PORT
    - -u to overcome issue with the version of logger that ships with trusty
    src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

    * Specify the full hostname

    * Put this config file back

    * Address review feedback

    * Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

    * Align field [trivial]

    * Removed unused code

    * Don't log DB username password. Forward exit code but still popd

    * Let's return 503 error when the db is not available

    * HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

    - added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
    - fixed a few lint errors

    * HSC-1134 Secure our cookies

    Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

    * Also return 503 in admin middleware

    * HSC-1141 Ensure DB password is set for both install & upgrade

    The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

    * Changed approach to set NO_PROXY to reduce risk

    * Ensure all etcd host names are added to the NO_PROXY

    * Tweak if statement & remove cruft

    * Removed unused environment variable

    * Do not forward the Connection header to HCF

    * Add HCP CA to the OS CA certificate store (#124)

    * Add HCP CA to the OS CA certificate store

    * Added new line

    * Added new line

    * Extracted len(clientData) as variable [trivial]

    * Use the correct global http client in all vcs requests

    * Oops, pass the pointer to client, not the value

    * Return on error or else panic!

    * Initial changes to embed version in exe

    - Remove use of CONSOLE_VERSION
    - Add a new var to the interface for console version
    - Pull version in within main.go
    - Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

    * Finish up the version logic update

    * Remove the use of the ‘Secure’ option for now

    * Added a Jira to cover this

    * HSC-1034 - Check VCS token is valid on OAuth (#125)

    * Check VCS token is valid on OAuth

    * Moved response.status read after error check to avoid panic

    * Fixed HSC-1166

    * HSC-1042 Log all stolon logs to FlightRecorder

    * Revert back to the use of ENTRYPOINT

    As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

    * Update user

    * Fix incorrect (and missing) transport timeouts (#123)

    * Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

    * Removed unused select blocks

    * Reindent portal_config after merging master

    * Work around certain browsers sending back an empty cookie after logout

    * Renamed function to removeEmptyCookie

    * Better fix using regex

    * Also moved HttpOnly option into the sessionStore defaults instead of
    in Save

    * Remove redundant call to SetCookie as this is covered by clearSession

    * Drop cookies from request in login

    * Will separate secure cookie into another PR

    * Secure our cookie to only be sent over HTTPS (#131)

    * Detect error when the DB does not have an entry for a valid session cookie id (#133)

    * Refactor to remove stolon, etcd and use postgres alone

    * Enable migration of the database from stolon HA to single instance

    - Update the postfllight job container to use postgres 9.4
    - refactor/simplify the RUN statements to reduce layers in the db container
    - Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

    * HSC-1250 Containers need to include Third Party license text files

    * Typo

    * Update LICENSE file location

    * Fix for error logic to check for db and assume session issue otherwise

    * Default to returning 401, only return 503 when we get dial type errors

    * Trim whitespaces from VCS_CLIENTS param values (#135)

    * 1017 refactor unit tests (#104)

    * factor out SQL statements

    * return errors instead of ok

    * DRY up the queries, arguments, and expected rows

    * er -> err [trivial]

    * make sure verifySession() always returns HTTP Errors, fix panicky tests

    * factor out SQL statements

    * return errors instead of ok

    * DRY up the queries, arguments, and expected rows

    * fix up a few more tests

    * update calls to initializeHTTPClients and pp.doRequest to match new function signatures

    * Implement Goconvey (BDD) DSL (#140)

    * factor out SQL statements

    * DRY up the queries, arguments, and expected rows

    * Initial effort with  the goconvey DSL

    * fixups

    * clean up these tests

    * refactor multiple funcs into one big one

    * Further refactor, DRY up these tests

    * Edge cases, more DRYing things up (85% coverage)

    * Need to call the correct method - I’m an idiot!

    * Add goose db version tests

    * Refactor datastore

    * Refactor to dry up encrypt/decrypt

    - Refactor to dry up encrypt/decrypt
    - fix up lint errors

    * Fix several annoying lint errors

    * Further test development, slight refactoring of ReadKey metyhod name

    * Skip unnecessary backup/restore to speed up upgrades

    * HSC-1185 - detect SSL verification problems

    * HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

    * Send pings every 27s

    Protect against very aggressive proxies by sending pings more frequently

    * HSC-1276 - close the connection if we miss a pong

    * Comment: ping -> pong

    * No ;

    * Bring docker registry, image name up to date (#137)

    * Detect a wider range of SSL errors

    * HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

    * HSC-1292 - Faster deployment of Portal Proxy in dev environments

    * Optimised Goose file

    * HSC-1310 - Removed Dockerfile.goose.base (#146)

    This has migrated to stratos-deploy

    * Migrate Console to use GitHub/BitBucket Personal Access Tokens

    * Return empty array instead of JSON null in list calls when the list is empty

    * Check token scopes and report to the UI

    * On upgrade, automatically migrate VCS from connected Code Engines

    * Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

    * Removed reference to old git oauth flow templates

    * Remove bad sudo

    * Install missing lsb-release

    * Pin to earlier Postgres image

    * Fix volume name in middleware.go

    * Fix volume name in migrate-vcs.go

    * Wait for upgrade to complete before migrating VCSes

    * typo

    * Relay underlying message from internal method

    * Allow deleting a VCS (#153)

    * Allow deleting a VCS

    * Fixed comment

    * Detect that we failed to delete a VCS and return the correct status code (#154)

    * When SSl errors occur, feed back detail to the caller

    * More concise error msg

    * Small update to README to cause new git tag for 4.1

    * Update README to get new hash

    * Support for HSM endpoints (#157)

    * Support for HSM endpoints

    * Remove commented out code as per Julein's review

    * CF Firehose support (#160)

    * Firehose support WIP

    * Ensure each user gets the full Firehose stream even if they share credentials

    * Refactor common code between app stream and firehose

    * Reordered funcs

    * Further polishing

    * Tidy ups and tune down logging

    * Refactor common code between firehose and app streams

    * Renamed file to represent enhanced responsibilities

    * Fix Portal Proxy tests and convert them to GoConvey (#162)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Let's not parse strings a byte at a time

    * Tests for token storage/retrieval (#163)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Added tests for CNSI/UAA Token storage/retrieval

    * Added for VCS Tokens

    * Fixed typos

    * Added additional tests to reach 80%+ coverage (#164)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Update README.md

    * Added tests for CNSI/UAA Token storage/retrieval

    * Added for VCS Tokens

    * Fixed typos

    * Added additional tests to reach 80%+ coverage

    * Initial k8s work

    * Updates to logging and configuration

    * Fix for for more log statements

    * Removed unsused HCP* config properties

    * WIP SQLite support

    * Added support for SQLite database backend

    * Remove files not needed

    * Update vendor folder

    * Add support for deploying as a Cloud Foundry application

    * Remove manifest file

    * Addressed PR issues and fixed unit tests

    * Fixes

    * Add extra metadata to the stackatoinfo call for Cloud Foundry

    * Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

    * SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

    * Params MUST be in order - can't use indices with sqlite

    * Add check to make sure at least 1 row gets updated

    * Update README.md

    * Omit cloud foundry metadata when not applicable

    * Fixed unit test

    * Add portal-proxy concourse Dockerfile (#173)

    * Remove comment in test code

    * Change go path default

    * Remove HPE terms. Rename cookie

    * Test commit

    * Fix unit tests

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Optimised Postflight Job (#174)

    * Optimised Postflight Job

    * Fix unit tests

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Fix unit tests (#175)

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Missed a couple

    * Tidy up glide dependency management (#177)

    * Cleaned up glide.yaml

    * Update build script to run glide

    * Updated glide files

    * Add glide to concourse image for unit tests

    * Updated glide.lock file

    * Add openssl package to builder

    * Downgrade sqlmock-go

    * Add vendor to gitignore and downgrade sqlmock-go

    * Componentise proxy (#179)

    * Initial refactor

    * WIP

    * Get websocket/firehose working

    * Moving stuff around to write build scripts

    * Moved dockerfiles to be top level

    * renamed components to src

    * plugin load mechanism

    * fixed imports

    * plugin improvements

    * Gulp build mechanism [WIP]

    * Updated Gulp build files

    * Fixed lint issues

    * Fixed further lint issues

    * Updated Portal Proxy builder image

    * Updated load plugin mechanism

    * Dedup vendor before building plugins/core

    * Changes to interfaces

    * Updated GeneralPlugin interface

    * CloudFoundry Hosting plugin

    * Core changes

    * Moved portal proxy config definition

    * minor fixes

    * Final fixes to the CF Hosting plugin

    * Moved code around to reflect stratos-ui structure

    * Update build_portal_proxy.sh

    * Delete `build.sh`

    * remove core & misc changes

    * build updates

    * Update plugin names

    * Update build_portal_proxy.sh

    * Update portal-proxy unit tests

    * Debugging concourse tests

    * minor updates

    * Rename `EndpointSpecification` to `EndpointPlugin`

    * Renamed Dockerfile.dev

    * renamed backend Dockerfile

    * Fix lint issue

    * Rename backend gulp tasks

    * Renamed Dockerfiles

    * updated gulpfile for funnsies

    * remove hosting plugin

commit 1e765c2
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 14:12:27 2017 +0100

    gate check

commit 5c0c89c
Author: Richard Cox <richard.cox@suse.com>
Date:   Thu Jun 1 10:35:22 2017 +0100

    Updated class name app --> console

commit b6c6021
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 16:15:00 2017 +0100

    e2e fix

commit b2c765a
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 15:49:45 2017 +0100

    Remove old company name

commit 6f03e32
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 15:33:47 2017 +0100

    Removed references to hce
    Includes removal of code to hide/remove the 'hce' service previously
    associated with a hcf applicaiton with a hce pipeline.
    If application pipelines are included again it'll be a fresh implementation

commit 6b4d47d
Merge: 7f90d7e 2e01010
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 14:27:04 2017 +0100

    Merge branch 'suse' into remove-old-refs

commit 7f90d7e
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 14:07:38 2017 +0100

    Removed references to HPE

commit 97f6427
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 12:02:02 2017 +0100

    Remove references to stackato

commit 787eb9b
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 10:49:46 2017 +0100

    Tweak readme

commit 82f751d
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Sat May 27 18:38:20 2017 +0100

    gate check

commit c9cb6a2
Merge: bac7625 05cb232
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 17:35:27 2017 +0100

    Merge branch 'suse' into remove-helion-refs

commit bac7625
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 17:31:19 2017 +0100

    Remove references to 'helion'
    - Three remaining instances, two in README and one in nginx/license.txt
    - In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

commit c43edb9
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 16:58:09 2017 +0100

    Rename module helion.framework to app.framework
nwmac added a commit that referenced this pull request Jun 6, 2017
* Fixed translation typos

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check
nwmac added a commit that referenced this pull request Jun 6, 2017
#1061)

* Move brand scss into src file so that it is watched for changes. Small branding updates.

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check
nwmac pushed a commit that referenced this pull request Jun 6, 2017
* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Remove references to hcf (does not cover hcf cnsi_type)

* Undo endpoints.hcf --> endpoints.cf (object comes from response from backend)

* Fix failing e2e tests

* CI bump

* Fix failing e2e

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check

* CI bump
irfanhabib pushed a commit that referenced this pull request Jun 6, 2017
commit 5dad190
Merge: 3b13b8e 044208f
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 15:06:44 2017 +0100

    Merge remote-tracking branch 'origin/suse' into remove-old-refs

commit 3b13b8e
Author: Neil MacDougall <nwmac@users.noreply.github.com>
Date:   Thu Jun 1 14:55:30 2017 +0100

    gate check

commit 044208f
Author: Irfan Habib <irfan.habib@suse.com>
Date:   Thu Jun 1 14:53:19 2017 +0100

    Merge Portal Proxy (#1059)

    * update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

    * drop unneeded headers var

    * update glide deps to include logrus

    * update new log entries from rebase to use logger instead of log

    * DRY up error messages

    * prevent API from registering same cluster multiple times

    * rename and return only bool for existing CNSI endpoint check function

    * throw a regular Error instead of a Fatal if VCS Clients can't be parsed

    * List VCS clients endpoint

    * Using clientNotFound template in handleVCSAuth

    * Use logger instead of log

    * Refactor the use of inline markup to templates

    * Copt templates to container; fix file paths

    * fix logger call

    * Update the template names for clarity

    * Fixed logger statements

    * Initial commit

    Initial commit to get etcd stood up in a cluster

    * Finalize initial version of the init script & Dockerfile

    * Clean up and document init script

    * Convert LONGGGG command to multiline

    * Rename the Dockerfile

    * Fix paths

    * Rename folder

    * Rename refs to etcd folder

    * create PGStore mock

    * update tests to use mocked db returned from setupHTTPTest()

    * drop logging from mocks, make sure StoreSession.Options is initialized in mock

    * add SessionStorer interface

    * Expose pgsql EncryptToken function so we can use it in our tests

    * use insertErr instead of err

    * expand from 3-5 instances

    * Remove ENV VAR based approach

    * TEAMFOUR-541 Implement stolon for Postgres HA

    This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

    - cut over to use stolon proxy instead of single user Postgres
    - DRY up params in SDL
    - remove ENV VARs from postflight Dockerfile
    - DRY up ENV VARs in the postflight script
    - rename the stratos user/pwd to stackato
    - update the README
    - tighten up connection string
    - override the default stolon startup script with mechanics necessary for HCP.
    - provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
    - move the etcd initial cluster def into SDL
    - add reconfig check
    - move several env vars over to SDL

    * TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

    * Remove debug info

    * Fixed api prefix

    * Address feedback from Chris

    * TEAMFOUR-1044 - Added endpoint to validate HCF credentials

    * drop sensitive DB config data from logs

    * update vcs.go to send logs to flight recorder

    * HSC-1040: Move versions api so that it does not require auth

    * Support proxy for Noaa consumer

    * HSC-1093: Fix JSON parse error

    * add skip_ssl_validation to CNSI records

    * use skip_ssl_validation flag to pick which http client to use for requests

    * store VCS tokens in the db for reuse

    * Refresh token on verifySession

    * HSC-1097

    * Set Session expiry time to 20 minutes
    * Correctly enable the cleanup tick in pgstore

    * Reordered time

    * s/vcs_user_id/user_guid

    * check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

    * Extend the expires_on of the session after verifySession is called

    * Change distro from debian to ubuntu

    * HSC-1097 - expose expiry time to clients

    * HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

    * Revert etcd containers to debian jessie

    * Update the logger command usage

    Update logger command to use:
    - FLIGHT_RECORDER_HOST
    - FLIGHT_RECORDER_PORT
    - -u to overcome issue with the version of logger that ships with trusty
    src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

    * Specify the full hostname

    * Put this config file back

    * Address review feedback

    * Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

    * Align field [trivial]

    * Removed unused code

    * Don't log DB username password. Forward exit code but still popd

    * Let's return 503 error when the db is not available

    * HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

    - added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
    - fixed a few lint errors

    * HSC-1134 Secure our cookies

    Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

    * Also return 503 in admin middleware

    * HSC-1141 Ensure DB password is set for both install & upgrade

    The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

    * Changed approach to set NO_PROXY to reduce risk

    * Ensure all etcd host names are added to the NO_PROXY

    * Tweak if statement & remove cruft

    * Removed unused environment variable

    * Do not forward the Connection header to HCF

    * Add HCP CA to the OS CA certificate store (#124)

    * Add HCP CA to the OS CA certificate store

    * Added new line

    * Added new line

    * Extracted len(clientData) as variable [trivial]

    * Use the correct global http client in all vcs requests

    * Oops, pass the pointer to client, not the value

    * Return on error or else panic!

    * Initial changes to embed version in exe

    - Remove use of CONSOLE_VERSION
    - Add a new var to the interface for console version
    - Pull version in within main.go
    - Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

    * Finish up the version logic update

    * Remove the use of the ‘Secure’ option for now

    * Added a Jira to cover this

    * HSC-1034 - Check VCS token is valid on OAuth (#125)

    * Check VCS token is valid on OAuth

    * Moved response.status read after error check to avoid panic

    * Fixed HSC-1166

    * HSC-1042 Log all stolon logs to FlightRecorder

    * Revert back to the use of ENTRYPOINT

    As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

    * Update user

    * Fix incorrect (and missing) transport timeouts (#123)

    * Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

    * Removed unused select blocks

    * Reindent portal_config after merging master

    * Work around certain browsers sending back an empty cookie after logout

    * Renamed function to removeEmptyCookie

    * Better fix using regex

    * Also moved HttpOnly option into the sessionStore defaults instead of
    in Save

    * Remove redundant call to SetCookie as this is covered by clearSession

    * Drop cookies from request in login

    * Will separate secure cookie into another PR

    * Secure our cookie to only be sent over HTTPS (#131)

    * Detect error when the DB does not have an entry for a valid session cookie id (#133)

    * Refactor to remove stolon, etcd and use postgres alone

    * Enable migration of the database from stolon HA to single instance

    - Update the postfllight job container to use postgres 9.4
    - refactor/simplify the RUN statements to reduce layers in the db container
    - Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

    * HSC-1250 Containers need to include Third Party license text files

    * Typo

    * Update LICENSE file location

    * Fix for error logic to check for db and assume session issue otherwise

    * Default to returning 401, only return 503 when we get dial type errors

    * Trim whitespaces from VCS_CLIENTS param values (#135)

    * 1017 refactor unit tests (#104)

    * factor out SQL statements

    * return errors instead of ok

    * DRY up the queries, arguments, and expected rows

    * er -> err [trivial]

    * make sure verifySession() always returns HTTP Errors, fix panicky tests

    * factor out SQL statements

    * return errors instead of ok

    * DRY up the queries, arguments, and expected rows

    * fix up a few more tests

    * update calls to initializeHTTPClients and pp.doRequest to match new function signatures

    * Implement Goconvey (BDD) DSL (#140)

    * factor out SQL statements

    * DRY up the queries, arguments, and expected rows

    * Initial effort with  the goconvey DSL

    * fixups

    * clean up these tests

    * refactor multiple funcs into one big one

    * Further refactor, DRY up these tests

    * Edge cases, more DRYing things up (85% coverage)

    * Need to call the correct method - I’m an idiot!

    * Add goose db version tests

    * Refactor datastore

    * Refactor to dry up encrypt/decrypt

    - Refactor to dry up encrypt/decrypt
    - fix up lint errors

    * Fix several annoying lint errors

    * Further test development, slight refactoring of ReadKey metyhod name

    * Skip unnecessary backup/restore to speed up upgrades

    * HSC-1185 - detect SSL verification problems

    * HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

    * Send pings every 27s

    Protect against very aggressive proxies by sending pings more frequently

    * HSC-1276 - close the connection if we miss a pong

    * Comment: ping -> pong

    * No ;

    * Bring docker registry, image name up to date (#137)

    * Detect a wider range of SSL errors

    * HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

    * HSC-1292 - Faster deployment of Portal Proxy in dev environments

    * Optimised Goose file

    * HSC-1310 - Removed Dockerfile.goose.base (#146)

    This has migrated to stratos-deploy

    * Migrate Console to use GitHub/BitBucket Personal Access Tokens

    * Return empty array instead of JSON null in list calls when the list is empty

    * Check token scopes and report to the UI

    * On upgrade, automatically migrate VCS from connected Code Engines

    * Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

    * Removed reference to old git oauth flow templates

    * Remove bad sudo

    * Install missing lsb-release

    * Pin to earlier Postgres image

    * Fix volume name in middleware.go

    * Fix volume name in migrate-vcs.go

    * Wait for upgrade to complete before migrating VCSes

    * typo

    * Relay underlying message from internal method

    * Allow deleting a VCS (#153)

    * Allow deleting a VCS

    * Fixed comment

    * Detect that we failed to delete a VCS and return the correct status code (#154)

    * When SSl errors occur, feed back detail to the caller

    * More concise error msg

    * Small update to README to cause new git tag for 4.1

    * Update README to get new hash

    * Support for HSM endpoints (#157)

    * Support for HSM endpoints

    * Remove commented out code as per Julein's review

    * CF Firehose support (#160)

    * Firehose support WIP

    * Ensure each user gets the full Firehose stream even if they share credentials

    * Refactor common code between app stream and firehose

    * Reordered funcs

    * Further polishing

    * Tidy ups and tune down logging

    * Refactor common code between firehose and app streams

    * Renamed file to represent enhanced responsibilities

    * Fix Portal Proxy tests and convert them to GoConvey (#162)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Let's not parse strings a byte at a time

    * Tests for token storage/retrieval (#163)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Added tests for CNSI/UAA Token storage/retrieval

    * Added for VCS Tokens

    * Fixed typos

    * Added additional tests to reach 80%+ coverage (#164)

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed version_ info and pgsql_vcs_token tests

    * Fixed passthrough tests

    * Fixed passthrough & auth_tests tests

    * Migrated OAuth requests tests to GoConvey

    * Update README.md

    * Added tests for CNSI/UAA Token storage/retrieval

    * Added for VCS Tokens

    * Fixed typos

    * Added additional tests to reach 80%+ coverage

    * Initial k8s work

    * Updates to logging and configuration

    * Fix for for more log statements

    * Removed unsused HCP* config properties

    * WIP SQLite support

    * Added support for SQLite database backend

    * Remove files not needed

    * Update vendor folder

    * Add support for deploying as a Cloud Foundry application

    * Remove manifest file

    * Addressed PR issues and fixed unit tests

    * Fixes

    * Add extra metadata to the stackatoinfo call for Cloud Foundry

    * Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

    * SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

    * Params MUST be in order - can't use indices with sqlite

    * Add check to make sure at least 1 row gets updated

    * Update README.md

    * Omit cloud foundry metadata when not applicable

    * Fixed unit test

    * Add portal-proxy concourse Dockerfile (#173)

    * Remove comment in test code

    * Change go path default

    * Remove HPE terms. Rename cookie

    * Test commit

    * Fix unit tests

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Optimised Postflight Job (#174)

    * Optimised Postflight Job

    * Fix unit tests

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Fix unit tests (#175)

    Remove `cloud-foundry` property because
    this is ommitted during marshalling if it empty

    * Missed a couple

    * Tidy up glide dependency management (#177)

    * Cleaned up glide.yaml

    * Update build script to run glide

    * Updated glide files

    * Add glide to concourse image for unit tests

    * Updated glide.lock file

    * Add openssl package to builder

    * Downgrade sqlmock-go

    * Add vendor to gitignore and downgrade sqlmock-go

    * Componentise proxy (#179)

    * Initial refactor

    * WIP

    * Get websocket/firehose working

    * Moving stuff around to write build scripts

    * Moved dockerfiles to be top level

    * renamed components to src

    * plugin load mechanism

    * fixed imports

    * plugin improvements

    * Gulp build mechanism [WIP]

    * Updated Gulp build files

    * Fixed lint issues

    * Fixed further lint issues

    * Updated Portal Proxy builder image

    * Updated load plugin mechanism

    * Dedup vendor before building plugins/core

    * Changes to interfaces

    * Updated GeneralPlugin interface

    * CloudFoundry Hosting plugin

    * Core changes

    * Moved portal proxy config definition

    * minor fixes

    * Final fixes to the CF Hosting plugin

    * Moved code around to reflect stratos-ui structure

    * Update build_portal_proxy.sh

    * Delete `build.sh`

    * remove core & misc changes

    * build updates

    * Update plugin names

    * Update build_portal_proxy.sh

    * Update portal-proxy unit tests

    * Debugging concourse tests

    * minor updates

    * Rename `EndpointSpecification` to `EndpointPlugin`

    * Renamed Dockerfile.dev

    * renamed backend Dockerfile

    * Fix lint issue

    * Rename backend gulp tasks

    * Renamed Dockerfiles

    * updated gulpfile for funnsies

    * remove hosting plugin

commit 1e765c2
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 14:12:27 2017 +0100

    gate check

commit 5c0c89c
Author: Richard Cox <richard.cox@suse.com>
Date:   Thu Jun 1 10:35:22 2017 +0100

    Updated class name app --> console

commit b6c6021
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 16:15:00 2017 +0100

    e2e fix

commit b2c765a
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 15:49:45 2017 +0100

    Remove old company name

commit 6f03e32
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 15:33:47 2017 +0100

    Removed references to hce
    Includes removal of code to hide/remove the 'hce' service previously
    associated with a hcf applicaiton with a hce pipeline.
    If application pipelines are included again it'll be a fresh implementation

commit 6b4d47d
Merge: 7f90d7e 2e01010
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 14:27:04 2017 +0100

    Merge branch 'suse' into remove-old-refs

commit 7f90d7e
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 14:07:38 2017 +0100

    Removed references to HPE

commit 97f6427
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 12:02:02 2017 +0100

    Remove references to stackato

commit 787eb9b
Author: Richard Cox <richard.cox@suse.com>
Date:   Tue May 30 10:49:46 2017 +0100

    Tweak readme

commit 82f751d
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Sat May 27 18:38:20 2017 +0100

    gate check

commit c9cb6a2
Merge: bac7625 05cb232
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 17:35:27 2017 +0100

    Merge branch 'suse' into remove-helion-refs

commit bac7625
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 17:31:19 2017 +0100

    Remove references to 'helion'
    - Three remaining instances, two in README and one in nginx/license.txt
    - In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

commit c43edb9
Author: Richard Cox <richard.cox@suse.com>
Date:   Fri May 26 16:58:09 2017 +0100

    Rename module helion.framework to app.framework
irfanhabib pushed a commit that referenced this pull request Jun 6, 2017
* Fixed translation typos

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check
irfanhabib pushed a commit that referenced this pull request Jun 6, 2017
#1061)

* Move brand scss into src file so that it is watched for changes. Small branding updates.

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check
irfanhabib pushed a commit that referenced this pull request Jun 6, 2017
* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Remove references to hcf (does not cover hcf cnsi_type)

* Undo endpoints.hcf --> endpoints.cf (object comes from response from backend)

* Fix failing e2e tests

* CI bump

* Fix failing e2e

* Merge Portal Proxy (#1059)

* update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

* drop unneeded headers var

* update glide deps to include logrus

* update new log entries from rebase to use logger instead of log

* DRY up error messages

* prevent API from registering same cluster multiple times

* rename and return only bool for existing CNSI endpoint check function

* throw a regular Error instead of a Fatal if VCS Clients can't be parsed

* List VCS clients endpoint

* Using clientNotFound template in handleVCSAuth

* Use logger instead of log

* Refactor the use of inline markup to templates

* Copt templates to container; fix file paths

* fix logger call

* Update the template names for clarity

* Fixed logger statements

* Initial commit

Initial commit to get etcd stood up in a cluster

* Finalize initial version of the init script & Dockerfile

* Clean up and document init script

* Convert LONGGGG command to multiline

* Rename the Dockerfile

* Fix paths

* Rename folder

* Rename refs to etcd folder

* create PGStore mock

* update tests to use mocked db returned from setupHTTPTest()

* drop logging from mocks, make sure StoreSession.Options is initialized in mock

* add SessionStorer interface

* Expose pgsql EncryptToken function so we can use it in our tests

* use insertErr instead of err

* expand from 3-5 instances

* Remove ENV VAR based approach

* TEAMFOUR-541 Implement stolon for Postgres HA

This change adds stolon related container assets to the proxy project for the sake of Postgres HA.

- cut over to use stolon proxy instead of single user Postgres
- DRY up params in SDL
- remove ENV VARs from postflight Dockerfile
- DRY up ENV VARs in the postflight script
- rename the stratos user/pwd to stackato
- update the README
- tighten up connection string
- override the default stolon startup script with mechanics necessary for HCP.
- provide an initial cluster config file that directs stolon to elect a leader when multiple masters are in play.
- move the etcd initial cluster def into SDL
- add reconfig check
- move several env vars over to SDL

* TEAMFOUR-1052: Allow the API Host URL to be changed by the UI

* Remove debug info

* Fixed api prefix

* Address feedback from Chris

* TEAMFOUR-1044 - Added endpoint to validate HCF credentials

* drop sensitive DB config data from logs

* update vcs.go to send logs to flight recorder

* HSC-1040: Move versions api so that it does not require auth

* Support proxy for Noaa consumer

* HSC-1093: Fix JSON parse error

* add skip_ssl_validation to CNSI records

* use skip_ssl_validation flag to pick which http client to use for requests

* store VCS tokens in the db for reuse

* Refresh token on verifySession

* HSC-1097

* Set Session expiry time to 20 minutes
* Correctly enable the cleanup tick in pgstore

* Reordered time

* s/vcs_user_id/user_guid

* check skip_ssl_validation flag on HCE endpoints, remove unused param from initializeHttpClients

* Extend the expires_on of the session after verifySession is called

* Change distro from debian to ubuntu

* HSC-1097 - expose expiry time to clients

* HSC-1106: Changes to ensure no_proxy applies to the http URLs that are used

* Revert etcd containers to debian jessie

* Update the logger command usage

Update logger command to use:
- FLIGHT_RECORDER_HOST
- FLIGHT_RECORDER_PORT
- -u to overcome issue with the version of logger that ships with trusty
src: http://serverfault.com/questions/524480/ubuntu-12-04-logger-wont-write-to-remote-syslog

* Specify the full hostname

* Put this config file back

* Address review feedback

* Don't use shadow error when there is no parent error. Added missing SkipTLSVerification

* Align field [trivial]

* Removed unused code

* Don't log DB username password. Forward exit code but still popd

* Let's return 503 error when the db is not available

* HSC-1109 Add SkipSSL bool to each VCS_CLIENT entry

- added an optional bool to the vcs clients dta to allow the admin to indicate whether the Console should skipp SSL to a specific VCS endpoint.
- fixed a few lint errors

* HSC-1134 Secure our cookies

Secure out session cookies with the ‘HttpOnly’ and ‘Secure’ attributes.

* Also return 503 in admin middleware

* HSC-1141 Ensure DB password is set for both install & upgrade

The Stackato DB password is (currently) only getting set for install, not upgrade. This pulls that statement out of the IF clause and sets it always.

* Changed approach to set NO_PROXY to reduce risk

* Ensure all etcd host names are added to the NO_PROXY

* Tweak if statement & remove cruft

* Removed unused environment variable

* Do not forward the Connection header to HCF

* Add HCP CA to the OS CA certificate store (#124)

* Add HCP CA to the OS CA certificate store

* Added new line

* Added new line

* Extracted len(clientData) as variable [trivial]

* Use the correct global http client in all vcs requests

* Oops, pass the pointer to client, not the value

* Return on error or else panic!

* Initial changes to embed version in exe

- Remove use of CONSOLE_VERSION
- Add a new var to the interface for console version
- Pull version in within main.go
- Dockerfile change is WRONG and prob needs changing; don’t think we have access to env vars within Dockefile

* Finish up the version logic update

* Remove the use of the ‘Secure’ option for now

* Added a Jira to cover this

* HSC-1034 - Check VCS token is valid on OAuth (#125)

* Check VCS token is valid on OAuth

* Moved response.status read after error check to avoid panic

* Fixed HSC-1166

* HSC-1042 Log all stolon logs to FlightRecorder

* Revert back to the use of ENTRYPOINT

As Neil corrrectly pointed out, the behavior of CMD vs ENTRYPOINT is different. Given I’m not seeing the logs get sent to FlightRecorder, yet I can do so manually, the likely culprit is that the default stolon ENTRYPOINT is boing run and my CMD is being run afterwards. Oops. This change (hopefully) fixes that.

* Update user

* Fix incorrect (and missing) transport timeouts (#123)

* Correctly configure transport overall timeout. Set a connection timeout. Remove unused kill channel and superfluous timer

* Removed unused select blocks

* Reindent portal_config after merging master

* Work around certain browsers sending back an empty cookie after logout

* Renamed function to removeEmptyCookie

* Better fix using regex

* Also moved HttpOnly option into the sessionStore defaults instead of
in Save

* Remove redundant call to SetCookie as this is covered by clearSession

* Drop cookies from request in login

* Will separate secure cookie into another PR

* Secure our cookie to only be sent over HTTPS (#131)

* Detect error when the DB does not have an entry for a valid session cookie id (#133)

* Refactor to remove stolon, etcd and use postgres alone

* Enable migration of the database from stolon HA to single instance

- Update the postfllight job container to use postgres 9.4
- refactor/simplify the RUN statements to reduce layers in the db container
- Enable the database to be dumped from the stolon cluster and loaded on the single instance of postgres

* HSC-1250 Containers need to include Third Party license text files

* Typo

* Update LICENSE file location

* Fix for error logic to check for db and assume session issue otherwise

* Default to returning 401, only return 503 when we get dial type errors

* Trim whitespaces from VCS_CLIENTS param values (#135)

* 1017 refactor unit tests (#104)

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* er -> err [trivial]

* make sure verifySession() always returns HTTP Errors, fix panicky tests

* factor out SQL statements

* return errors instead of ok

* DRY up the queries, arguments, and expected rows

* fix up a few more tests

* update calls to initializeHTTPClients and pp.doRequest to match new function signatures

* Implement Goconvey (BDD) DSL (#140)

* factor out SQL statements

* DRY up the queries, arguments, and expected rows

* Initial effort with  the goconvey DSL

* fixups

* clean up these tests

* refactor multiple funcs into one big one

* Further refactor, DRY up these tests

* Edge cases, more DRYing things up (85% coverage)

* Need to call the correct method - I’m an idiot!

* Add goose db version tests

* Refactor datastore

* Refactor to dry up encrypt/decrypt

- Refactor to dry up encrypt/decrypt
- fix up lint errors

* Fix several annoying lint errors

* Further test development, slight refactoring of ReadKey metyhod name

* Skip unnecessary backup/restore to speed up upgrades

* HSC-1185 - detect SSL verification problems

* HSC-1276 - send regular WebSocket Ping messages to avoid proxies closing the connection if the app is quiet

* Send pings every 27s

Protect against very aggressive proxies by sending pings more frequently

* HSC-1276 - close the connection if we miss a pong

* Comment: ping -> pong

* No ;

* Bring docker registry, image name up to date (#137)

* Detect a wider range of SSL errors

* HSC-1292 - Faster deployment of Portal Proxy in dev environments (#145)

* HSC-1292 - Faster deployment of Portal Proxy in dev environments

* Optimised Goose file

* HSC-1310 - Removed Dockerfile.goose.base (#146)

This has migrated to stratos-deploy

* Migrate Console to use GitHub/BitBucket Personal Access Tokens

* Return empty array instead of JSON null in list calls when the list is empty

* Check token scopes and report to the UI

* On upgrade, automatically migrate VCS from connected Code Engines

* Update to go1.7. Tidied up Pre/Post flight dockerfiles. Made the world debian-jessie

* Removed reference to old git oauth flow templates

* Remove bad sudo

* Install missing lsb-release

* Pin to earlier Postgres image

* Fix volume name in middleware.go

* Fix volume name in migrate-vcs.go

* Wait for upgrade to complete before migrating VCSes

* typo

* Relay underlying message from internal method

* Allow deleting a VCS (#153)

* Allow deleting a VCS

* Fixed comment

* Detect that we failed to delete a VCS and return the correct status code (#154)

* When SSl errors occur, feed back detail to the caller

* More concise error msg

* Small update to README to cause new git tag for 4.1

* Update README to get new hash

* Support for HSM endpoints (#157)

* Support for HSM endpoints

* Remove commented out code as per Julein's review

* CF Firehose support (#160)

* Firehose support WIP

* Ensure each user gets the full Firehose stream even if they share credentials

* Refactor common code between app stream and firehose

* Reordered funcs

* Further polishing

* Tidy ups and tune down logging

* Refactor common code between firehose and app streams

* Renamed file to represent enhanced responsibilities

* Fix Portal Proxy tests and convert them to GoConvey (#162)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Let's not parse strings a byte at a time

* Tests for token storage/retrieval (#163)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage (#164)

* Fixed version_ info and pgsql_vcs_token tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed version_ info and pgsql_vcs_token tests

* Fixed passthrough tests

* Fixed passthrough & auth_tests tests

* Migrated OAuth requests tests to GoConvey

* Update README.md

* Added tests for CNSI/UAA Token storage/retrieval

* Added for VCS Tokens

* Fixed typos

* Added additional tests to reach 80%+ coverage

* Initial k8s work

* Updates to logging and configuration

* Fix for for more log statements

* Removed unsused HCP* config properties

* WIP SQLite support

* Added support for SQLite database backend

* Remove files not needed

* Update vendor folder

* Add support for deploying as a Cloud Foundry application

* Remove manifest file

* Addressed PR issues and fixed unit tests

* Fixes

* Add extra metadata to the stackatoinfo call for Cloud Foundry

* Rename stackatoInfo, fix verifySession response. Remove a couple of stackato references

* SQLite Fix: Ensure SQL Statements use the right param substituion char and order is always 1,2,3 etc

* Params MUST be in order - can't use indices with sqlite

* Add check to make sure at least 1 row gets updated

* Update README.md

* Omit cloud foundry metadata when not applicable

* Fixed unit test

* Add portal-proxy concourse Dockerfile (#173)

* Remove comment in test code

* Change go path default

* Remove HPE terms. Rename cookie

* Test commit

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Optimised Postflight Job (#174)

* Optimised Postflight Job

* Fix unit tests

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Fix unit tests (#175)

Remove `cloud-foundry` property because
this is ommitted during marshalling if it empty

* Missed a couple

* Tidy up glide dependency management (#177)

* Cleaned up glide.yaml

* Update build script to run glide

* Updated glide files

* Add glide to concourse image for unit tests

* Updated glide.lock file

* Add openssl package to builder

* Downgrade sqlmock-go

* Add vendor to gitignore and downgrade sqlmock-go

* Componentise proxy (#179)

* Initial refactor

* WIP

* Get websocket/firehose working

* Moving stuff around to write build scripts

* Moved dockerfiles to be top level

* renamed components to src

* plugin load mechanism

* fixed imports

* plugin improvements

* Gulp build mechanism [WIP]

* Updated Gulp build files

* Fixed lint issues

* Fixed further lint issues

* Updated Portal Proxy builder image

* Updated load plugin mechanism

* Dedup vendor before building plugins/core

* Changes to interfaces

* Updated GeneralPlugin interface

* CloudFoundry Hosting plugin

* Core changes

* Moved portal proxy config definition

* minor fixes

* Final fixes to the CF Hosting plugin

* Moved code around to reflect stratos-ui structure

* Update build_portal_proxy.sh

* Delete `build.sh`

* remove core & misc changes

* build updates

* Update plugin names

* Update build_portal_proxy.sh

* Update portal-proxy unit tests

* Debugging concourse tests

* minor updates

* Rename `EndpointSpecification` to `EndpointPlugin`

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Updated class name app --> console

* gate check

* gate check

* CI bump
nwmac pushed a commit that referenced this pull request Jun 7, 2017
* HSC-1446 - Delivery Pipeline creation E2E (#945)

* wip

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Added tests for invalid token

* Cleanup stale errors when rebuilding endpoint entries (#949)

* HSC-1466: Add more tests for some of the framework utils/widgets (#946)

* Fix broken unit tests

* HSC-1419 - VCS Token Management E2E tests (#948)

* wip

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Added tests for invalid token

* Removed duplicate async-dialog-view

* GitHub Token Management E2E tests

* Fixed lint issues

* Added test to check duplicate tokens cant be added

* HSC-1467: Get app wall test that use mock data working (and add more) (#947)

* HSC-1467: Get app wall test that use mock data working (and add more)

* Check that CLI Commands displays and we can copy to clipboard

* HSC-1468: Use the service name to find the service to bind (#950)

* Ensure orgs without spaces don't cause ugly scroll bar when the drop-down opens

* Correctly match updated APP prefix in new HCF. Reduced ansi colorizer complexity (#951)

* Delivery Pipeline E2E: enable concurrent runs (#952)

* HSC-1474 - Remove typo in `deleteAppIfExisting` (#954)

* Fix leakage of apps

* Update cf-model.po.js

* HSC-1473: More unit and E2E tests to improve coverage (#953)

* HSC-1477 - E2E tests: Instrument VCS api

* Polish e2e tests (#957)

* Remove superfluous wait. Close notifications to avoid toasts receiving clicks

* Check specific missing scope error is shown. Close more toasts

* HSC-1417 - Fix and enable empty dashboard tests

* HSC-1469 - E2E tests: Add tests for Delivery Pipeline summary page (#955)

* Delivery Pipeline summary tests

* Fix leakage of apps

* Delivery Pipeline summary page E2E tests

* Fixed actions-menu click

* HSC-1469 - E2E tests: Add tests for Delivery Pipeline summary page

* remove debug file

* Delivery Pipeline E2E tests: Allow concurrent tests to run

* minor refactor

* Delivery Pipeline E2E tests: Allow concurrent tests to run

* Fix test

* HSC-1472: Handle new HCE project based permissions (#956)

* HSC-1472: Handle new HCE project based permissions
Basic handling of new hce project permissions
- Do not allow application to be deleted if user does not have project permission
- Display permissions notice on delivery pipeline + logs pages

Note - We may want to refactor delivery-pipeline-status.html in the future,
there's a fair few ng-if conditions in the template

* Fix project role holes
- Delete application button state is updated given changes to project roles while app pages are shown
- Delete application process will now correctly fail and stop progression if..
-- The delete project request fails (user is only a project developer)
-- The request project previously failed due to a 403 (user has no project role)
- Delete pipeline process remains as before

Note - We should look to improve the project developer use case. Need
to check beforehand what roles user has for project.

* HSC-1473: E2E Tests for services and routes checking on CF Dashboard (#959)

* Fix Delivery Pipeline E2E test (#960)

* Disable log stream e2e tests - unreliable

* More unit tests. Fix service e2e test when no services are left. (#963)

* More unit tests. Fix service e2e test when no services are left.

* Update default-image.directive.spec.js

* Fix lint issue

* Remove fdescribe (#966)

* HSC-1486: Fix type - missing space (#964)

* Acknowledge toasts when detaching/deleting services (#965)

* Refresh routes and service instances (#967)

* Refresh routes and service instances when entering a Space. Also pre-sort various arrays to avoid smart-table flicker

* Fallback consistent with smart-table

* Revert "Fallback consistent with smart-table"

This reverts commit 23107a6f56ac1e13a746804f5829e9f342ff5174.

* Fixed comment

* Correctly handle service instances when coming from app-wall

* Fix test data

* Let's not forget to update from cache

* Fix stray reference to 'HCF' (#974)

* Add a 'no users' style message to base cluster users tab (#973)

- We fetch roles via orgs. If the user is not an org_user of any org they
will see no users.
- Add a simple message to avoid showing an ugly empty table
- Not needed at space level (only org_user is needed to view roles)

* Improve github integration in trigger build slide in (#971)

- Add link to github user
- Add github user icon, if present
- Add link to commit

* Fix vertical scroll bar in trigger build slide in (#976)

* Change copyright year to 2017

* Helion Service Manager Integration (view only) (#975)

* WIP: HSM Support

* Small improvements. Tidy ups. Lint fixes. Unit tests now run okay.

* Many improvements and refinements

* Added configure instance support. Refactor cerate instance dialog. Tidy ups.

* Added upgrade support

* Minor improvements

* Allow only admins to see HSM endpoints

* Tweaks

* Fix broken redirect with a single HSM

* Allow components to be shown or hidden

* Don't show inline upgrade messages since they are distracting

* Apply update to text and ensure write operations are turned off by default.

* Updated icon

* Tweaks + changes
- Now rely on the base state fetch of instances and services. Leaf states
will refer to these when applicable. The instance will still be updated on
poll, covering both local and instances array entries. The instances array
will also manually be updated on create, delete and reconfigure.
- Instance and service arrays are now pre-sorted to avoid table sort
flibble
- Instances table state icons now match that of the instance detail icon
(except their larger table located versions)
- Handle create instance edge cases. Also improve error messages
when creating a service.
- Ensure secret params and empty string defaults are shown in the create
instance param list
- Show secret params as password input boxes
- Always show the 'delete instance' option if not deleting/deleted. There's
some edge cases where we can get stuck in 'creating'/interesting state
- Changes some anchors to use ui-sref
- Removed some comments + unrequired code

* Small translation changes, comments + a catch around readAsText

* Address Richard's review comments

* Some extra fixes
- Fixed alignment of first letter in instance state popover
- Fixed HSM nav icon visibility for unregister
- Make an info call for HSM service instances in user service instance list
- Fixed a few Helion Service Manager references
- For the HSM details screen show just 'Service Manager' for the name. This
aligns how we handle the same breadcrumb/name in the CF endpoints pages
 (HCF/Clusters - HSM/Service Manager)
- Fixed an issue where disconnected a HSM would not change the total upgrade
number (if there are two registered)

* Fix pause when deleting endpoint + table blibble on load
- Don't wait for updated user service instance list on removal of endpoint (revert from previous commit)
- Fixed lint error
- Sort table without reverse (show cloud foundry first). This avoids
having to hack st-table to sort by reverse 'type' then normal 'name'
- Fix position of 'register +' link in register slideout when screen is thin

* Fixed lint error and wizard nav bar button issue. Shortened nav bar HSM name

* Firehose (#977)

* Firehose support WIP

* Full window support

* Tidy ups, layout rework started [WIP]

* Adjust firehose formatting. Remove console log

* Improve Firehose treatment

* @WIP@

* minor tweaks

* Many bug fixes. Allow searching and highlighting seamlessly across Escape Sequences

* Support regex matches

* Reduce code complexity

* Dynamically disable scroll in console-view for better log-viewer performance

* Only show the Firehose for CF admins

* Make regex bars stick around the text.

Also remove less useful options

* Revert name change

* Add directive to link contenteditable to ng-model

* Fix unit tests

* Text filter fixes: Prevent rich text paste. Prevent wrapping. Works in IE

* lint

* Fix e2e tests

* Avoid flicker inendpoints dashboard

* Fix sorting by pubic location not working (#978)

* Fix polling and is_latest bugs (#979)

* Expose Cloud Foundry running in Vagrant

Achieved using custom a nodejs app in combination with HA proxy

* Fix erroneous link error

* Allow e2e test to be skipped when required services are not configured (#983)

* Fix OEM so that default brand can be changed easily (#984)

* Allow more e2e tests to run without Code Engine (#986)

* Enable more tests without an HCE

* Fixed lint issues

* Refactored organization-model as a factory (#985)

* Refactored organization-model as a factory

* Ooops

* Update labels for CF and CE for e2e tests

* Minor improvement to list-e2e tests to show how many will be skipped

* HSC-1514: Set log in form method to post to avoid js disable/crash creds leak (#982)

- Bug - Visit log in page, disable js (or js handler crashes), submit log in form. The form is handled like a get and pushes params into url which is visited. This is logged by portal proxy
- Now form is post so get a 404 and no logged creds.
- Also added noscript method to index.html

* HSC-1487 - E2E tests: Capture screenshots for failing tests (#968)

* HSC-1487 - E2E tests: Capture screenshots for failing tests

* Update .gitignore

* Changed folder location for test output

* Fixes to list e2e script (#988)

* HSC-1487 - E2E tests: Capture screenshots for failing tests

* Update .gitignore

* Changed folder location for test output

* Minor tweaks to e2e test list script

* Fixes to list e2e tests script

* Fix lint errors

* Use minify-safe short-hand injection via ng-annotate (#987)

* Refactor UI Framework into src and theme folders (#989)

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Add back in clean:dist for compat with the concourse pipeline

* Use colours relative to $brand-primary (#991)

* Updated colour of green tick in toaster to be suse-primary

* Revert "Updated colour of green tick in toaster to be suse-primary"

This reverts commit 81e055674a6287acf9c94a5e449f57adab9b4152.

* HSC-1437: Tidy up: Remove HELION_UI_FRAMEWORK config setting (#916)

* HSC-1437: Tidy up: Remove HELION_UI_FRAMEWORK config setting

* Removed helion.framework.basePath

* Fix lint error

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Remove erroneoos property

* Updated colour of green tick in toaster to be suse-primary (#993)

* Flatten app source folder and module hierarchy (#992)

* Move tests files out of src folder and flatten src folder structure where appropriate.

* Flatten module and folder structures a little.

* Fix lint issue and move test file

* README change

* README change

* Remove duplicate module names in dependency list

* Fix code coverage not working for e2e tests

* Restructure test folder

* Moved e2e tests under the test folder

* Update README.md

* Fixed path to `provision.sh` due to move of `e2e` into `test`

* I18n (#969)

* i18n

* Fix gulp lint

* Allow i18n strings to reference other strings that are replaces at build time - used for OEM

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Add back in clean:dist for compat with the concourse pipeline

* Update OEM branding for SUSE

* Make breadcrumb translate labels

* Remove erroneous property

* Fixed lint error

* Address PR comments

* Fix PR issues

* Fix translation errors when running e2e tests

* Improve per-processing of i18n files and fix more strings

* Fix line issue and e2e test failures

* Fixed some more strings

* Fix broken code blocks

* Speed up oem target

* Fixed lint issue

* Fix issues

* Fix problem with task that combines unit and e2e test coverage (#995)

* Fix problem with task that combines unit and e2e test coverage

* Small fix

* Ensure that the unit test code uses the ng-annotate pre-processor as well

* Moved coverage-report to ./out
- also changed npm target 'e2e' to use gulp e2e:run instead of running protractor directly

* Revert "Moved coverage-report to ./out"

This reverts commit 9986f24c1f085b00afb6ecd68652020b5568c4e4.

* Move ./coverage-report to ./out (#997)

* Revert "Revert "Moved coverage-report to ./out""

This reverts commit 1f51109498d486243f166930e93ea7a3ec715a14.

* Comment fix to kick off ci

* Remove prototype and inject syntax/styles from src/app/!view (#994)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Fix bad merge

* Remove prototype and inject syntax/styles from src/app/view (#996)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Comment fix

* Trivial change to kick off ci

* Fixed merge issues

* Use custom nginx config when deploying in k8s (#998)

* Move plugin specific code in endpoint dashboard to plugins directories (#999)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Fixed bad merge

* Small change to kick off ci

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Prevent redirection of proxied info requests (#1002)

* Use more identifiable names for apps created by e2e tests (#1004)

* Use more identifiable test app names

* Remove argument as its no longer used

* Fix jsdocs

* Fixed 2 template paths that caused them to always be loaded and not used from the cache (#1005)

* Fixed 2 template paths that caused them to always be loaded and not used from the cache

* Fix failing unit tests

* Fixed app delete + tests (#1003)

* Use more identifiable test app names

* Fixed app delete + tests
- delete of simple (no routes or services) apps now works
- added e2e test for delete of simple/non-simple apps
- fixed delete of stray e2e test app

* oops

* Remove argument as its no longer used

* Fix jsdocs

* Close toasts to avoid chance of congestion

* Updated with new app naming process

* Allow more time before check if app does not exist (subtle way)

* CI

* Update application.po.js

* Move CF specific code to CF plugin (#1000)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Updates following review

* Tweaks to our suse theme (#1006)

* Move node_modules, bower_components and tidy up build (#1007)

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* Removed duplicate node_modules from .gitignore and added check to ensure gulp tasks are not run from the tools folder.

* Fixed bug where brand images were not copied

* Fixes for the examples

* Fixed e2e test + coverage reporting

* HSC-1439: Read version number from package.json (#921)

* HSC-1439: Read version number from package.json

* Read version number from package.json

* Small improvement

* Fixed broken path reference for package.json

* Prevent card titles from flowing over and increasing the height of the card (#1008)

* Improve plugins concept (#1001)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Fixed lint error

* Fix for scss file inclusion from plugins

* Update following review

* Move hce specific code to hce plugin (#1011)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* - Moved code engine app tabs to code engine plugin
- Added generic way to add cf application tabs
- Mangled some other things (TODO)

* Completed app tabs (hide now works as expected) + Moved add-pipeline workflow into ce

* Removed much of the remaining HCE code
- There's stil items that link the application to a hce pipeline but these
are just variables. Without completely breaking the link between the console
 and hce it's tricky to change these.

* Lint + test fixes

* Lint and unit test fixes

* Removed a few more hce references

* e2e fixes, including screenshot report path fix

* Exlude tests for plugins that are not included

* Tidy ups and minor tweaks

* CI change

* Run all plugin unit tests not just those configured to be used at run time

* Fix provisioning script for concourse (#1013)

* Fixed provisioning script for concourse

* Correct path for CI e2e

* Remove OEM_CONFIG - all done via the i18n mechanism now (#1009)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* Delete stray .orig file

* Fixed merge issues

* Addressed issues raised in PR review

* Updates to new app tabs feature (#1015)

* Updates following review
- flipped generic endpoint 'call func' names
- tabs - hide: false
- tabs - localised labels
- tabs - removed 'go' and 'istabactive' + switched to ui-sref
- tabs - add tab entries in individual states and not all together
- tabs -

* Final set of updates
- expanded set of tab functions to include appUpdated (replaces update pipeline shizzle), appDeleting (replaces delete pipeline shizzle) and appDeleted
- fixed add pipeline template url
- now show dynamic 'instructions' on app summary page when app is created

* Fixed unit tests

* Localised labels, fixed e2e

* Fixed merge issue

* Improvements to the about page (#1016)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* Delete stray .orig file

* Fixed merge issues

* Addressed issues raised in PR review

* Improvements to the about page

* Brand fixes

* Endpoints Dashboard refactor (#1012)

* Migrated SCF k8s to Helm

* wip

* Fix breadcrumb and links to endpoints-dashboard

* Fixed service-manager-tiles

* + Using `env` to determine if a plugin is loaded
+ Don't show parent `Cloud Foundry` breadcrumb if endpoints dashboard is not available
+ Redirect user to cluster organizations page if dashboard is not available

* Removed unused import

* minor tweaks

* Fixed unit tests

* Fixed provisioning script for concourse

* Correct path for CI e2e

* minor tweaks

* Removed `injector`

* Refactored styles

* Moved some header styles into core app + moved cf specific localistation into cf plugin (#1018)

* Added tools to package up as a cloud foundry application (#1014)

* Added tools to package up as a cloud foundry application

Generates a folder that can be pushed to cloud foundry

* Fixed confit to ensure SQLite is used. Improvements to script

* Simple CF Theme (#1019)

* Added simple CF theme

* Theme improvements

* Fix broken scss due to bad merge

* Register Endpoint: Skip Endpoint Type selection screen when only one endpoint type is available (#1021)

* Fixed code engine registation title

* Fixed style issue - styles need to be in main app (#1020)

* styles need to be in main app

* Force build

* Allow build_config.json to be watched and dynamiclly reloaded (#1022)

* Allow main UI entry point (on login) to be configured (#1023)

* Allow build_config.json to be watched and dynamiclly reloaded

* Allow main entry point to be configured

* Add main state for endpoints dashboard

* Fixed broken png image for CF theme

* Prevent app actions when the app is the console app in cloud foundry (#1024)

* Prevent app applications when the app is the console app in cloud foundry

* Testing pipeline

* undo test commit

* Changes for stackatoInfo rename version api response change (#1025)

* Changes for stackatoInfo rename version api response change

* Fixed onLoggedIn - this is used in both verify and loggedIn - which now have different responses

* Fix failing e2e tests

* Update protractor.conf.js

* Fixed failing unit tests (#1028)

* Fix E2E tests (#1029)

* Remove application base path (#1026)

* Remove application base path

* Fix blank page

* Remove stackato (#1027)

* Changes for stackatoInfo rename version api response change

* Fixed onLoggedIn - this is used in both verify and loggedIn - which now have different responses

* Fix failing e2e tests

* Replace stackatoInfo with consoleInfo

* Fix hasty merge

* Fixed

* Fixed camel case

* Gettext removal (#1010)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* First bunch of gettext() removals

* Delete stray .orig file

* Fixed merge issues

* More gettext() removals

* Fix merge problem

* Fix bad merge

* Fixed missing translate on buttons

* Rename 'green-box-console' to 'console-app' (#1030)

* Second round of gettext() removals - removed all from app and framework (#1031)

* Second round of gettext() removals - removed all from app and framework

* Fix missing translates

* Argghh . remove fdescribe

* Fixed type

* Tidy up add application dialog (#1032)

* Tidy up add application dialog

* Fix unit tests

* Display more quota information (#1033)

* Change Utilization to Quota

* Add additional quotas

* Make private domain listing more efficient

* capture non-basic services allowed property

* Show app instances quota information in space summary

* fix lint

* fix unit tests

* Show additional app metadata (#1034)

* Display additional metadata for apps

* fix lint

* Fix unit test

* Add stack information to app summary

* Fix unit tests

* Fix lint issue

* Refactored source tree to better support adding and removing componen… (#1035)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Transform examples into plugins to the application shell (#1036)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Transform examples into plugins to the application shell

* Examples are now a component

* Fixed lint issues

* Revert bower to correct default

* Increased karma timeout

* Move config to bower.json

* Change to force build

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Refactor the about page into a separate component (#1037)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Refactor the about page into a separate component

* Change to force build

* Moved about page unit test to correct location. Fixed name of default main state

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Ensure 'View App' link is hidden for apps that are not running (#1038)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Ensure view app is hidden when app is not running

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* gate check

* Fix auto-focus in register endpoint slide out (#1040)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Fix auto-focus in register endpoint slide out
When only one type of endpoint can be registered we open directly on step 2
if the register slide out. This has an auto-focus on the first input field
which breaks the slide outs animation (it shows immediately instead of
sliding in). This applies the work around used elsewhere.

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* gate check

* Fix 'View App' link when there are no routes (#1044)

* Remove inject + prototypes patterns from plugins dir (#1017)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* - Moved code engine app tabs to code engine plugin
- Added generic way to add cf application tabs
- Mangled some other things (TODO)

* Completed app tabs (hide now works as expected) + Moved add-pipeline workflow into ce

* Removed much of the remaining HCE code
- There's stil items that link the application to a hce pipeline but these
are just variables. Without completely breaking the link between the console
 and hce it's tricky to change these.

* Lint + test fixes

* Lint and unit test fixes

* Removed a few more hce references

* e2e fixes, including screenshot report path fix

* Exlude tests for plugins that are not included

* Tidy ups and minor tweaks

* CI change

* WIP

* WIP

* Merge and unit test fixes

* Unit test + lint fixes, list.module prototype

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Fixed merge fun, fixed app variables add/edit dialog bug

* Fixed merge issues, removed inject from most of service-manager

* Another bad merge artifact

* Updates following review + de-prototyped ApplicationSetupPipelineController

* Replace Helion icons with Material icons (#1039)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Transform examples into plugins to the application shell

* Examples are now a component

* Fixed lint issues

* Revert bower to correct default

* Increased karma timeout

* Move config to bower.json

* Change to force build

* Remove helion icons and replace with material icons.

* Removed remaining references to helion-icons in core code base

* Fix e2e tests

* Fix lint issue

* Fixing up a few merge issues

* Fixed missing function

* Missed a few

* Addressed PR feedback

* Fixed issue where about page does not show up (#1045)

* Fix issued where about page does not show up

* gate check

* Allow frontend base folder to be configurable (#1043)

* Add support for changing root folder. Move frontend config into a 'frontend' section in the json

* Fixed code coverage report src path mangling

* Fix issued with index.html

* Fix left margin of first button in wizards (#1046)

* Fix left margin of first button in wizards
- See add app 'cancel' button before change
- To see in/not in action look at both add app and assign user modals

* Sneaking in possible fix for intermittently failing e2e test

* Remove old components (#1047)

* Remove old components

* Remove tools unused

* Remove ci files

* Fix merge issue

* Rename module helion.framework to app.framework (#1049)

* Remove references to 'helion'  (#1050)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* O nly make VCS call if we have an code engine (#1056)

* Fix issue with multiple svg images when using ng-if (#1057)

* Refactor out cf versions (#1053)

* Refactor out cf versions

* Removed erroneous extra applications menu item appearing

* Fix broken icon and incorrect template url

* CI bump

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Move unit test for endpoints dashboard (#1051)

* Move unit test for endpoints dashboard

* fix lint issue

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

commit 5dad190fee8574c9c053a7899a9f5beb26062935
Merge: 3b13b8e 044208f
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 15:06:44 2017 +0100

    Merge remote-tracking branch 'origin/suse' into remove-old-refs

commit 3b13b8e492c5e91fffa7647bb1dd5170a1ae8f45
Author: Neil MacDougall <nwmac@users.noreply.github.com>
Date:   Thu Jun 1 14:55:30 2017 +0100

    gate check

commit 044208f1c13ce42d4e95dafbe8c8c0c1783581a1
Author: Irfan Habib <irfan.habib@suse.com>
Date:   Thu Jun 1 14:53:19 2017 +0100

    Merge Portal Proxy (#1059)

    * update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

    * drop unneeded headers var

    * update glide deps to include logrus

    * update new log entries from rebase to use logger instead of log

    * DRY…
nwmac pushed a commit that referenced this pull request Jun 7, 2017
* HSC-1446 - Delivery Pipeline creation E2E (#945)

* wip

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Added tests for invalid token

* Cleanup stale errors when rebuilding endpoint entries (#949)

* HSC-1466: Add more tests for some of the framework utils/widgets (#946)

* Fix broken unit tests

* HSC-1419 - VCS Token Management E2E tests (#948)

* wip

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Added tests for invalid token

* Removed duplicate async-dialog-view

* GitHub Token Management E2E tests

* Fixed lint issues

* Added test to check duplicate tokens cant be added

* HSC-1467: Get app wall test that use mock data working (and add more) (#947)

* HSC-1467: Get app wall test that use mock data working (and add more)

* Check that CLI Commands displays and we can copy to clipboard

* HSC-1468: Use the service name to find the service to bind (#950)

* Ensure orgs without spaces don't cause ugly scroll bar when the drop-down opens

* Correctly match updated APP prefix in new HCF. Reduced ansi colorizer complexity (#951)

* Delivery Pipeline E2E: enable concurrent runs (#952)

* HSC-1474 - Remove typo in `deleteAppIfExisting` (#954)

* Fix leakage of apps

* Update cf-model.po.js

* HSC-1473: More unit and E2E tests to improve coverage (#953)

* HSC-1477 - E2E tests: Instrument VCS api

* Polish e2e tests (#957)

* Remove superfluous wait. Close notifications to avoid toasts receiving clicks

* Check specific missing scope error is shown. Close more toasts

* HSC-1417 - Fix and enable empty dashboard tests

* HSC-1469 - E2E tests: Add tests for Delivery Pipeline summary page (#955)

* Delivery Pipeline summary tests

* Fix leakage of apps

* Delivery Pipeline summary page E2E tests

* Fixed actions-menu click

* HSC-1469 - E2E tests: Add tests for Delivery Pipeline summary page

* remove debug file

* Delivery Pipeline E2E tests: Allow concurrent tests to run

* minor refactor

* Delivery Pipeline E2E tests: Allow concurrent tests to run

* Fix test

* HSC-1472: Handle new HCE project based permissions (#956)

* HSC-1472: Handle new HCE project based permissions
Basic handling of new hce project permissions
- Do not allow application to be deleted if user does not have project permission
- Display permissions notice on delivery pipeline + logs pages

Note - We may want to refactor delivery-pipeline-status.html in the future,
there's a fair few ng-if conditions in the template

* Fix project role holes
- Delete application button state is updated given changes to project roles while app pages are shown
- Delete application process will now correctly fail and stop progression if..
-- The delete project request fails (user is only a project developer)
-- The request project previously failed due to a 403 (user has no project role)
- Delete pipeline process remains as before

Note - We should look to improve the project developer use case. Need
to check beforehand what roles user has for project.

* HSC-1473: E2E Tests for services and routes checking on CF Dashboard (#959)

* Fix Delivery Pipeline E2E test (#960)

* Disable log stream e2e tests - unreliable

* More unit tests. Fix service e2e test when no services are left. (#963)

* More unit tests. Fix service e2e test when no services are left.

* Update default-image.directive.spec.js

* Fix lint issue

* Remove fdescribe (#966)

* HSC-1486: Fix type - missing space (#964)

* Acknowledge toasts when detaching/deleting services (#965)

* Refresh routes and service instances (#967)

* Refresh routes and service instances when entering a Space. Also pre-sort various arrays to avoid smart-table flicker

* Fallback consistent with smart-table

* Revert "Fallback consistent with smart-table"

This reverts commit 23107a6f56ac1e13a746804f5829e9f342ff5174.

* Fixed comment

* Correctly handle service instances when coming from app-wall

* Fix test data

* Let's not forget to update from cache

* Fix stray reference to 'HCF' (#974)

* Add a 'no users' style message to base cluster users tab (#973)

- We fetch roles via orgs. If the user is not an org_user of any org they
will see no users.
- Add a simple message to avoid showing an ugly empty table
- Not needed at space level (only org_user is needed to view roles)

* Improve github integration in trigger build slide in (#971)

- Add link to github user
- Add github user icon, if present
- Add link to commit

* Fix vertical scroll bar in trigger build slide in (#976)

* Change copyright year to 2017

* Helion Service Manager Integration (view only) (#975)

* WIP: HSM Support

* Small improvements. Tidy ups. Lint fixes. Unit tests now run okay.

* Many improvements and refinements

* Added configure instance support. Refactor cerate instance dialog. Tidy ups.

* Added upgrade support

* Minor improvements

* Allow only admins to see HSM endpoints

* Tweaks

* Fix broken redirect with a single HSM

* Allow components to be shown or hidden

* Don't show inline upgrade messages since they are distracting

* Apply update to text and ensure write operations are turned off by default.

* Updated icon

* Tweaks + changes
- Now rely on the base state fetch of instances and services. Leaf states
will refer to these when applicable. The instance will still be updated on
poll, covering both local and instances array entries. The instances array
will also manually be updated on create, delete and reconfigure.
- Instance and service arrays are now pre-sorted to avoid table sort
flibble
- Instances table state icons now match that of the instance detail icon
(except their larger table located versions)
- Handle create instance edge cases. Also improve error messages
when creating a service.
- Ensure secret params and empty string defaults are shown in the create
instance param list
- Show secret params as password input boxes
- Always show the 'delete instance' option if not deleting/deleted. There's
some edge cases where we can get stuck in 'creating'/interesting state
- Changes some anchors to use ui-sref
- Removed some comments + unrequired code

* Small translation changes, comments + a catch around readAsText

* Address Richard's review comments

* Some extra fixes
- Fixed alignment of first letter in instance state popover
- Fixed HSM nav icon visibility for unregister
- Make an info call for HSM service instances in user service instance list
- Fixed a few Helion Service Manager references
- For the HSM details screen show just 'Service Manager' for the name. This
aligns how we handle the same breadcrumb/name in the CF endpoints pages
 (HCF/Clusters - HSM/Service Manager)
- Fixed an issue where disconnected a HSM would not change the total upgrade
number (if there are two registered)

* Fix pause when deleting endpoint + table blibble on load
- Don't wait for updated user service instance list on removal of endpoint (revert from previous commit)
- Fixed lint error
- Sort table without reverse (show cloud foundry first). This avoids
having to hack st-table to sort by reverse 'type' then normal 'name'
- Fix position of 'register +' link in register slideout when screen is thin

* Fixed lint error and wizard nav bar button issue. Shortened nav bar HSM name

* Firehose (#977)

* Firehose support WIP

* Full window support

* Tidy ups, layout rework started [WIP]

* Adjust firehose formatting. Remove console log

* Improve Firehose treatment

* @WIP@

* minor tweaks

* Many bug fixes. Allow searching and highlighting seamlessly across Escape Sequences

* Support regex matches

* Reduce code complexity

* Dynamically disable scroll in console-view for better log-viewer performance

* Only show the Firehose for CF admins

* Make regex bars stick around the text.

Also remove less useful options

* Revert name change

* Add directive to link contenteditable to ng-model

* Fix unit tests

* Text filter fixes: Prevent rich text paste. Prevent wrapping. Works in IE

* lint

* Fix e2e tests

* Avoid flicker inendpoints dashboard

* Fix sorting by pubic location not working (#978)

* Fix polling and is_latest bugs (#979)

* Expose Cloud Foundry running in Vagrant

Achieved using custom a nodejs app in combination with HA proxy

* Fix erroneous link error

* Allow e2e test to be skipped when required services are not configured (#983)

* Fix OEM so that default brand can be changed easily (#984)

* Allow more e2e tests to run without Code Engine (#986)

* Enable more tests without an HCE

* Fixed lint issues

* Refactored organization-model as a factory (#985)

* Refactored organization-model as a factory

* Ooops

* Update labels for CF and CE for e2e tests

* Minor improvement to list-e2e tests to show how many will be skipped

* HSC-1514: Set log in form method to post to avoid js disable/crash creds leak (#982)

- Bug - Visit log in page, disable js (or js handler crashes), submit log in form. The form is handled like a get and pushes params into url which is visited. This is logged by portal proxy
- Now form is post so get a 404 and no logged creds.
- Also added noscript method to index.html

* HSC-1487 - E2E tests: Capture screenshots for failing tests (#968)

* HSC-1487 - E2E tests: Capture screenshots for failing tests

* Update .gitignore

* Changed folder location for test output

* Fixes to list e2e script (#988)

* HSC-1487 - E2E tests: Capture screenshots for failing tests

* Update .gitignore

* Changed folder location for test output

* Minor tweaks to e2e test list script

* Fixes to list e2e tests script

* Fix lint errors

* Use minify-safe short-hand injection via ng-annotate (#987)

* Refactor UI Framework into src and theme folders (#989)

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Add back in clean:dist for compat with the concourse pipeline

* Use colours relative to $brand-primary (#991)

* Updated colour of green tick in toaster to be suse-primary

* Revert "Updated colour of green tick in toaster to be suse-primary"

This reverts commit 81e055674a6287acf9c94a5e449f57adab9b4152.

* HSC-1437: Tidy up: Remove HELION_UI_FRAMEWORK config setting (#916)

* HSC-1437: Tidy up: Remove HELION_UI_FRAMEWORK config setting

* Removed helion.framework.basePath

* Fix lint error

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Remove erroneoos property

* Updated colour of green tick in toaster to be suse-primary (#993)

* Flatten app source folder and module hierarchy (#992)

* Move tests files out of src folder and flatten src folder structure where appropriate.

* Flatten module and folder structures a little.

* Fix lint issue and move test file

* README change

* README change

* Remove duplicate module names in dependency list

* Fix code coverage not working for e2e tests

* Restructure test folder

* Moved e2e tests under the test folder

* Update README.md

* Fixed path to `provision.sh` due to move of `e2e` into `test`

* I18n (#969)

* i18n

* Fix gulp lint

* Allow i18n strings to reference other strings that are replaces at build time - used for OEM

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Add back in clean:dist for compat with the concourse pipeline

* Update OEM branding for SUSE

* Make breadcrumb translate labels

* Remove erroneous property

* Fixed lint error

* Address PR comments

* Fix PR issues

* Fix translation errors when running e2e tests

* Improve per-processing of i18n files and fix more strings

* Fix line issue and e2e test failures

* Fixed some more strings

* Fix broken code blocks

* Speed up oem target

* Fixed lint issue

* Fix issues

* Fix problem with task that combines unit and e2e test coverage (#995)

* Fix problem with task that combines unit and e2e test coverage

* Small fix

* Ensure that the unit test code uses the ng-annotate pre-processor as well

* Moved coverage-report to ./out
- also changed npm target 'e2e' to use gulp e2e:run instead of running protractor directly

* Revert "Moved coverage-report to ./out"

This reverts commit 9986f24c1f085b00afb6ecd68652020b5568c4e4.

* Move ./coverage-report to ./out (#997)

* Revert "Revert "Moved coverage-report to ./out""

This reverts commit 1f51109498d486243f166930e93ea7a3ec715a14.

* Comment fix to kick off ci

* Remove prototype and inject syntax/styles from src/app/!view (#994)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Fix bad merge

* Remove prototype and inject syntax/styles from src/app/view (#996)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Comment fix

* Trivial change to kick off ci

* Fixed merge issues

* Use custom nginx config when deploying in k8s (#998)

* Move plugin specific code in endpoint dashboard to plugins directories (#999)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Fixed bad merge

* Small change to kick off ci

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Prevent redirection of proxied info requests (#1002)

* Use more identifiable names for apps created by e2e tests (#1004)

* Use more identifiable test app names

* Remove argument as its no longer used

* Fix jsdocs

* Fixed 2 template paths that caused them to always be loaded and not used from the cache (#1005)

* Fixed 2 template paths that caused them to always be loaded and not used from the cache

* Fix failing unit tests

* Fixed app delete + tests (#1003)

* Use more identifiable test app names

* Fixed app delete + tests
- delete of simple (no routes or services) apps now works
- added e2e test for delete of simple/non-simple apps
- fixed delete of stray e2e test app

* oops

* Remove argument as its no longer used

* Fix jsdocs

* Close toasts to avoid chance of congestion

* Updated with new app naming process

* Allow more time before check if app does not exist (subtle way)

* CI

* Update application.po.js

* Move CF specific code to CF plugin (#1000)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Updates following review

* Tweaks to our suse theme (#1006)

* Move node_modules, bower_components and tidy up build (#1007)

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* Removed duplicate node_modules from .gitignore and added check to ensure gulp tasks are not run from the tools folder.

* Fixed bug where brand images were not copied

* Fixes for the examples

* Fixed e2e test + coverage reporting

* HSC-1439: Read version number from package.json (#921)

* HSC-1439: Read version number from package.json

* Read version number from package.json

* Small improvement

* Fixed broken path reference for package.json

* Prevent card titles from flowing over and increasing the height of the card (#1008)

* Improve plugins concept (#1001)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Fixed lint error

* Fix for scss file inclusion from plugins

* Update following review

* Move hce specific code to hce plugin (#1011)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* - Moved code engine app tabs to code engine plugin
- Added generic way to add cf application tabs
- Mangled some other things (TODO)

* Completed app tabs (hide now works as expected) + Moved add-pipeline workflow into ce

* Removed much of the remaining HCE code
- There's stil items that link the application to a hce pipeline but these
are just variables. Without completely breaking the link between the console
 and hce it's tricky to change these.

* Lint + test fixes

* Lint and unit test fixes

* Removed a few more hce references

* e2e fixes, including screenshot report path fix

* Exlude tests for plugins that are not included

* Tidy ups and minor tweaks

* CI change

* Run all plugin unit tests not just those configured to be used at run time

* Fix provisioning script for concourse (#1013)

* Fixed provisioning script for concourse

* Correct path for CI e2e

* Remove OEM_CONFIG - all done via the i18n mechanism now (#1009)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* Delete stray .orig file

* Fixed merge issues

* Addressed issues raised in PR review

* Updates to new app tabs feature (#1015)

* Updates following review
- flipped generic endpoint 'call func' names
- tabs - hide: false
- tabs - localised labels
- tabs - removed 'go' and 'istabactive' + switched to ui-sref
- tabs - add tab entries in individual states and not all together
- tabs -

* Final set of updates
- expanded set of tab functions to include appUpdated (replaces update pipeline shizzle), appDeleting (replaces delete pipeline shizzle) and appDeleted
- fixed add pipeline template url
- now show dynamic 'instructions' on app summary page when app is created

* Fixed unit tests

* Localised labels, fixed e2e

* Fixed merge issue

* Improvements to the about page (#1016)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* Delete stray .orig file

* Fixed merge issues

* Addressed issues raised in PR review

* Improvements to the about page

* Brand fixes

* Endpoints Dashboard refactor (#1012)

* Migrated SCF k8s to Helm

* wip

* Fix breadcrumb and links to endpoints-dashboard

* Fixed service-manager-tiles

* + Using `env` to determine if a plugin is loaded
+ Don't show parent `Cloud Foundry` breadcrumb if endpoints dashboard is not available
+ Redirect user to cluster organizations page if dashboard is not available

* Removed unused import

* minor tweaks

* Fixed unit tests

* Fixed provisioning script for concourse

* Correct path for CI e2e

* minor tweaks

* Removed `injector`

* Refactored styles

* Moved some header styles into core app + moved cf specific localistation into cf plugin (#1018)

* Added tools to package up as a cloud foundry application (#1014)

* Added tools to package up as a cloud foundry application

Generates a folder that can be pushed to cloud foundry

* Fixed confit to ensure SQLite is used. Improvements to script

* Simple CF Theme (#1019)

* Added simple CF theme

* Theme improvements

* Fix broken scss due to bad merge

* Register Endpoint: Skip Endpoint Type selection screen when only one endpoint type is available (#1021)

* Fixed code engine registation title

* Fixed style issue - styles need to be in main app (#1020)

* styles need to be in main app

* Force build

* Allow build_config.json to be watched and dynamiclly reloaded (#1022)

* Allow main UI entry point (on login) to be configured (#1023)

* Allow build_config.json to be watched and dynamiclly reloaded

* Allow main entry point to be configured

* Add main state for endpoints dashboard

* Fixed broken png image for CF theme

* Prevent app actions when the app is the console app in cloud foundry (#1024)

* Prevent app applications when the app is the console app in cloud foundry

* Testing pipeline

* undo test commit

* Changes for stackatoInfo rename version api response change (#1025)

* Changes for stackatoInfo rename version api response change

* Fixed onLoggedIn - this is used in both verify and loggedIn - which now have different responses

* Fix failing e2e tests

* Update protractor.conf.js

* Fixed failing unit tests (#1028)

* Fix E2E tests (#1029)

* Remove application base path (#1026)

* Remove application base path

* Fix blank page

* Remove stackato (#1027)

* Changes for stackatoInfo rename version api response change

* Fixed onLoggedIn - this is used in both verify and loggedIn - which now have different responses

* Fix failing e2e tests

* Replace stackatoInfo with consoleInfo

* Fix hasty merge

* Fixed

* Fixed camel case

* Gettext removal (#1010)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* First bunch of gettext() removals

* Delete stray .orig file

* Fixed merge issues

* More gettext() removals

* Fix merge problem

* Fix bad merge

* Fixed missing translate on buttons

* Rename 'green-box-console' to 'console-app' (#1030)

* Second round of gettext() removals - removed all from app and framework (#1031)

* Second round of gettext() removals - removed all from app and framework

* Fix missing translates

* Argghh . remove fdescribe

* Fixed type

* Tidy up add application dialog (#1032)

* Tidy up add application dialog

* Fix unit tests

* Display more quota information (#1033)

* Change Utilization to Quota

* Add additional quotas

* Make private domain listing more efficient

* capture non-basic services allowed property

* Show app instances quota information in space summary

* fix lint

* fix unit tests

* Show additional app metadata (#1034)

* Display additional metadata for apps

* fix lint

* Fix unit test

* Add stack information to app summary

* Fix unit tests

* Fix lint issue

* Refactored source tree to better support adding and removing componen… (#1035)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Transform examples into plugins to the application shell (#1036)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Transform examples into plugins to the application shell

* Examples are now a component

* Fixed lint issues

* Revert bower to correct default

* Increased karma timeout

* Move config to bower.json

* Change to force build

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Refactor the about page into a separate component (#1037)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Refactor the about page into a separate component

* Change to force build

* Moved about page unit test to correct location. Fixed name of default main state

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Ensure 'View App' link is hidden for apps that are not running (#1038)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Ensure view app is hidden when app is not running

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* gate check

* Fix auto-focus in register endpoint slide out (#1040)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Fix auto-focus in register endpoint slide out
When only one type of endpoint can be registered we open directly on step 2
if the register slide out. This has an auto-focus on the first input field
which breaks the slide outs animation (it shows immediately instead of
sliding in). This applies the work around used elsewhere.

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* gate check

* Fix 'View App' link when there are no routes (#1044)

* Remove inject + prototypes patterns from plugins dir (#1017)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* - Moved code engine app tabs to code engine plugin
- Added generic way to add cf application tabs
- Mangled some other things (TODO)

* Completed app tabs (hide now works as expected) + Moved add-pipeline workflow into ce

* Removed much of the remaining HCE code
- There's stil items that link the application to a hce pipeline but these
are just variables. Without completely breaking the link between the console
 and hce it's tricky to change these.

* Lint + test fixes

* Lint and unit test fixes

* Removed a few more hce references

* e2e fixes, including screenshot report path fix

* Exlude tests for plugins that are not included

* Tidy ups and minor tweaks

* CI change

* WIP

* WIP

* Merge and unit test fixes

* Unit test + lint fixes, list.module prototype

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Fixed merge fun, fixed app variables add/edit dialog bug

* Fixed merge issues, removed inject from most of service-manager

* Another bad merge artifact

* Updates following review + de-prototyped ApplicationSetupPipelineController

* Replace Helion icons with Material icons (#1039)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Transform examples into plugins to the application shell

* Examples are now a component

* Fixed lint issues

* Revert bower to correct default

* Increased karma timeout

* Move config to bower.json

* Change to force build

* Remove helion icons and replace with material icons.

* Removed remaining references to helion-icons in core code base

* Fix e2e tests

* Fix lint issue

* Fixing up a few merge issues

* Fixed missing function

* Missed a few

* Addressed PR feedback

* Fixed issue where about page does not show up (#1045)

* Fix issued where about page does not show up

* gate check

* Allow frontend base folder to be configurable (#1043)

* Add support for changing root folder. Move frontend config into a 'frontend' section in the json

* Fixed code coverage report src path mangling

* Fix issued with index.html

* Fix left margin of first button in wizards (#1046)

* Fix left margin of first button in wizards
- See add app 'cancel' button before change
- To see in/not in action look at both add app and assign user modals

* Sneaking in possible fix for intermittently failing e2e test

* Remove old components (#1047)

* Remove old components

* Remove tools unused

* Remove ci files

* Fix merge issue

* Rename module helion.framework to app.framework

* Rename module helion.framework to app.framework (#1049)

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Remove references to stackato

* Remove references to 'helion'  (#1050)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* Removed references to HPE

* Removed references to hce
Includes removal of code to hide/remove the 'hce' service previously
associated with a hcf applicaiton with a hce pipeline.
If application pipelines are included again it'll be a fresh implementation

* Remove old company name

* e2e fix

* Remove references to hcf (does not cover hcf cnsi_type)

* O nly make VCS call if we have an code engine (#1056)

* Undo endpoints.hcf --> endpoints.cf (object comes from response from backend)

* Fix failing e2e tests

* Switched 'hcf' cnsi type to 'cf'

* Fix issue with multiple svg images when using ng-if (#1057)

* Refactor out cf versions (#1053)

* Refactor out cf versions

* Removed erroneous extra applications menu item appearing

* Fix broken icon and incorrect template url

* CI bump

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Move unit test for endpoints dashboard (#1051)

* Move unit test for endpoints dashboard

* fix lint issue

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

commit 5dad190fee8574c9c053a7899a…
irfanhabib pushed a commit that referenced this pull request Jun 7, 2017
* HSC-1446 - Delivery Pipeline creation E2E (#945)

* wip

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Added tests for invalid token

* Cleanup stale errors when rebuilding endpoint entries (#949)

* HSC-1466: Add more tests for some of the framework utils/widgets (#946)

* Fix broken unit tests

* HSC-1419 - VCS Token Management E2E tests (#948)

* wip

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Delivery pipeline e2e

* Added tests for invalid token

* Removed duplicate async-dialog-view

* GitHub Token Management E2E tests

* Fixed lint issues

* Added test to check duplicate tokens cant be added

* HSC-1467: Get app wall test that use mock data working (and add more) (#947)

* HSC-1467: Get app wall test that use mock data working (and add more)

* Check that CLI Commands displays and we can copy to clipboard

* HSC-1468: Use the service name to find the service to bind (#950)

* Ensure orgs without spaces don't cause ugly scroll bar when the drop-down opens

* Correctly match updated APP prefix in new HCF. Reduced ansi colorizer complexity (#951)

* Delivery Pipeline E2E: enable concurrent runs (#952)

* HSC-1474 - Remove typo in `deleteAppIfExisting` (#954)

* Fix leakage of apps

* Update cf-model.po.js

* HSC-1473: More unit and E2E tests to improve coverage (#953)

* HSC-1477 - E2E tests: Instrument VCS api

* Polish e2e tests (#957)

* Remove superfluous wait. Close notifications to avoid toasts receiving clicks

* Check specific missing scope error is shown. Close more toasts

* HSC-1417 - Fix and enable empty dashboard tests

* HSC-1469 - E2E tests: Add tests for Delivery Pipeline summary page (#955)

* Delivery Pipeline summary tests

* Fix leakage of apps

* Delivery Pipeline summary page E2E tests

* Fixed actions-menu click

* HSC-1469 - E2E tests: Add tests for Delivery Pipeline summary page

* remove debug file

* Delivery Pipeline E2E tests: Allow concurrent tests to run

* minor refactor

* Delivery Pipeline E2E tests: Allow concurrent tests to run

* Fix test

* HSC-1472: Handle new HCE project based permissions (#956)

* HSC-1472: Handle new HCE project based permissions
Basic handling of new hce project permissions
- Do not allow application to be deleted if user does not have project permission
- Display permissions notice on delivery pipeline + logs pages

Note - We may want to refactor delivery-pipeline-status.html in the future,
there's a fair few ng-if conditions in the template

* Fix project role holes
- Delete application button state is updated given changes to project roles while app pages are shown
- Delete application process will now correctly fail and stop progression if..
-- The delete project request fails (user is only a project developer)
-- The request project previously failed due to a 403 (user has no project role)
- Delete pipeline process remains as before

Note - We should look to improve the project developer use case. Need
to check beforehand what roles user has for project.

* HSC-1473: E2E Tests for services and routes checking on CF Dashboard (#959)

* Fix Delivery Pipeline E2E test (#960)

* Disable log stream e2e tests - unreliable

* More unit tests. Fix service e2e test when no services are left. (#963)

* More unit tests. Fix service e2e test when no services are left.

* Update default-image.directive.spec.js

* Fix lint issue

* Remove fdescribe (#966)

* HSC-1486: Fix type - missing space (#964)

* Acknowledge toasts when detaching/deleting services (#965)

* Refresh routes and service instances (#967)

* Refresh routes and service instances when entering a Space. Also pre-sort various arrays to avoid smart-table flicker

* Fallback consistent with smart-table

* Revert "Fallback consistent with smart-table"

This reverts commit 23107a6f56ac1e13a746804f5829e9f342ff5174.

* Fixed comment

* Correctly handle service instances when coming from app-wall

* Fix test data

* Let's not forget to update from cache

* Fix stray reference to 'HCF' (#974)

* Add a 'no users' style message to base cluster users tab (#973)

- We fetch roles via orgs. If the user is not an org_user of any org they
will see no users.
- Add a simple message to avoid showing an ugly empty table
- Not needed at space level (only org_user is needed to view roles)

* Improve github integration in trigger build slide in (#971)

- Add link to github user
- Add github user icon, if present
- Add link to commit

* Fix vertical scroll bar in trigger build slide in (#976)

* Change copyright year to 2017

* Helion Service Manager Integration (view only) (#975)

* WIP: HSM Support

* Small improvements. Tidy ups. Lint fixes. Unit tests now run okay.

* Many improvements and refinements

* Added configure instance support. Refactor cerate instance dialog. Tidy ups.

* Added upgrade support

* Minor improvements

* Allow only admins to see HSM endpoints

* Tweaks

* Fix broken redirect with a single HSM

* Allow components to be shown or hidden

* Don't show inline upgrade messages since they are distracting

* Apply update to text and ensure write operations are turned off by default.

* Updated icon

* Tweaks + changes
- Now rely on the base state fetch of instances and services. Leaf states
will refer to these when applicable. The instance will still be updated on
poll, covering both local and instances array entries. The instances array
will also manually be updated on create, delete and reconfigure.
- Instance and service arrays are now pre-sorted to avoid table sort
flibble
- Instances table state icons now match that of the instance detail icon
(except their larger table located versions)
- Handle create instance edge cases. Also improve error messages
when creating a service.
- Ensure secret params and empty string defaults are shown in the create
instance param list
- Show secret params as password input boxes
- Always show the 'delete instance' option if not deleting/deleted. There's
some edge cases where we can get stuck in 'creating'/interesting state
- Changes some anchors to use ui-sref
- Removed some comments + unrequired code

* Small translation changes, comments + a catch around readAsText

* Address Richard's review comments

* Some extra fixes
- Fixed alignment of first letter in instance state popover
- Fixed HSM nav icon visibility for unregister
- Make an info call for HSM service instances in user service instance list
- Fixed a few Helion Service Manager references
- For the HSM details screen show just 'Service Manager' for the name. This
aligns how we handle the same breadcrumb/name in the CF endpoints pages
 (HCF/Clusters - HSM/Service Manager)
- Fixed an issue where disconnected a HSM would not change the total upgrade
number (if there are two registered)

* Fix pause when deleting endpoint + table blibble on load
- Don't wait for updated user service instance list on removal of endpoint (revert from previous commit)
- Fixed lint error
- Sort table without reverse (show cloud foundry first). This avoids
having to hack st-table to sort by reverse 'type' then normal 'name'
- Fix position of 'register +' link in register slideout when screen is thin

* Fixed lint error and wizard nav bar button issue. Shortened nav bar HSM name

* Firehose (#977)

* Firehose support WIP

* Full window support

* Tidy ups, layout rework started [WIP]

* Adjust firehose formatting. Remove console log

* Improve Firehose treatment

* @WIP@

* minor tweaks

* Many bug fixes. Allow searching and highlighting seamlessly across Escape Sequences

* Support regex matches

* Reduce code complexity

* Dynamically disable scroll in console-view for better log-viewer performance

* Only show the Firehose for CF admins

* Make regex bars stick around the text.

Also remove less useful options

* Revert name change

* Add directive to link contenteditable to ng-model

* Fix unit tests

* Text filter fixes: Prevent rich text paste. Prevent wrapping. Works in IE

* lint

* Fix e2e tests

* Avoid flicker inendpoints dashboard

* Fix sorting by pubic location not working (#978)

* Fix polling and is_latest bugs (#979)

* Expose Cloud Foundry running in Vagrant

Achieved using custom a nodejs app in combination with HA proxy

* Fix erroneous link error

* Allow e2e test to be skipped when required services are not configured (#983)

* Fix OEM so that default brand can be changed easily (#984)

* Allow more e2e tests to run without Code Engine (#986)

* Enable more tests without an HCE

* Fixed lint issues

* Refactored organization-model as a factory (#985)

* Refactored organization-model as a factory

* Ooops

* Update labels for CF and CE for e2e tests

* Minor improvement to list-e2e tests to show how many will be skipped

* HSC-1514: Set log in form method to post to avoid js disable/crash creds leak (#982)

- Bug - Visit log in page, disable js (or js handler crashes), submit log in form. The form is handled like a get and pushes params into url which is visited. This is logged by portal proxy
- Now form is post so get a 404 and no logged creds.
- Also added noscript method to index.html

* HSC-1487 - E2E tests: Capture screenshots for failing tests (#968)

* HSC-1487 - E2E tests: Capture screenshots for failing tests

* Update .gitignore

* Changed folder location for test output

* Fixes to list e2e script (#988)

* HSC-1487 - E2E tests: Capture screenshots for failing tests

* Update .gitignore

* Changed folder location for test output

* Minor tweaks to e2e test list script

* Fixes to list e2e tests script

* Fix lint errors

* Use minify-safe short-hand injection via ng-annotate (#987)

* Refactor UI Framework into src and theme folders (#989)

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Add back in clean:dist for compat with the concourse pipeline

* Use colours relative to $brand-primary (#991)

* Updated colour of green tick in toaster to be suse-primary

* Revert "Updated colour of green tick in toaster to be suse-primary"

This reverts commit 81e055674a6287acf9c94a5e449f57adab9b4152.

* HSC-1437: Tidy up: Remove HELION_UI_FRAMEWORK config setting (#916)

* HSC-1437: Tidy up: Remove HELION_UI_FRAMEWORK config setting

* Removed helion.framework.basePath

* Fix lint error

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Remove erroneoos property

* Updated colour of green tick in toaster to be suse-primary (#993)

* Flatten app source folder and module hierarchy (#992)

* Move tests files out of src folder and flatten src folder structure where appropriate.

* Flatten module and folder structures a little.

* Fix lint issue and move test file

* README change

* README change

* Remove duplicate module names in dependency list

* Fix code coverage not working for e2e tests

* Restructure test folder

* Moved e2e tests under the test folder

* Update README.md

* Fixed path to `provision.sh` due to move of `e2e` into `test`

* I18n (#969)

* i18n

* Fix gulp lint

* Allow i18n strings to reference other strings that are replaces at build time - used for OEM

* Split framework folder and move code under src

* Refactored UI Framework examples

* Removed console.log statement

* Removed console.log statement

* Fix lint errors

* Fix unit tests

* Remove script used for combining repos

* Add back in clean:dist for compat with the concourse pipeline

* Update OEM branding for SUSE

* Make breadcrumb translate labels

* Remove erroneous property

* Fixed lint error

* Address PR comments

* Fix PR issues

* Fix translation errors when running e2e tests

* Improve per-processing of i18n files and fix more strings

* Fix line issue and e2e test failures

* Fixed some more strings

* Fix broken code blocks

* Speed up oem target

* Fixed lint issue

* Fix issues

* Fix problem with task that combines unit and e2e test coverage (#995)

* Fix problem with task that combines unit and e2e test coverage

* Small fix

* Ensure that the unit test code uses the ng-annotate pre-processor as well

* Moved coverage-report to ./out
- also changed npm target 'e2e' to use gulp e2e:run instead of running protractor directly

* Revert "Moved coverage-report to ./out"

This reverts commit 9986f24c1f085b00afb6ecd68652020b5568c4e4.

* Move ./coverage-report to ./out (#997)

* Revert "Revert "Moved coverage-report to ./out""

This reverts commit 1f51109498d486243f166930e93ea7a3ec715a14.

* Comment fix to kick off ci

* Remove prototype and inject syntax/styles from src/app/!view (#994)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Fix bad merge

* Remove prototype and inject syntax/styles from src/app/view (#996)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Comment fix

* Trivial change to kick off ci

* Fixed merge issues

* Use custom nginx config when deploying in k8s (#998)

* Move plugin specific code in endpoint dashboard to plugins directories (#999)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Fixed bad merge

* Small change to kick off ci

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Prevent redirection of proxied info requests (#1002)

* Use more identifiable names for apps created by e2e tests (#1004)

* Use more identifiable test app names

* Remove argument as its no longer used

* Fix jsdocs

* Fixed 2 template paths that caused them to always be loaded and not used from the cache (#1005)

* Fixed 2 template paths that caused them to always be loaded and not used from the cache

* Fix failing unit tests

* Fixed app delete + tests (#1003)

* Use more identifiable test app names

* Fixed app delete + tests
- delete of simple (no routes or services) apps now works
- added e2e test for delete of simple/non-simple apps
- fixed delete of stray e2e test app

* oops

* Remove argument as its no longer used

* Fix jsdocs

* Close toasts to avoid chance of congestion

* Updated with new app naming process

* Allow more time before check if app does not exist (subtle way)

* CI

* Update application.po.js

* Move CF specific code to CF plugin (#1000)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Updates following review

* Tweaks to our suse theme (#1006)

* Move node_modules, bower_components and tidy up build (#1007)

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* Removed duplicate node_modules from .gitignore and added check to ensure gulp tasks are not run from the tools folder.

* Fixed bug where brand images were not copied

* Fixes for the examples

* Fixed e2e test + coverage reporting

* HSC-1439: Read version number from package.json (#921)

* HSC-1439: Read version number from package.json

* Read version number from package.json

* Small improvement

* Fixed broken path reference for package.json

* Prevent card titles from flowing over and increasing the height of the card (#1008)

* Improve plugins concept (#1001)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Fixed lint error

* Fix for scss file inclusion from plugins

* Update following review

* Move hce specific code to hce plugin (#1011)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* - Moved code engine app tabs to code engine plugin
- Added generic way to add cf application tabs
- Mangled some other things (TODO)

* Completed app tabs (hide now works as expected) + Moved add-pipeline workflow into ce

* Removed much of the remaining HCE code
- There's stil items that link the application to a hce pipeline but these
are just variables. Without completely breaking the link between the console
 and hce it's tricky to change these.

* Lint + test fixes

* Lint and unit test fixes

* Removed a few more hce references

* e2e fixes, including screenshot report path fix

* Exlude tests for plugins that are not included

* Tidy ups and minor tweaks

* CI change

* Run all plugin unit tests not just those configured to be used at run time

* Fix provisioning script for concourse (#1013)

* Fixed provisioning script for concourse

* Correct path for CI e2e

* Remove OEM_CONFIG - all done via the i18n mechanism now (#1009)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* Delete stray .orig file

* Fixed merge issues

* Addressed issues raised in PR review

* Updates to new app tabs feature (#1015)

* Updates following review
- flipped generic endpoint 'call func' names
- tabs - hide: false
- tabs - localised labels
- tabs - removed 'go' and 'istabactive' + switched to ui-sref
- tabs - add tab entries in individual states and not all together
- tabs -

* Final set of updates
- expanded set of tab functions to include appUpdated (replaces update pipeline shizzle), appDeleting (replaces delete pipeline shizzle) and appDeleted
- fixed add pipeline template url
- now show dynamic 'instructions' on app summary page when app is created

* Fixed unit tests

* Localised labels, fixed e2e

* Fixed merge issue

* Improvements to the about page (#1016)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* Delete stray .orig file

* Fixed merge issues

* Addressed issues raised in PR review

* Improvements to the about page

* Brand fixes

* Endpoints Dashboard refactor (#1012)

* Migrated SCF k8s to Helm

* wip

* Fix breadcrumb and links to endpoints-dashboard

* Fixed service-manager-tiles

* + Using `env` to determine if a plugin is loaded
+ Don't show parent `Cloud Foundry` breadcrumb if endpoints dashboard is not available
+ Redirect user to cluster organizations page if dashboard is not available

* Removed unused import

* minor tweaks

* Fixed unit tests

* Fixed provisioning script for concourse

* Correct path for CI e2e

* minor tweaks

* Removed `injector`

* Refactored styles

* Moved some header styles into core app + moved cf specific localistation into cf plugin (#1018)

* Added tools to package up as a cloud foundry application (#1014)

* Added tools to package up as a cloud foundry application

Generates a folder that can be pushed to cloud foundry

* Fixed confit to ensure SQLite is used. Improvements to script

* Simple CF Theme (#1019)

* Added simple CF theme

* Theme improvements

* Fix broken scss due to bad merge

* Register Endpoint: Skip Endpoint Type selection screen when only one endpoint type is available (#1021)

* Fixed code engine registation title

* Fixed style issue - styles need to be in main app (#1020)

* styles need to be in main app

* Force build

* Allow build_config.json to be watched and dynamiclly reloaded (#1022)

* Allow main UI entry point (on login) to be configured (#1023)

* Allow build_config.json to be watched and dynamiclly reloaded

* Allow main entry point to be configured

* Add main state for endpoints dashboard

* Fixed broken png image for CF theme

* Prevent app actions when the app is the console app in cloud foundry (#1024)

* Prevent app applications when the app is the console app in cloud foundry

* Testing pipeline

* undo test commit

* Changes for stackatoInfo rename version api response change (#1025)

* Changes for stackatoInfo rename version api response change

* Fixed onLoggedIn - this is used in both verify and loggedIn - which now have different responses

* Fix failing e2e tests

* Update protractor.conf.js

* Fixed failing unit tests (#1028)

* Fix E2E tests (#1029)

* Remove application base path (#1026)

* Remove application base path

* Fix blank page

* Remove stackato (#1027)

* Changes for stackatoInfo rename version api response change

* Fixed onLoggedIn - this is used in both verify and loggedIn - which now have different responses

* Fix failing e2e tests

* Replace stackatoInfo with consoleInfo

* Fix hasty merge

* Fixed

* Fixed camel case

* Gettext removal (#1010)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Remove OEM_CONFIG - all done via the i18n mechanism now

* Last remaining gulp.config collections

* Merge remote-tracking branch 'origin/extensions' into remove-oem-config

# Conflicts:
#	i18n/en/product.json
#	src/app/model/userServiceInstance.model.js
#	src/plugins/cloud-foundry/services/cfServiceEndpoint.services.js
#	src/plugins/cloud-foundry/view/applications/application/delivery-pipeline/delivery-pipeline.module.js
#	src/plugins/code-engine/model/model.module.js
#	src/plugins/code-engine/services/ceServiceEndpoint.services.js
#	src/plugins/service-manager/services/smServiceEndpoint.services.js
#	tools/gulp.config.js
#	tools/gulpfile.js
#	tools/karma.conf.js

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* Remove .orig file

* Fixed lint issues

* Fixed lint error

* Remove old OEM scripts

* Fix for scss file inclusion from plugins

* First bunch of gettext() removals

* Delete stray .orig file

* Fixed merge issues

* More gettext() removals

* Fix merge problem

* Fix bad merge

* Fixed missing translate on buttons

* Rename 'green-box-console' to 'console-app' (#1030)

* Second round of gettext() removals - removed all from app and framework (#1031)

* Second round of gettext() removals - removed all from app and framework

* Fix missing translates

* Argghh . remove fdescribe

* Fixed type

* Tidy up add application dialog (#1032)

* Tidy up add application dialog

* Fix unit tests

* Display more quota information (#1033)

* Change Utilization to Quota

* Add additional quotas

* Make private domain listing more efficient

* capture non-basic services allowed property

* Show app instances quota information in space summary

* fix lint

* fix unit tests

* Show additional app metadata (#1034)

* Display additional metadata for apps

* fix lint

* Fix unit test

* Add stack information to app summary

* Fix unit tests

* Fix lint issue

* Refactored source tree to better support adding and removing componen… (#1035)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Transform examples into plugins to the application shell (#1036)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Transform examples into plugins to the application shell

* Examples are now a component

* Fixed lint issues

* Revert bower to correct default

* Increased karma timeout

* Move config to bower.json

* Change to force build

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Refactor the about page into a separate component (#1037)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Refactor the about page into a separate component

* Change to force build

* Moved about page unit test to correct location. Fixed name of default main state

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* More fixes following PR feedback

* Ensure 'View App' link is hidden for apps that are not running (#1038)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Ensure view app is hidden when app is not running

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* gate check

* Fix auto-focus in register endpoint slide out (#1040)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Fix auto-focus in register endpoint slide out
When only one type of endpoint can be registered we open directly on step 2
if the register slide out. This has an auto-focus on the first input field
which breaks the slide outs animation (it shows immediately instead of
sliding in). This applies the work around used elsewhere.

* Address feedback in PR

* More fixes following PR feedback.

* Fixed lint issues

* gate check

* Fix 'View App' link when there are no routes (#1044)

* Remove inject + prototypes patterns from plugins dir (#1017)

* Remove prototype and inject syntax/styles for src/app/!view
- includes refactoring events and utils services for ng-annotate

* Removed more injects

* Corrected name/param namespaces

* Merge fixes, shortened names

* Fix nav bar underline

* Shorted framework names

* Removed many inject from src/app/view

* Updated organization-model name to be inject compatible and other inject changes

* Remaining app/view injects and some from the cf plugin (i got carried away)

* Remaining prototypes in app/view

* Fix bad merge

* Merge fixes

* Fixes to examples + ng-docs

* Fix e2e test (nav bar collapsed sticky)

* Small non-refactor fixes
- Fixed remove from org button on users tab in endpoints dashboard
- Fixed error message when change of role fails
- Fixed some references to $hpe-primary to $brand-primary
- Fixed a couple of localisation errors

* Step 1 - Move vcs service funcs from endpoints service to vcs service
Step 2 - Move out endpoint management funcs from module controller to endpoints service

* Step 3 - Create plugin specific endpoint services and move out code
Step 4 - Update registration service to be type agnostic
Step 5 - fix lint/tests

* Move VCS service + UX over

* e2e fixes

* Fixed multiple bugs
- multiple register of endpoint services
- flash of 'no endpoints' message on dashboard
- correctly update endpoint state on external change

* Step 1: Move all endpoint cf code into cf plugins

* Fixed bad merge

* Small change to kick off ci

* Step 1 - Move endpoint dashboard code into plugin
Step 2 - Move out hce specific api code from cf to hce
Step 3 - Move test code out of cf and hce into their own plugin folders

* 1. Fixed unit tests
2. Moved code-engine and vcs models to cloud foundry plugin
3. Reserected mistakenly deleted delivery-logs

* Ensure smart-table updates when there are no endpoints
Bug...
- When there are no endpoints register one and then unregister it
- smart table would be hidden (ng-if) due to no endpoints, it's own internal collection is not updated as it's hidden
- register new endpoint, smart table is now shown however endpoint collection length has not changed so internal collection not updated
- result in smart table showing stale data, even though endpoints collection is correct

* e2e fix for endpoint table visibility (out of dom vs hidden)

* Trivial change to kick off CI

* Updates following review

* Fix application state in space applications table

* Change for CI...

* Lint fixes, added missing .spec files

* Fix failing e2e

* Step 1 - Remove plugin specific code from gulp.config + karma.config
- Need to come back to karma.config proxies section

* Step 2 - Move i18n into plugin folders
- Interesting point - when a lang overrides a string used as a variable,
anything that uses that variable must also be delcared in that lang. For
example see src/plugins/cloud-foundry/i18n/fr/common.json (menu:cloud-foundry
 would not be localised if it had no entry here)

* Step 3 - Move userServiceInstance list 'info' calls into plugins
- extend endpoint provider method to cover a 'refreshToken' func
- if there are many more of these we should think of a better method

* Move node_modules and bower_components (lib) to more standard location at the top-level folder

* Updates to get lint, tests etc working

* More improvements

* Only proxy /pp requests

* remove hp machine name from comment

* WIP

* WIP

* Last remaining gulp.config collections

* Gulp and lint fixes, removed myarse

* Fixed unit tests, template paths + i18n os agnostic

* Fix e2e, also include code-engine plugin for now. This is required by cf in the add pipeline flow (soon to be moved)

* Only include scss for plugins used

* - Moved code engine app tabs to code engine plugin
- Added generic way to add cf application tabs
- Mangled some other things (TODO)

* Completed app tabs (hide now works as expected) + Moved add-pipeline workflow into ce

* Removed much of the remaining HCE code
- There's stil items that link the application to a hce pipeline but these
are just variables. Without completely breaking the link between the console
 and hce it's tricky to change these.

* Lint + test fixes

* Lint and unit test fixes

* Removed a few more hce references

* e2e fixes, including screenshot report path fix

* Exlude tests for plugins that are not included

* Tidy ups and minor tweaks

* CI change

* WIP

* WIP

* Merge and unit test fixes

* Unit test + lint fixes, list.module prototype

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Move config to bower.json

* Change to force build

* Fixed merge fun, fixed app variables add/edit dialog bug

* Fixed merge issues, removed inject from most of service-manager

* Another bad merge artifact

* Updates following review + de-prototyped ApplicationSetupPipelineController

* Replace Helion icons with Material icons (#1039)

* Refactored source tree to better support adding and removing components with their own bower dependencies.

* Continued to refine. Fixed lint errors. Removed dev_config.json that was committed,

* Add dev_config in the build folder to .gitignore

* Get unit tests running again

* Fix unit tests

* Moved config.js file so src folder can go

* Fix gulp dev issue where plugins not loaded. Move test-server helper tool

* code-enging tests now working - fixed link-header-parser issue

* WIP: Fixing gulp watch

* Fix lint issue

* Further tidy-ups and refinements

* More tidy ups

* Fixed lint issue

* Fixed typo causing unit test run to fail

* Moved new files to correct locations

* Tidy up

* Fixed watches

* Get e2e coverage working

* Remove unused code in utils.js

* Fixed coverage combining of e2e and unit reports

* Transform examples into plugins to the application shell

* Examples are now a component

* Fixed lint issues

* Revert bower to correct default

* Increased karma timeout

* Move config to bower.json

* Change to force build

* Remove helion icons and replace with material icons.

* Removed remaining references to helion-icons in core code base

* Fix e2e tests

* Fix lint issue

* Fixing up a few merge issues

* Fixed missing function

* Missed a few

* Addressed PR feedback

* Fixed issue where about page does not show up (#1045)

* Fix issued where about page does not show up

* gate check

* Allow frontend base folder to be configurable (#1043)

* Add support for changing root folder. Move frontend config into a 'frontend' section in the json

* Fixed code coverage report src path mangling

* Fix issued with index.html

* Fix left margin of first button in wizards (#1046)

* Fix left margin of first button in wizards
- See add app 'cancel' button before change
- To see in/not in action look at both add app and assign user modals

* Sneaking in possible fix for intermittently failing e2e test

* Remove old components (#1047)

* Remove old components

* Remove tools unused

* Remove ci files

* Fix merge issue

* Rename module helion.framework to app.framework (#1049)

* Remove references to 'helion'  (#1050)

* Rename module helion.framework to app.framework

* Remove references to 'helion'
- Three remaining instances, two in README and one in nginx/license.txt
- In some places I've swapped 'helion' for 'stratos' where we might want to use 'app' instead

* gate check

* Tweak readme

* O nly make VCS call if we have an code engine (#1056)

* Fix issue with multiple svg images when using ng-if (#1057)

* Refactor out cf versions (#1053)

* Refactor out cf versions

* Removed erroneous extra applications menu item appearing

* Fix broken icon and incorrect template url

* CI bump

* Renamed Dockerfile.dev

* renamed backend Dockerfile

* Fix lint issue

* Rename backend gulp tasks

* Move unit test for endpoints dashboard (#1051)

* Move unit test for endpoints dashboard

* fix lint issue

* Renamed Dockerfiles

* updated gulpfile for funnsies

* remove hosting plugin

* Remove old references (#1052)

commit 5dad190fee8574c9c053a7899a9f5beb26062935
Merge: 3b13b8e 044208f
Author: Neil MacDougall <neil.macdougall@suse.com>
Date:   Thu Jun 1 15:06:44 2017 +0100

    Merge remote-tracking branch 'origin/suse' into remove-old-refs

commit 3b13b8e492c5e91fffa7647bb1dd5170a1ae8f45
Author: Neil MacDougall <nwmac@users.noreply.github.com>
Date:   Thu Jun 1 14:55:30 2017 +0100

    gate check

commit 044208f1c13ce42d4e95dafbe8c8c0c1783581a1
Author: Irfan Habib <irfan.habib@suse.com>
Date:   Thu Jun 1 14:53:19 2017 +0100

    Merge Portal Proxy (#1059)

    * update logging to use appropriate levels. remove logging that exposed sensitive info. remove extraneous debugging logs

    * drop unneeded headers var

    * update glide deps to include logrus

    * update new log entries from rebase to use logger instead of…
@nwmac nwmac deleted the remove-old-refs branch June 7, 2017 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants