-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making playwright test work in pipelines (#17941)
* Adding playwright extension to recommended extension * Fixing args * Adding gulp commands for vscode * Adding smoke test steps in pipeline * Update npm dependencies and gulp commands * chore: Add init script for Xvfb server * chore: Add init script for MSSQL server * chore: Update npm dependencies and gulp commands * making test work on mac * chore: Refactor testHelpers.ts to improve code readability and maintainability * Adding mssql path * chore: Update mssqlExtensionPath in launchVscodeWithMsSqlExt.ts * reverting local changes * syncing to main * Adding xvfb to gulp * removing unnecessary files * chore: update npm test script name * new way of doing things * Removing disconnecting button * chore: Refactor query execution test * Fixing stuff * Reverting some changes * Removing carriage returns * Removing carriage newlines * Removing more carriage returns
- Loading branch information
1 parent
c3b803a
commit 1b20783
Showing
12 changed files
with
587 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ packages | |
*.nupkg | ||
*.orig | ||
*.vsix | ||
*.trx | ||
*BROWSE.VC* | ||
tools | ||
examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#! /bin/sh -e | ||
# | ||
### BEGIN INIT INFO | ||
# Provides: sqlserver | ||
# Required-Start: $all | ||
# Required-Stop: | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Manages SQL Server instance on Linux | ||
### END INIT INFO | ||
|
||
DAEMON="/opt/mssql/bin/sqlservr" | ||
daemon_OPT="" | ||
DAEMONUSER="mssql" | ||
daemon_NAME="sqlservr" | ||
|
||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/var/opt/mssql | ||
|
||
# Check sqlserver is present | ||
if [ ! -x $DAEMON ]; then | ||
log_failure_msg "$DAEMON not present or not executable" | ||
exit 1 | ||
fi | ||
|
||
# Load init functions | ||
. /lib/lsb/init-functions | ||
|
||
|
||
d_start () { | ||
log_daemon_msg "Starting system $daemon_NAME Daemon" | ||
start-stop-daemon --background --name $daemon_NAME --start --quiet --chuid $DAEMONUSER --exec $DAEMON --umask 007 --oknodo | ||
log_end_msg $? | ||
} | ||
|
||
d_stop () { | ||
log_daemon_msg "Stopping system $daemon_NAME Daemon" | ||
start-stop-daemon --name $daemon_NAME --stop --retry 5 --quiet --name $daemon_NAME --oknodo | ||
log_end_msg $? | ||
} | ||
|
||
case "$1" in | ||
|
||
start|stop) | ||
d_${1} | ||
;; | ||
|
||
restart|reload|force-reload) | ||
d_stop | ||
d_start | ||
;; | ||
|
||
force-stop) | ||
d_stop | ||
;; | ||
|
||
status) | ||
status_of_proc "$daemon_NAME" "$DAEMON" "system-wide $daemon_NAME" && exit 0 || exit $? | ||
;; | ||
*) | ||
echo "Usage: /etc/init.d/$daemon_NAME {start|stop|force-stop|restart|reload|force-reload|status}" | ||
exit 1 | ||
;; | ||
esac | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
# | ||
# /etc/rc.d/init.d/xvfbd | ||
# | ||
# chkconfig: 345 95 28 | ||
# description: Starts/Stops X Virtual Framebuffer server | ||
# processname: Xvfb | ||
# | ||
### BEGIN INIT INFO | ||
# Provides: xvfb | ||
# Required-Start: $remote_fs $syslog | ||
# Required-Stop: $remote_fs $syslog | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Start xvfb at boot time | ||
# Description: Enable xvfb provided by daemon. | ||
### END INIT INFO | ||
|
||
[ "${NETWORKING}" = "no" ] && exit 0 | ||
|
||
PROG="/usr/bin/Xvfb" | ||
PROG_OPTIONS=":10 -ac -screen 0 1024x768x24" | ||
PROG_OUTPUT="/tmp/Xvfb.out" | ||
|
||
case "$1" in | ||
start) | ||
echo "Starting : X Virtual Frame Buffer " | ||
$PROG $PROG_OPTIONS>>$PROG_OUTPUT 2>&1 & | ||
disown -ar | ||
;; | ||
stop) | ||
echo "Shutting down : X Virtual Frame Buffer" | ||
killproc $PROG | ||
RETVAL=$? | ||
[ $RETVAL -eq 0 ] && /bin/rm -f /var/lock/subsys/Xvfb | ||
/var/run/Xvfb.pid | ||
echo | ||
;; | ||
restart|reload) | ||
$0 stop | ||
$0 start | ||
RETVAL=$? | ||
;; | ||
status) | ||
status Xvfb | ||
RETVAL=$? | ||
;; | ||
*) | ||
echo $"Usage: $0 (start|stop|restart|reload|status)" | ||
exit 1 | ||
esac | ||
|
||
exit $RETVAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
export const mssqlActivityBarButton = 'a[class^="action-label activity-workbench-view-extension-objectExplorer"]'; | ||
export const addConnectionButton = 'div[aria-label="Add Connection"]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.