Skip to content

Commit

Permalink
Re-enable project auth cache, add UI integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Feb 26, 2015
1 parent 56c9dc5 commit a93e065
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/app/views/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<h1 style="margin-top: 10px;">Projects</h1>
<div class="tile tile-click" ng-click="tileClickHandler($event)" style="margin-bottom: 10px;" ng-repeat="project in projects">
<h2><a class="tile-target" href="/project/{{project.metadata.name}}">{{project.displayName || project.metadata.name}}</a></h2>
<h2 class="project"><a class="tile-target" href="/project/{{project.metadata.name}}">{{project.displayName || project.metadata.name}}</a></h2>
<div class="muted" style="margin-top: -5px;" ng-if="project | annotation : 'description'">{{project | annotation : 'description'}}</div>
</div>
<div ng-if="emptyMessage && (projects | hashSize) == 0">{{emptyMessage}}</div>
Expand Down
6 changes: 6 additions & 0 deletions assets/test/e2e/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ describe('', function() {
commonTeardown();
});

it('should be able to list the test project', function() {
browser.get('/');

expect(element(by.cssContainingText("h2.project","test")).isPresent()).toBe(true);
});

it('should have access to the test project', function() {
browser.get('/project/test');

Expand Down
2 changes: 1 addition & 1 deletion pkg/assets/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -56300,7 +56300,7 @@ var _views_projects_html = []byte(`<div class="container">
<div>
<h1 style="margin-top: 10px">Projects</h1>
<div class="tile tile-click" ng-click="tileClickHandler($event)" style="margin-bottom: 10px" ng-repeat="project in projects">
<h2><a class="tile-target" href="/project/{{project.metadata.name}}">{{project.displayName || project.metadata.name}}</a></h2>
<h2 class="project"><a class="tile-target" href="/project/{{project.metadata.name}}">{{project.displayName || project.metadata.name}}</a></h2>
<div class="muted" style="margin-top: -5px" ng-if="project | annotation : 'description'">{{project | annotation : 'description'}}</div>
</div>
<div ng-if="emptyMessage && (projects | hashSize) == 0">{{emptyMessage}}</div>
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (cfg Config) startMaster() error {
openshiftConfig.RunDeploymentConfigController()
openshiftConfig.RunDeploymentConfigChangeController()
openshiftConfig.RunDeploymentImageChangeTriggerController()
openshiftConfig.RunProjectAuthorizationCache()

return nil
}
Expand Down

0 comments on commit a93e065

Please sign in to comment.