Skip to content

[WIP] network experiment#996

Merged
zikalino merged 79 commits intomasterfrom
network-experiment
Oct 25, 2019
Merged

[WIP] network experiment#996
zikalino merged 79 commits intomasterfrom
network-experiment

Conversation

@zikalino
Copy link
Copy Markdown


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

@azuresdkci
Copy link
Copy Markdown

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/Azure/azure-cli-extensions.git@network-experiment#subdirectory=src/$EXT&egg=$EXT"

Zim Kalinowski and others added 14 commits October 25, 2019 04:45
c.argument('endpoint_a_endpoint', id_part=None, help='The URL of the control endpoint in <hostname>[/<custom-path>] format (e.g., www.contoso.com or www.contoso.com/some/path/to/trans.gif). Must support HTTPS. If an object path isn\'t specified explicitly, Internet Analyzer will use "/apc/trans.gif" as the object path by default, which is where the preconfigured endpoints are hosting the one-pixel image.')
c.argument('endpoint_b_name', id_part=None, help='The name of the other endpoint')
c.argument('endpoint_b_endpoint', id_part=None, help='The URL of the other endpoint in <hostname>[/<custom-path>] format (e.g., www.contoso.com or www.contoso.com/some/path/to/trans.gif). Must support HTTPS. If an object path isn\'t specified explicitly, Internet Analyzer will use "/apc/trans.gif" as the object path by default, which is where the preconfigured endpoints are hosting the one-pixel image.')
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the Experiment')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the Experiment')
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the test')

c.argument('name', id_part=None, help='The name of the Internet Analyzer profile to be updated')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('tags', tags_type)
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the Experiment')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the Experiment')
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the test')

c.argument('name', id_part=None, help='The name of the Internet Analyzer profile to be created')
c.argument('location', arg_type=get_location_type(self.cli_ctx))
c.argument('tags', tags_type)
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the Experiment')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the Experiment')
c.argument('enabled_state', arg_type=get_enum_type(['Enabled', 'Disabled']), id_part=None, help='The state of the test')

Copy link
Copy Markdown
Contributor

@mmyyrroonn mmyyrroonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the RC1 version, LGTM. We can refine it later.

- name: Creates a test
text: |-
az internet-analyzer test create --resource-group "rg1" --profile-name "Profile1" --name \\
"Experiment1" --description "this is my first experiment!" --endpoint-a-name "endpoint A" \\
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Experiment1" --description "this is my first experiment!" --endpoint-a-name "endpoint A" \\
"test1" --description "this is my first test!" --endpoint-a-name "endpoint A" \\

- name: Updates a test
text: |-
az internet-analyzer test update --resource-group "rg1" --profile-name "Profile1" --name \\
"Experiment1" --description "string" --enabled-state "Enabled"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Experiment1" --description "string" --enabled-state "Enabled"
"test1" --description "string" --enabled-state "Enabled"

- name: Deletes a test
text: |-
az internet-analyzer test delete --resource-group "rg1" --profile-name "Profile1" --name \\
"Experiment1"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Experiment1"
"test1"

@Diego-Perez-Botero
Copy link
Copy Markdown

Just added a few minor comments. Other than those, LGTM!

@Diego-Perez-Botero
Copy link
Copy Markdown

Nit-picky comment: PR title should be "internet analyzer" instead of "network experiment" :P

@zikalino zikalino merged commit 305e933 into master Oct 25, 2019
@zikalino zikalino deleted the network-experiment branch October 25, 2019 06:24
@zikalino
Copy link
Copy Markdown
Author

@Diego-Perez-Botero too late :-) next one will have correct naming

@Diego-Perez-Botero
Copy link
Copy Markdown

@zikalino no big deal ;)

ManuInNZ pushed a commit to ManuInNZ/azure-cli-extensions that referenced this pull request Apr 11, 2020
* adding autogenerated network experiment

* fixed one problem

* more network experiment fixes

* further fixes

* further fixes

* adding vendored sdk as we need frontdoor experiment

* networkexperiment -> frontdoor

* additional parameter in test

* additional parameter in example

* upgraded network experiment

* updated endpoint parameter names

* profiles -> profile

* autogenerated fixes

* more sanity fixes

* fixed sanity in init

* fixed warnings

* one more

* too many blank lines

* added codeowner

* init in vendored sdks

* renamed to network-analyzer

* fixed filenames

* more fixes

* final rename fixes

* adding list of preconfigured endpoints

* fixed several generator mistakes

* more ad-hoc fixes

* changed network experiment structure

* list profiles

* fix

* another fix

* latency and timeseries

* fix

* removed unnecessary

* updated scorecard things

* Update src/internet-analyzer/azext_internet_analyzer/_help.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_params.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* fixed several issues

* one more fix

* and removed one more unnecessary thing

* changed codeowner

* added readme

* Update src/internet-analyzer/setup.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* added hack for paging

* profile name

* stupid mistake

* Update src/internet-analyzer/azext_internet_analyzer/_help.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Update src/internet-analyzer/azext_internet_analyzer/_help.py

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* Apply suggestions from code review

Co-Authored-By: Diego Perez Botero <dibotero@microsoft.com>

* fix

* additional fix

* fix

* one more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants