Cannot add --skipApiVersionCheck when using testcontainers
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
### Which service(blob, file, queue, table) does this issue concern?
Blobs
### Which version of the Azurite was used?
Latest - there's no version listed here: https://hub.docker.com/r/microsoft/azure-storage-azurite, but that's what I am using.
### Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
### What's the Node.js version?
What's inside the image
### What problem was encountered?
Cannot figure out how to pass in --skipApiVersionCheck
### Steps to reproduce the issue?
If possible, please provide the debug log using the -d parameter, replacing \ with an appropriate path for your OS, or review the instructions for docker containers:
```
var builder = new ContainerBuilder()
.WithImage("mcr.microsoft.com/azure-storage/azurite")
.WithPortBinding(10000, true)
.WithPortBinding(10001, true)
.WithPortBinding(10002, true)
.WithName($"{_namePrefix}-azurite")
.WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("Azurite Table service is successfully listening at"));
if (_skipVersionCheck)
{
builder.WithCommand("--skipApiVersionCheck");
}
Container = builder.Build();
await Container.StartAsync();
```
Getting the following error:
```
Azure.RequestFailedException : The API version 2024-08-04 is not supported by Azurite. Please upgrade Azurite to latest version and retry. If you are using Azurite in Visual Studio, please check you have installed latest Visual Studio patch. Azurite command line parameter "--skipApiVersionCheck" or Visual Studio Code configuration "Skip Api Version Check" can skip this error.
RequestId:7146ecf5-712b-4593-b754-61959a659270
Time:2024-07-19T08:43:03.147Z
```
Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
### Have you found a mitigation/solution?
No - tried adding it via WithEntryPoint and that didn't work either.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.