Skip to content

Commit

Permalink
Merge branch 'zRains:feat-chromium-browser' into feat-chromium-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
akioee authored Aug 13, 2024
2 parents dfb60d6 + e1277b4 commit fd551a2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 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
6 changes: 3 additions & 3 deletions ambari-server/src/main/python/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def getRunSetupCommand(self, expected_hostname):
user_run_as = self.shared_state.user_run_as
server = self.shared_state.ambari_server
version = self.getAmbariVersion()
return ' '.join(['python', setupFile, expected_hostname, passphrase, server, user_run_as, version])
return ' '.join(['python3', setupFile, expected_hostname, passphrase, server, user_run_as, version])

def runSetupAgent(self):
self.host_log.write("==========================\n")
Expand Down Expand Up @@ -609,7 +609,7 @@ def getRunSetupWithPasswordCommand(self, expected_hostname):
version = self.getAmbariVersion()
port = self.getAmbariPort()
passwordFile = self.getPasswordFile()
return "{sudo} -S python ".format(sudo=AMBARI_SUDO) + str(setupFile) + " " + str(expected_hostname) + \
return "{sudo} -S python3 ".format(sudo=AMBARI_SUDO) + str(setupFile) + " " + str(expected_hostname) + \
" " + str(passphrase) + " " + str(server)+ " " + quote_bash_args(str(user_run_as)) + " " + str(version) + \
" " + str(port) + " < " + str(passwordFile)

Expand All @@ -620,7 +620,7 @@ def getRunSetupWithoutPasswordCommand(self, expected_hostname):
user_run_as = self.shared_state.user_run_as
version=self.getAmbariVersion()
port=self.getAmbariPort()
return "{sudo} python ".format(sudo=AMBARI_SUDO) + str(setupFile) + " " + str(expected_hostname) + \
return "{sudo} python3 ".format(sudo=AMBARI_SUDO) + str(setupFile) + " " + str(expected_hostname) + \
" " + str(passphrase) + " " + str(server)+ " " + quote_bash_args(str(user_run_as)) + " " + str(version) + \
" " + str(port)

Expand Down

0 comments on commit fd551a2

Please sign in to comment.