diff --git a/files/browserup.load.yaml b/files/browserup.load.yaml deleted file mode 100644 index ef1b86aa..00000000 --- a/files/browserup.load.yaml +++ /dev/null @@ -1,39 +0,0 @@ -scenario: - name: GiveMeABetterName - total_users: 50 - profiles: - - name: "PostManExample" - command: "newman run --delay-request $THINK_TIME postman-example.json" - think_time: "30s" - artifact_dir: "." - iteration_delay: "10s" - allocation: "34%" - - name: "PlayWrightJSExample" - command: "node playwright-js-example.js" - think_time: "30s" - artifact_dir: "." - iteration_delay: "10s" - allocation: "33%" - - name: "SeleniumPyExample" - command: "python3 selenium-js-example.cjs" - think_time: "30s" - artifact_dir: "." - iteration_delay: "10s" - allocation: "33%" - stop_after: 15m - ramp: - - ramp_to: 100% - over: 5m - -reports: - - name: "UrlResponseTime" - title: "URL 90th Response Time (SLA)" - type: "line" - cards: - - metrics: - - metric: "urls.response_ms.avg" - check: - "<": 2000 - -settings: - cluster_type: local diff --git a/lib/commands/pathdetect.mjs b/lib/commands/pathdetect.mjs deleted file mode 100644 index a0c2d4b0..00000000 --- a/lib/commands/pathdetect.mjs +++ /dev/null @@ -1,48 +0,0 @@ -export function isSystemDirectory(dirPath) { - // Normalize the directory path to lower case and ensure it ends with a slash - dirPath = dirPath.toLowerCase().replace(/\\+/g, '/'); - if (!dirPath.endsWith('/')) { - dirPath += '/'; - console.log(dirPath) - } - - // Known system directories for Windows and Linux - const windowsSystemDirs = [ - 'c:/', - 'c:/windows/', - 'c:/program files/', - 'c:/program files (x86)/', - 'c:/programdata/', - 'c:/users/', - 'c:/windows/system32/', - 'c:/windows/syswow64/' - ]; - - const linuxSystemDirs = [ - '/', - '/bin/', - '/sbin/', - '/usr/', - '/usr/bin/', - '/usr/sbin/', - '/etc/', - '/var/', - '/var/lib/', - '/opt/', - '/lib/', - '/lib64/', - '/tmp/', - '/boot/', - '/home/', - '/root/', - '/mnt/', - '/media/', - '/srv/' - ]; - - // Combine both lists - const systemDirs = windowsSystemDirs.concat(linuxSystemDirs); - - // Check if the directory path is an exact match to any known system directory - return systemDirs.includes(dirPath); - } diff --git a/postman/postman-example.json b/postman/postman-example.json deleted file mode 100644 index 3c9281de..00000000 --- a/postman/postman-example.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "info": { - "_postman_id": "04a340dd-30ed-4067-8757-b2b0a1a6d777", - "name": "Collection for Toy REST API", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "80898" - }, - "item": [ - { - "name": "http://playground.browserup.com/api/toys", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "http://playground.browserup.com/api/toys", - "protocol": "http", - "host": [ - "playground", - "browserup", - "com" - ], - "path": [ - "api", - "toys" - ] - } - }, - "response": [] - } - ] -} \ No newline at end of file