Skip to content

[test_ro_user] Add a delay for 'test_ro_user_banned_command' after recent change#3741

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
shlomibitton:shlomi_add_delay_ro_user
Jul 8, 2021
Merged

[test_ro_user] Add a delay for 'test_ro_user_banned_command' after recent change#3741
liat-grozovik merged 1 commit intosonic-net:masterfrom
shlomibitton:shlomi_add_delay_ro_user

Conversation

@shlomibitton
Copy link
Contributor

@shlomibitton shlomibitton commented Jul 7, 2021

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

After recent change introduced on this PR's:
sonic-net/sonic-buildimage#7965
sonic-net/sonic-buildimage#8117

'hostcfgd' will be delayed in 90 seconds.
If the test will run before the daemon has started, it will fail the test.
This is to align with the new change and make sure the test will pass.

How did you do it?

Add a delay of 100 seconds before executing authorized commands.

How did you verify/test it?

Run the test.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…allow 'hostcfgd' to start and configure tacas authorization.

PR: sonic-net/sonic-buildimage#7965

Change-Id: Ie8b4a9129c2a0a6a417b9922bc26c2d5f9a40352
Signed-off-by: Shlomi Bitton <[email protected]>
@shlomibitton shlomibitton requested a review from a team as a code owner July 7, 2021 13:32
]

# Wait until hostcfgd started and configured tacas authorization
time.sleep(100)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we check that tacas configuration is done before moving a head?
maybe it can be resolved much less than 100seconds?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Checked the code in sonic-buildimage, the wait time is hard coded to 90 seconds. So, the 100 seconds waiting here makes sense.

@liat-grozovik liat-grozovik merged commit 2090d39 into sonic-net:master Jul 8, 2021
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…allow 'hostcfgd' to start and configure tacas authorization. (sonic-net#3741)

- What is the motivation for this PR?
After recent change introduced on this PR's: sonic-net/sonic-buildimage#7965 and sonic-net/sonic-buildimage#8117 'hostcfgd' will be delayed in 90 seconds.
If the test will run before the daemon has started, it will fail the test. This is to align with the new change and make sure the test will pass.

- How did you do it?
Add a delay of 100 seconds before executing authorized commands.

- How did you verify/test it?
Run the test.

Signed-off-by: Shlomi Bitton <[email protected]>
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.

3 participants