Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
bf63231
flexible server migration
DaeunYim Feb 7, 2021
a018b7d
single server migration draft
DaeunYim Feb 8, 2021
65fe403
style fixed
DaeunYim Feb 8, 2021
5abef3c
allow large reponse for proxy test
DaeunYim Feb 8, 2021
8b16281
singles server test fixed
DaeunYim Feb 9, 2021
75cd854
minor bugs fixed
DaeunYim Feb 9, 2021
822c738
linter and style issues fixed
DaeunYim Feb 9, 2021
dfe3896
config files added
DaeunYim Feb 10, 2021
bdd876c
empty commit
DaeunYim Feb 10, 2021
7a144d7
empty commit
DaeunYim Feb 18, 2021
ecd6dd2
pulled dev repo
DaeunYim Mar 2, 2021
6d83a71
pulled from dev
DaeunYim Mar 3, 2021
221f2e4
fix recording files for the migration code
DaeunYim Mar 3, 2021
f037cac
fixed mariadb failing test case
DaeunYim Mar 3, 2021
8acc000
fix for failing test cases
DaeunYim Mar 4, 2021
8fd0fa0
fixed typo
DaeunYim Mar 4, 2021
0c25766
Merge branch 'dev' of https://github.com/Azure/azure-cli into python-…
DaeunYim Mar 5, 2021
fdce3c9
change datetime function to accomodate python 3.6
DaeunYim Mar 6, 2021
cc30375
takes care of two different time input
DaeunYim Mar 6, 2021
ab1eb2e
style fixed
DaeunYim Mar 6, 2021
2154e3a
restore source parameter added
DaeunYim Mar 9, 2021
7486023
bug fix auth, LRO polling commands, object create by dict
DaeunYim Mar 10, 2021
16aa866
Merge branch 'python-sdk-migration-2' of https://github.com/DaeunYim/…
DaeunYim Mar 10, 2021
dfe33e0
restore reverted to no source parameters
DaeunYim Mar 10, 2021
62d0d4c
db for pg
DaeunYim Mar 10, 2021
d317139
added pg db tests
DaeunYim Mar 10, 2021
dc9e44c
help text updated and recording files updated with the database change
DaeunYim Mar 11, 2021
0ef1240
empty commit
DaeunYim Mar 11, 2021
98b9265
Merge branch 'dev' into python-sdk-migration-2
DaeunYim Mar 11, 2021
e85714d
empty commit
DaeunYim Mar 11, 2021
f2e589f
Merge branch 'dev' into s184
DaeunYim Mar 11, 2021
5477413
revert resource module
DaeunYim Mar 11, 2021
61ce4e1
Merge branch 's184' of https://github.com/DaeunYim/azure-cli into s184
DaeunYim Mar 11, 2021
3d71790
id = child name fix
DaeunYim Mar 12, 2021
bb840b3
Merge branch 'python-sdk-migration-2' of https://github.com/DaeunYim/…
DaeunYim Mar 12, 2021
45703ac
Merge branch 'dev' of https://github.com/Azure/azure-cli into python-…
DaeunYim Mar 15, 2021
945de4d
network module test failure fixed
DaeunYim Mar 15, 2021
415d161
pulled migration branch
DaeunYim Mar 15, 2021
1953b87
pulled merged sdk migration
DaeunYim Mar 16, 2021
11cc8ea
remove and fix rdbms params file
DaeunYim Mar 16, 2021
52feb43
fix typo
DaeunYim Mar 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added pg db tests
  • Loading branch information
