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
import pytest | |
from selenium import webdriver | |
@pytest.fixture | |
def browser(): | |
# Setup code | |
options = webdriver.FirefoxOptions() | |
options.headless = True # Run the browser in headless mode | |
driver = webdriver.Firefox(options=options) |
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
# run add-azaccount if login issues | |
# ---- | |
# If az tools not installed, run: | |
# Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi | |
################################################ | |
$vaultName_old = '' | |
$subscription_old = '' | |
$vaultName_new = '' | |
$subscription_new = '' |
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
Function Export-SonarQubeProject { | |
<# | |
.DESCRIPTION | |
Export projects from SonarQube into a .CSV (hence after Excel .XSLX file) | |
Script takes care of retrieving up to 10000 hits iteratively for your search criteria. And will warn if you have over 10000 hits which is SonarQube's limitation. | |
You can adapt the default parameters below for easy usage. In the 'Process' section there are parameters for more or less filtering on SonarQube projects. | |
.EXAMPLE | |
Export by user's favorites. Make sure you run this .PS1 file so it is loaded into your session. |