-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests to pre-install the az containerapp extension
- Loading branch information
Showing
11 changed files
with
167 additions
and
183 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/containerapp-compose/azext_containerapp_compose/tests/latest/common.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
import os | ||
from azure.cli.testsdk import (ScenarioTest) | ||
|
||
TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) | ||
|
||
|
||
def write_test_file(filename, content): | ||
test_file = open(filename, "w", encoding='utf-8') | ||
_ = test_file.write(content) | ||
test_file.close() | ||
|
||
|
||
def clean_up_test_file(filename): | ||
if os.path.exists(filename): | ||
os.remove(filename) | ||
|
||
|
||
class ContainerappComposePreviewScenarioTest(ScenarioTest): | ||
def setUp(self): | ||
self.cmd("extension add --name containerapp") | ||
return super().setUp() |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.