File tree Expand file tree Collapse file tree 5 files changed +7
-3
lines changed
Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ dev = [
3333 " requests-mock==1.12.1" ,
3434 " boto3-stubs[s3]" ,
3535 " build>=0.10.0" ,
36- " twine>=4.0.2"
36+ " twine>=4.0.2" ,
37+ " pytest-rerunfailures"
3738]
3839
3940[project .scripts ]
Original file line number Diff line number Diff line change 33from tests .integration .helpers import delete_target_id , exec_test_command
44from tests .integration .linodes .helpers_linodes import (
55 BASE_CMD ,
6- create_linode ,
76 create_linode_and_wait ,
87 wait_until ,
98)
109
1110
1211@pytest .fixture
1312def test_linode_id (linode_cloud_firewall ):
14- linode_id = create_linode (firewall_id = linode_cloud_firewall )
13+ linode_id = create_linode_and_wait (firewall_id = linode_cloud_firewall )
1514
1615 yield linode_id
1716
@@ -52,6 +51,7 @@ def test_reboot_linode(create_linode_in_running_state):
5251 ), "Linode status has not changed to running from provisioning"
5352
5453
54+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
5555def test_shutdown_linode (test_linode_id ):
5656 linode_id = test_linode_id
5757
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def test_linode_id(linode_cloud_firewall):
2525 delete_target_id (target = "linodes" , id = linode_id )
2626
2727
28+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
2829def test_rebuild_fails_without_image (test_linode_id ):
2930 linode_id = test_linode_id
3031
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ def test_linode_id(linode_cloud_firewall):
4242 delete_target_id (target = "linodes" , id = linode_id )
4343
4444
45+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
4546def test_resize_fails_to_the_same_plan (test_linode_id ):
4647 linode_id = test_linode_id
4748 linode_plan = (
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ def test_update_kubernetes_cluster(get_cluster_id):
132132 assert new_label == updated_label
133133
134134
135+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
135136def test_list_kubernetes_endpoint (get_cluster_id ):
136137 cluster_id = get_cluster_id
137138 res = (
You can’t perform that action at this time.
0 commit comments