cost 301 ms
在 Mountebank 響應中添加常見的 CORS 標頭

[英]Add common CORS headers in Mountebank responses

使用 mounteback 作為模擬服務器的 React 應用程序,我收到此錯誤 我設法找到了關於 OPTIONS 飛行前https://groups.google.com/g/mountebank-discuss/c/G7TRM87Pocs 但即使這樣還不夠,我不得不: 對於所有響應存根(我嘗試了 ...

Azure如何部署江湖騙子?

[英]How to deploy mountebank in Azure?

剛剛完成了基本的江湖騙子教程。 工作得很好。! 下一步是在 Azure 中部署江湖騙子。 我想知道是否有人已成功將江湖銀行部署到 azure 中? 您使用了哪種 PAAS/SAAS? ...

域名未加載響應,但 localhost 有效

[英]Domain name is not loading the response but localhost works

我正在將 mountebank 用於 mocking 響應,該響應在端口 2525 上的 Docker 中運行。在端口 443 上創建存根。當我使用 localhost 但不使用域名時響應成功。 域名在 hosts 文件中重定向。 操作系統:Windows 10 Pro 用域名打模擬失敗主機文件 P ...

如何在江湖騙子中創建多個冒名頂替者?

[英]How to create multiple imposters in mountebank?

我是 mountebank 的新手,我想知道我是否可以在一個帖子請求中創建多個冒名頂替者? 我正在使用以下請求 我收到來自 mountebank 的錯誤 如果我在這里輸錯了什么,有人能幫我嗎? ...

mountebank 開始使用 dotnet-testcontainers 時無法訪問 Mountebank 冒名頂替者端口

[英]Mountebank imposter ports not accessible when mountebank started using dotnet-testcontainers

我正在使用dotnet-testcontainers https://github.com/HofmeisterAn/dotnet-testcontainers在我的 xUnit 測試中使用 mountebank 啟動一個容器。 我可以成功創建 mountebank 客戶端並成功創建冒名頂替者。 問 ...

在同一個 EJS 文件中調用另一個 function

[英]Call another function within same EJS file

我試圖在同一個 ejs 文件中調用另一個 function。 我正在嘗試這個mountebank。 調用端點時,我得到以下錯誤 實際上我的要求是為響應增加一些延遲。 順便說一句,我嘗試了 Mountebank wait ,但看不到任何延遲。 ...

無法從同一網絡上的容器獲得響應,Docker compose,Mountebank

[英]Unable to get a response from a container on the same network, Docker compose, Mountebank

我有一個 Go 應用程序和三個用於應用程序、數據庫和 mountebank 的 docker 容器來模擬/存根 HTTP 響應。 我希望我的 mountebank 容器在 test_api(應用程序容器)發出請求時返回適當的響應。 當我使用 Postman 調用端點時,mountebank 容器 ...

使用 nodemon 進行掛載的 NPM 命令

[英]NPM command for mounteback with nodemon

我正在使用 mountebank JS 進行模擬,手動重新啟動它很痛苦。 我已經在 package.json 中安裝了 nodemon 並且能夠運行它,但是當我編輯和保存 ejs 文件時它沒有重新啟動。 這是我通過 nodemon 運行 mountebank 的命令: ...

Mountebank 謂詞不檢查標頭

[英]Mountebank predicates doesn't check headers

我有下面的代碼,看起來它沒有將標題作為謂詞檢查。 奇怪的是,當我將@作為值傳遞給 header X-CLIENT-ID時,它會驗證並將消息顯示為沒有謂詞匹配。 因為它不是正則表達式的一部分。 ...

2021-02-19 08:30:12   1   81    mountebank  
帶有 CORS 的 mountebank 謂詞代理

[英]mountebank predicate proxy with CORS

我設置了一個江湖騙子謂詞來代理下游服務器。 來自服務器的響應沒有將Access-Control-Allow-Origin設置為* 。 我絕對可以記錄來自下游服務器的響應,然后使用allowCORS選項啟動一個新的 mountebank 實例,該選項允許我的瀏覽器從這個測試替身中使用而不會出現 COR ...

是否可以在處理之前更改 mountebank 中的請求正文? 如果是,那我們該怎么做?

[英]Is it possible to alter the request body in mountebank before it gets processed ? If yes, then how can we do that?

我正在使用 mountebank 進行服務虛擬化。 我收到來自 mountebank 中測試應用程序的請求,其中包含 soap xml 作為請求正文。 在那個 soap xml 中,有一個標簽 wsa:Tohttp://[ip]:[port]/</wsa:To> 但我需要在它被 mou ...

在不命中目標應用程序的情況下動態更改 mountebank 冒名頂替者中保存的響應

[英]Dynamically change the saved response in mountebank imposter without hitting target app

我在性能測試中使用 mountebank 進行服務虛擬化。 因此,當我第一次使用請求參數(例如 flightNo=513)訪問 mountebank 服務 url 時,它會使用 proxyOnce 模式進入目標應用程序,並將響應保存在特定端口的冒名頂替者中,但第二次當我更改 flightNo 時,我 ...

有沒有辦法在 Mountbank 中傳遞路徑參數

[英]Is there way to pass path parameter in Mountbank

我試圖使用 Mountebank 傳遞路徑參數。 下面正在工作,但路徑是靜態的,沒有任何參數。 如果我需要執行GET /accounts/[account-no]其中account-no是一個參數 ...

2020-08-31 06:28:17   1   72    mountebank  
Mountebank 使用了錯誤的謂詞並忽略了 contains 中的值

[英]Mountebank using wrong predicate and ignoring the value in contains

我嘗試了他們的文檔,但它非常“基本”,所以希望這里有人能發現我的問題? 我有 2 個謂詞,一個使用錯誤的用戶,一個使用正確的用戶。 用戶的 base64 是通過 post-body 發送的,但似乎 Mountebank 的contains只是簡單地忽略它並選擇具有另一個包含值的謂詞......這是為 ...

Mountebank管道視頻文件stream響應不工作

[英]Mountebank piping video file stream to response not working

我試圖讓 Mountebank 將讀取的文件 stream pipe 從我的.ts MPEG-2 文件返回到 Mountebank 注入,以便客戶端可以接收 ZF7B44CFAFD5C52223D5498E96BC8 數據。 關於如何讀入文件有一個有用的 Node 實現,我讓它讀入了.m3u8文件, ...

mountebank 如何將 2 個冒名頂替者合並為一個文件

[英]mountebank how to merge 2 imposter into one file

我有 2 個應用程序,每個應用程序都使用相同的 mountebank(docker 映像)。 我維護了 2 個單獨的“冒名頂替者”文件,因為我們在不同的機器上運行應用程序。 我想在同一台機器上運行 2 個應用程序,只維護一個 mountebank docker 映像。 如何將文件合並為 1? ...

2020-01-08 10:00:12   1   71    mountebank  
分析 gzip 請求

[英]Analyse gzip request

我正在探索 mountebank 並且有一個案例,我需要分析 gziped json 請求以創建一個返回適當響應的謂詞。 我可以解壓 json 請求並使用 mountebank 分析 json 嗎? ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM