Browse Source

feat(hc): Mark test cases stable (#54333)

This adds `stable=True` to silo tests with a few small
`assume_test_silo_mode` changes to get the stable tests passing along
the way.
Matt Duncan 1 year ago
parent
commit
9dd60f32f7

+ 1 - 1
tests/apidocs/endpoints/events/test_group_hashes.py

@@ -4,7 +4,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class ProjectGroupHashesDocs(APIDocsTestCase):
     def setUp(self):
         self.create_event("a")

+ 1 - 1
tests/apidocs/endpoints/events/test_group_issue_details.py

@@ -5,7 +5,7 @@ from sentry.testutils.helpers.datetime import before_now, iso_format
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class ProjectGroupIssueDetailsDocs(APIDocsTestCase):
     def setUp(self):
         self.create_release(project=self.project, version="abcdabc")

+ 1 - 1
tests/apidocs/endpoints/events/test_group_tagkey_values.py

@@ -4,7 +4,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class GroupTagKeyValuesDocs(APIDocsTestCase):
     def setUp(self):
         key, value = "foo", "bar"

+ 1 - 1
tests/apidocs/endpoints/events/test_project_event_details.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class ProjectEventDetailsDocs(APIDocsTestCase):
     endpoint = "sentry-api-0-project-event-details"
 

+ 1 - 1
tests/apidocs/endpoints/events/test_project_tagkey_values.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class ProjectTagKeyValuesDocs(APIDocsTestCase):
     def setUp(self):
         key = "foo"

+ 1 - 1
tests/apidocs/endpoints/organizations/test_event_id_lookup.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class OrganizationEventIDLookupDocs(APIDocsTestCase):
     def setUp(self):
         event = self.create_event("a", message="oh no")

+ 1 - 1
tests/apidocs/endpoints/organizations/test_org_details.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class OrganizationDetailsDocs(APIDocsTestCase):
     def setUp(self):
         organization = self.create_organization(owner=self.user, name="Rowdy Tiger")

+ 1 - 1
tests/apidocs/endpoints/organizations/test_org_index.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class OrganizationIndexDocs(APIDocsTestCase):
     def setUp(self):
         self.create_organization(owner=self.user, name="Rowdy Tiger")

+ 1 - 1
tests/apidocs/endpoints/organizations/test_org_projects.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class OrganizationProjectsDocs(APIDocsTestCase):
     def setUp(self):
         organization = self.create_organization(owner=self.user, name="Rowdy Tiger")

+ 1 - 1
tests/apidocs/endpoints/organizations/test_org_repos.py

@@ -5,7 +5,7 @@ from fixtures.apidocs_test_case import APIDocsTestCase
 from sentry.testutils.silo import region_silo_test
 
 
-@region_silo_test
+@region_silo_test(stable=True)
 class OrganizationReposDocs(APIDocsTestCase):
     def setUp(self):
         organization = self.create_organization(owner=self.user, name="Rowdy Tiger")

Some files were not shown because too many files changed in this diff