DaeunYim committed Mar 10, 2021
commit d317139d5c92039c131f36fac4af32bd88afa6fd
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def flexible_server_create(cmd, client,
sku = server_result.sku.name
host = server_result.fully_qualified_domain_name

logger.warning('Make a note of your password. If you forget, you would have to \
reset your password with \'az postgres flexible-server update -n %s -g %s -p <new-password>\'.',
logger.warning('Make a note of your password. If you forget, you would have to'
'reset your password with "az postgres flexible-server update -n %s -g %s -p <new-password>".',
server_name, resource_group_name)

_update_local_contexts(cmd, server_name, resource_group_name, location, user)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,334 @@
interactions:
- request:
body: '{"properties": {"charset": "utf8", "collation": "en_US.utf8"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db create
Connection:
- keep-alive
Content-Length:
- '62'
Content-Type:
- application/json
ParameterSetName:
- -g -s -d
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBForPostgreSql/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest?api-version=2020-11-05-preview
response:
body:
string: '{"operation":"UpsertServerDatabaseManagementOperation","startTime":"2021-03-10T18:48:13.823Z"}'
headers:
azure-asyncoperation:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/cb1d35b0-50e7-4f84-8d8c-89b7419e81e7?api-version=2020-11-05-preview
cache-control:
- no-cache
content-length:
- '94'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:13 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/cb1d35b0-50e7-4f84-8d8c-89b7419e81e7?api-version=2020-11-05-preview
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db create
Connection:
- keep-alive
ParameterSetName:
- -g -s -d
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/cb1d35b0-50e7-4f84-8d8c-89b7419e81e7?api-version=2020-11-05-preview
response:
body:
string: '{"name":"cb1d35b0-50e7-4f84-8d8c-89b7419e81e7","status":"Succeeded","startTime":"2021-03-10T18:48:13.823Z"}'
headers:
cache-control:
- no-cache
content-length:
- '107'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:23 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db create
Connection:
- keep-alive
ParameterSetName:
- -g -s -d
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBForPostgreSql/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest?api-version=2020-11-05-preview
response:
body:
string: '{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest","name":"flexibleserverdbtest","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"}'
headers:
cache-control:
- no-cache
content-length:
- '388'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:24 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db show
Connection:
- keep-alive
ParameterSetName:
- -g -s -d
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBForPostgreSql/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest?api-version=2020-11-05-preview
response:
body:
string: '{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest","name":"flexibleserverdbtest","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"}'
headers:
cache-control:
- no-cache
content-length:
- '388'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:25 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db list
Connection:
- keep-alive
ParameterSetName:
- -g -s
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBForPostgreSql/flexibleServers/azuredbclitest-000002/databases?api-version=2020-11-05-preview
response:
body:
string: '{"value":[{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/azure_maintenance","name":"azure_maintenance","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"},{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/postgres","name":"postgres","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"},{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/azure_sys","name":"azure_sys","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"},{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/flexibleserverdb","name":"flexibleserverdb","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"},{"properties":{"charset":"UTF8","collation":"en_US.utf8"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest","name":"flexibleserverdbtest","type":"Microsoft.DBforPostgreSQL/flexibleServers/databases"}]}'
headers:
cache-control:
- no-cache
content-length:
- '1896'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:26 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db delete
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -g -s -d --yes
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBForPostgreSql/flexibleServers/azuredbclitest-000002/databases/flexibleserverdbtest?api-version=2020-11-05-preview
response:
body:
string: '{"operation":"DropServerDatabaseManagementOperation","startTime":"2021-03-10T18:48:27.333Z"}'
headers:
azure-asyncoperation:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/36af96ee-c341-477a-a6be-08ea55033221?api-version=2020-11-05-preview
cache-control:
- no-cache
content-length:
- '92'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:26 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/36af96ee-c341-477a-a6be-08ea55033221?api-version=2020-11-05-preview
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
CommandName:
- postgres flexible-server db delete
Connection:
- keep-alive
ParameterSetName:
- -g -s -d --yes
User-Agent:
- AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-rdbms/unknown Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/36af96ee-c341-477a-a6be-08ea55033221?api-version=2020-11-05-preview
response:
body:
string: '{"name":"36af96ee-c341-477a-a6be-08ea55033221","status":"Succeeded","startTime":"2021-03-10T18:48:27.333Z"}'
headers:
cache-control:
- no-cache
content-length:
- '107'
content-type:
- application/json; charset=utf-8
date:
- Wed, 10 Mar 2021 18:48:37 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- group delete
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- --name --yes --no-wait
User-Agent:
- python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3
azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI)
accept-language:
- en-US
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
date:
- Wed, 10 Mar 2021 18:48:39 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkcwMzEwMDA6MkRQUk9YWVJFU09VUkNFTUdNVFNDRU5BUi1FQVNUVVMyRVVBUCIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMmV1YXAifQ?api-version=2020-10-01
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
status:
code: 202
message: Accepted
version: 1
Loading