Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Yuval Yaron 7b81ebe952 Remove the usage of azure-cli-core library (#3381)
* remove usage of azure.cli.core from airlock processor

* use urllib for parsing url

* update the way we get webapp_suffix  - to match the most recent  version of the module

* remove usage of azure.cli.core from resource processor

* remove usage of azure.cli.core from the api

* fix usage of terraform module terraform_azurerm_environment_configuration

* remove ARM_ENVIRONMENT where it's not used

* update versions

* remove unused os import from tests

* add credential_scopes to the config

* fix usage of RESOURCE_MANAGER_ENDPOINT in CREDENTIAL_SCOPES

* change the github source for terraform_azurerm_environment_configuration

* temporarily remove the version for terraform_azurerm_environment_configuration

* temporarily use the hash of the latest commit

* temporarily use the hash of the latest commit instead of version 1.0.1 of terraform_azurerm_environment_configuration

* update core
2023-04-03 09:52:14 +00:00
Anat Balzam f7b061e925 Use auth libraries to authenticate in E2E tests (#3344)
* refactor e2e auth

* generic auth func

* change func name to get_aad_authority_fqdn

---------

Co-authored-by: Anat Balzam <anat@example.com>
2023-04-03 09:49:48 +00:00
Liza Shakury d129b012d4 Handle exceptions on getting token from cache (#3334)
* If no cached token was found get a new token

* Upgrade api version

* Upgrade api version
2023-04-03 09:47:59 +00:00
Yuval Yaron f9b758922c Add support for setting the cloud environment in TRE CLI (#3300)
* rename cli project

* get token using ClientSecretCredential instead of doing REST calls

* use AuthorityBuilder instead of hardcoded authority

* move shared auth code to authentication.py

* update version

* add cloud option for setting the cloud env in tre cli

* set the cloud in tre cli login in bash script

* Revert "set the cloud in tre cli login in bash script"

This reverts commit 104d397ff7.

* Revert "add cloud option for setting the cloud env in tre cli"

This reverts commit c10728bd34.

* use az cli to get the cloud environment
2023-04-03 09:45:36 +00:00
Tamir Kamara 8e73bb9243
Update python dependencies (#3048) 2023-01-03 15:13:18 +00:00
Yuval Yaron fa275aba77
Update API dependencies (dependabot) (#3023)
* update API dependencies as dependabot suggested

* update setup.py

* update api version
2022-12-28 08:06:17 +00:00
dependabot[bot] bbb04eab7a
Bump tabulate from 0.8.10 to 0.9.0 (#3005)
Bumps [tabulate](https://github.com/astanin/python-tabulate) from 0.8.10 to 0.9.0.
- [Release notes](https://github.com/astanin/python-tabulate/releases)
- [Changelog](https://github.com/astanin/python-tabulate/blob/master/CHANGELOG)
- [Commits](https://github.com/astanin/python-tabulate/compare/v0.8.10...v0.9.0)

---
updated-dependencies:
- dependency-name: tabulate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-26 15:55:26 +00:00
Tamir Kamara 0582086bfb
Update python dependencies (#2907)
* update python dependencies

* versions

* fix pyetst asyncio

* lint bash

* comment check in a test
2022-11-27 16:58:24 +00:00
Stuart Leeks 97cf9e80e0
CLI: Add missing commands and bug fixes (#2784)
* Add shell completion for workspace id in get-token

* Add --decode option to get-token command

* Add template registration commands

* Update register bundle script to use the CLI

* Fix default table query

* Add shared-service update/set-enabled

* Update ACR login step in cli-package.yml

* Update CHANGELOG
2022-10-28 11:44:15 +01:00
Stuart Leeks 2d70632e73
Add metadata endpoint (#2794)
* Add API metadata endpoint

* Bump API version

* Update tre login to enable querying metadata endpoint

* Add API version to UI

* Update CHANGELOG
2022-10-27 17:52:38 +00:00
James Griffin f99e93d058
Restructure Airlock requests & add createdBy field (#2779)
* Fixed initiator queries and display

* Update version & changelog

* Fix tests

* Added createdBy field
Added migrations to rename several airlock fields
Migrate history[0].user to createdBy

* Fix tests

* user -> updated_by in tests

* Set createdBy in new requests

* Fix enrich requests

* Fix create_airlock_request_item test

* Fix redeclare of status and formatting

Co-authored-by: jjgriff93 <jamesgr@microsoft.com>
2022-10-26 14:58:14 +00:00
Stuart Leeks ac7261d871
CLI Updates (#2747)
* Add invoke action commands

* Add shell completion for shared service IDs

* Remove TODO comment

* Add basic table query for overall costs

* Add migrations command

* Handle missing app role name

* Add raw output option

* Add airlock request title

* airlock -> airlock-request and fix error text

* Fix airlock request id shell completion

* Add table format for airlock request submit response

* Fix up airlock request review URL

* Add example airlock-request creation

* Add CLI changes to CHANGELOG

* Add table format to airlock review

* Fix table output for airlock list

* Add airlock-request cancel command

* Add TODO comments

* Add workspace service delete command

* Update comment on table formatting

* Update output command to take response and exit on error

* Update api_client typing to avoid private module import

* Add type annotations to shell_complete methods
2022-10-21 08:27:24 +00:00
Stuart Leeks 89a29dd547
Initial CLI code (#2537)
* Initial CLI code
* Install tre CLI in dev container
* Update deploy_shared_service.sh to use tre CLI
2022-10-07 09:35:19 +01:00