Skip to content

Commit

Permalink
feat(ambari-admin): switch to chromium-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
zRains committed Aug 13, 2024
1 parent 9fc9680 commit e1277b4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ambari-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<commandlineArgs>${args.shell} ${basedir}${dirsep}set-ambari-version.${fileextension.shell} ${ambariVersion}</commandlineArgs>
</configuration>
</execution>
<!-- <execution>
<execution>
<id>unit test</id>
<phase>test</phase>
<goals>
Expand All @@ -149,7 +149,7 @@
<argument>test-single-run</argument>
</arguments>
</configuration>
</execution> -->
</execution>
</executions>
</plugin>
<plugin>
Expand Down
4 changes: 1 addition & 3 deletions ambari-admin/src/main/resources/ui/admin-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
"http-server": "0.6.1",
"jasmine-core": "^3.1.0",
"karma": "^2.0.4",
"karma-chrome-launcher": "0.1.4",
"karma-jasmine": "^1.1.2",
"karma-ng-html2js-preprocessor": "^1.0.0",
"karma-phantomjs-launcher": "^1.0.4",
"phantomjs": "^2.1.7",
"karma-chrome-launcher": "3.2.0",
"protractor": "1.0.0"
},
"scripts": {
Expand Down
19 changes: 17 additions & 2 deletions ambari-admin/src/main/resources/ui/admin-web/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,28 @@ module.exports = function(config){

autoWatch : true,

colors: true,

logLevel: config.LOG_INFO,

captureTimeout: 60000,

browserNoActivityTimeout: 30000,

frameworks: ['jasmine'],

browsers: ['PhantomJS'],
customLaunchers: {
ChromeHeadlessCustom: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-gpu', '--disable-translate', '--disable-extensions']
}
},

browsers: ['ChromeHeadlessCustom'],

plugins : [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-ng-html2js-preprocessor'
],

Expand Down

0 comments on commit e1277b4

Please sign in to comment.