github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/cmd/roachtest/django_blacklist.go (about) 1 // Copyright 2019 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 package main 12 13 // As of now, we only run a subset of the test apps within the django 14 // testing suite. The full set we run is below, and should be kept 15 // in alphabetical order. As more progress is made with adding compatibility, 16 // more test apps should be added here to prevent against regression. 17 var enabledDjangoTests = []string{ 18 "app_loading", 19 "apps", 20 "admin_changelist", 21 "admin_custom_urls", 22 "admin_docs", 23 "admin_filters", 24 "admin_inlines", 25 "admin_ordering", 26 "admin_utils", 27 "admin_views", 28 "aggregation", 29 "aggregation_regress", 30 "annotations", 31 "auth_tests", 32 "backends", 33 "base", 34 "bash_completion", 35 "basic", 36 "bulk_create", 37 "cache", 38 "check_framework", 39 "conditional_processing", 40 "constraints", 41 "contenttypes_tests", 42 "custom_columns", 43 "custom_lookups", 44 "custom_managers", 45 "custom_methods", 46 "custom_migration_operations", 47 "custom_pk", 48 "datatypes", 49 "dates", 50 "datetimes", 51 "db_functions", 52 "db_typecasts", 53 "db_utils", 54 "defer", 55 "defer_regress", 56 "delete", 57 "delete_regress", 58 "distinct_on_fields", 59 "empty", 60 "expressions", 61 "expressions_case", 62 "expressions_window", 63 "extra_regress", 64 "field_defaults", 65 "field_subclassing", 66 "file_storage", 67 "file_uploads", 68 "filtered_relation", 69 "fixtures", 70 "fixtures_model_package", 71 "fixtures_regress", 72 "force_insert_update", 73 "foreign_object", 74 "forms_tests", 75 "from_db_value", 76 "generic_inline_admin", 77 "generic_relations", 78 "generic_relations_regress", 79 "generic_views", 80 "get_earliest_or_latest", 81 "get_object_or_404", 82 "get_or_create", 83 "i18n", 84 "indexes", 85 "inline_formsets", 86 "inspectdb", 87 "introspection", 88 "invalid_models_tests", 89 "known_related_objects", 90 "lookup", 91 "m2m_and_m2o", 92 "m2m_intermediary", 93 "m2m_multiple", 94 "m2m_recursive", 95 "m2m_regress", 96 "m2m_signals", 97 "m2m_through", 98 "m2m_through_regress", 99 "m2o_recursive", 100 "managers_regress", 101 "many_to_many", 102 "many_to_one", 103 "many_to_one_null", 104 "max_lengths", 105 "migrate_signals", 106 "migrations", 107 "migration_test_data_persistence", 108 "modeladmin", 109 "model_fields", 110 "model_forms", 111 "model_formsets", 112 "model_formsets_regress", 113 "model_indexes", 114 "model_inheritance", 115 "model_inheritance_regress", 116 "model_meta", 117 "model_options", 118 "model_package", 119 "model_regress", 120 "multiple_database", 121 "mutually_referential", 122 "nested_foreign_keys", 123 "null_fk", 124 "null_fk_ordering", 125 "null_queries", 126 "one_to_one", 127 "ordering", 128 "order_with_respect_to", 129 "or_lookups", 130 "pagination", 131 "prefetch_related", 132 "properties", 133 "proxy_model_inheritance", 134 "proxy_models", 135 "queries", 136 "queryset_pickle", 137 "raw_query", 138 "reserved_names", 139 "reverse_lookup", 140 "save_delete_hooks", 141 "schema", 142 "select_for_update", 143 "select_related", 144 "select_related_onetoone", 145 "select_related_regress", 146 "serializers", 147 "servers", 148 "signals", 149 "sitemaps_tests", 150 "sites_framework", 151 "sites_tests", 152 "string_lookup", 153 "swappable_models", 154 "syndication_tests", 155 "test_client", 156 "test_client_regress", 157 "test_utils", 158 "timezones", 159 "transaction_hooks", 160 "transactions", 161 "unmanaged_models", 162 "update", 163 "update_only_fields", 164 "validation", 165 "view_tests", 166 } 167 168 var djangoBlacklists = blacklistsForVersion{ 169 {"v19.2", "djangoBlacklist19_2", djangoBlacklist19_2, "djangoIgnoreList19_2", djangoIgnoreList19_2}, 170 {"v20.1", "djangoBlacklist20_1", djangoBlacklist20_1, "djangoIgnoreList20_1", djangoIgnoreList20_1}, 171 {"v20.2", "djangoBlacklist20_2", djangoBlacklist20_2, "djangoIgnoreList20_2", djangoIgnoreList20_2}, 172 } 173 174 // Maintain that this list is alphabetized. 175 var djangoBlacklist20_2 = blacklist{} 176 177 var djangoBlacklist20_1 = blacklist{} 178 179 var djangoBlacklist19_2 = blacklist{ 180 "admin_views.tests.AdminViewBasicTest.test_date_hierarchy_timezone_dst": "unknown", 181 "admin_views.tests.SecureViewTests.test_secure_view_shows_login_if_not_logged_in": "unknown", 182 "admin_views.tests.SecureViewTests.test_staff_member_required_decorator_works_with_argument": "unknown", 183 // TODO (rohany): The postgres_tests suite within Django is not in a automatically 184 // runnable state right now. 185 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_and_empty_result": "41334", 186 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_and_general": "41334", 187 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_and_on_only_false_values": "41334", 188 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_and_on_only_true_values": "41334", 189 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_or_empty_result": "41334", 190 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_or_general": "41334", 191 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_or_on_only_false_values": "41334", 192 //"postgres_tests.test_aggregates.TestGeneralAggregate.test_bit_or_on_only_true_values": "41334", 193 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_corr_empty_result": "41274", 194 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_corr_general": "41274", 195 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_covar_pop_empty_result": "41274", 196 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_covar_pop_general": "41274", 197 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_covar_pop_sample": "41274", 198 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_covar_pop_sample_empty_result": "41274", 199 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_avgx_empty_result": "41274", 200 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_avgx_general": "41274", 201 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_avgx_with_related_obj_and_number_as_argument": "41274", 202 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_avgy_empty_result": "41274", 203 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_avgy_general": "41274", 204 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_count_empty_result": "41274", 205 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_count_general": "41274", 206 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_intercept_empty_result": "41274", 207 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_intercept_general": "41274", 208 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_r2_empty_result": "41274", 209 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_r2_general": "41274", 210 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_slope_empty_result": "41274", 211 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_slope_general": "41274", 212 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_sxx_empty_result": "41274", 213 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_sxx_general": "41274", 214 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_sxy_empty_result": "41274", 215 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_sxy_general": "41274", 216 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_syy_empty_result": "41274", 217 //"postgres_tests.test_aggregates.TestStatisticsAggregate.test_regr_syy_general": "41274", 218 //"postgres_tests.test_array.TestOtherTypesExactQuerying.test_exact_decimals": "23468", 219 } 220 221 var djangoIgnoreList20_2 = blacklist{} 222 223 var djangoIgnoreList20_1 = blacklist{} 224 225 var djangoIgnoreList19_2 = blacklist{}