-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Container Instancesaz containeraz containerService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.TestTestTest
Milestone
Description
Describe the bug
Automation Test (Profile Latest) Python36 intermittently fails for test_container_attach
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fcedae25f98>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fcedaf434a8>
command = 'container attach -g clitest.rg000001 -n clicontainer000002'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from six import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
self.output = stdout_buf.getvalue()
self.applog = logging_buf.getvalue()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/home/vsts/work/1/s/src/azure-cli/azure/cli/command_modules/container/tests/latest/recordings/test_container_attach.yaml') in your current record mode ('once').
E No match for the request (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerInstance/containerGroups/clicontainer000002?api-version=2021-07-01>) was found.
E Found 5 similar requests with 0 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerInstance/containerGroups/clicontainer000002?api-version=2021-07-01>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path', '_custom_request_query_matcher']
E Matchers failed :
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerInstance/containerGroups/clicontainer000002?api-version=2021-07-01>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path', '_custom_request_query_matcher']
E Matchers failed :
E
E 3 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerInstance/containerGroups/clicontainer000002?api-version=2021-07-01>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path', '_custom_request_query_matcher']
E Matchers failed :
=========================== short test summary info ============================
FAILED src/azure-cli/azure/cli/command_modules/container/tests/latest/test_container_commands.py::AzureContainerInstanceScenarioTest::test_container_attach
Logs: 458.log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Container Instancesaz containeraz containerService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.TestTestTest