This file contains hidden or 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
$request = @{ | |
Uri = 'http://localhost/SuperImportant/service.svc' | |
Method = 'POST' | |
Body = '{ | |
"name": "testing", | |
"prio": "24"}' | |
ContentType = 'application/json' | |
} | |
while (1) |
This file contains hidden or 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
$ProgressPreference = "SilentlyContinue" | |
$tokenResponse = Invoke-WebRequest -UseBasicParsing -Headers @{"X-IDENTITY-HEADER"=$env:IDENTITY_HEADER} -Uri "$($env:IDENTITY_ENDPOINT)?resource=https://storage.azure.com/&api-version=2019-08-01" | |
$tokenResponse.RawContent |
This file contains hidden or 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
script: | |
def holder = new com.eviware.soapui.support.XmlHolder( mockRequest.requestContent ) | |
def someInput = holder["//*[local-name()='SomeInput']"] | |
def random = Math.random() | |
requestContext.someInput = someInput | |
requestContext.randomText = random.toString() | |
response: | |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://kramerica-industries.lan/webservices/dummyservice/1.0" xmlns:res="http://oresundsbron.com/types/result"> | |
<soapenv:Header/> |
This file contains hidden or 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
#!/bin/bash | |
# Kubernetes Node Resource Analysis Script | |
# Shows CPU/Memory requests vs available per node + top 10 requesters | |
# Multi-user friendly version | |
set -e | |
# Parse command line arguments | |
CONTEXT="" |
OlderNewer