| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0256c67 commit 49d84ba
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,3 +8,4 @@ MANIFEST | |||
| 8 | 8 | docs/_build | |
| 9 | 9 | .testrepository/ | |
| 10 | 10 | .tox | |
| 11 | + venv/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,13 +32,13 @@ jobs: | |||
| 32 | 32 | script: | |
| 33 | 33 | - pip3 install tox | |
| 34 | 34 | - tox -e cli_func_v4 | |
| 35 | - #- stage: test | ||
| 36 | - # name: py_func_v4 | ||
| 37 | - # dist: bionic | ||
| 38 | - # python: 3.7 | ||
| 39 | - # script: | ||
| 40 | - # - pip3 install tox | ||
| 41 | - # - tox -e py_func_v4 | ||
| 35 | + - stage: test | ||
| 36 | + name: py_func_v4 | ||
| 37 | + dist: bionic | ||
| 38 | + python: 3.7 | ||
| 39 | + script: | ||
| 40 | + - pip3 install tox | ||
| 41 | + - tox -e py_func_v4 | ||
| 42 | 42 | - stage: test | |
| 43 | 43 | name: docs | |
| 44 | 44 | dist: bionic | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -435,97 +435,57 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): | |||
| 435 | 435 | _update_attrs = ( | |
| 436 | 436 | tuple(), | |
| 437 | 437 | ( | |
| 438 | - "admin_notification_email", | ||
| 439 | - "after_sign_out_path", | ||
| 440 | - "after_sign_up_text", | ||
| 441 | - "akismet_api_key", | ||
| 442 | - "akismet_enabled", | ||
| 443 | - "circuitbreaker_access_retries", | ||
| 444 | - "circuitbreaker_check_interval", | ||
| 445 | - "circuitbreaker_failure_count_threshold", | ||
| 446 | - "circuitbreaker_failure_reset_time", | ||
| 447 | - "circuitbreaker_storage_timeout", | ||
| 448 | - "clientside_sentry_dsn", | ||
| 449 | - "clientside_sentry_enabled", | ||
| 450 | - "container_registry_token_expire_delay", | ||
| 451 | - "default_artifacts_expire_in", | ||
| 438 | + "id", | ||
| 439 | + "default_projects_limit", | ||
| 440 | + "signup_enabled", | ||
| 441 | + "password_authentication_enabled_for_web", | ||
| 442 | + "gravatar_enabled", | ||
| 443 | + "sign_in_text", | ||
| 444 | + "created_at", | ||
| 445 | + "updated_at", | ||
| 446 | + "home_page_url", | ||
| 452 | 447 | "default_branch_protection", | |
| 453 | - "default_group_visibility", | ||
| 448 | + "restricted_visibility_levels", | ||
| 449 | + "max_attachment_size", | ||
| 450 | + "session_expire_delay", | ||
| 454 | 451 | "default_project_visibility", | |
| 455 | - "default_projects_limit", | ||
| 456 | 452 | "default_snippet_visibility", | |
| 457 | - "disabled_oauth_sign_in_sources", | ||
| 453 | + "default_group_visibility", | ||
| 454 | + "outbound_local_requests_whitelist", | ||
| 455 | + "domain_whitelist", | ||
| 458 | 456 | "domain_blacklist_enabled", | |
| 459 | 457 | "domain_blacklist", | |
| 460 | - "domain_whitelist", | ||
| 461 | - "dsa_key_restriction", | ||
| 462 | - "ecdsa_key_restriction", | ||
| 463 | - "ed25519_key_restriction", | ||
| 464 | - "email_author_in_body", | ||
| 465 | - "enabled_git_access_protocol", | ||
| 466 | - "gravatar_enabled", | ||
| 467 | - "help_page_hide_commercial_content", | ||
| 468 | - "help_page_support_url", | ||
| 469 | - "home_page_url", | ||
| 470 | - "housekeeping_bitmaps_enabled", | ||
| 471 | - "housekeeping_enabled", | ||
| 472 | - "housekeeping_full_repack_period", | ||
| 473 | - "housekeeping_gc_period", | ||
| 474 | - "housekeeping_incremental_repack_period", | ||
| 475 | - "html_emails_enabled", | ||
| 476 | - "import_sources", | ||
| 477 | - "koding_enabled", | ||
| 478 | - "koding_url", | ||
| 479 | - "max_artifacts_size", | ||
| 480 | - "max_attachment_size", | ||
| 481 | - "max_pages_size", | ||
| 482 | - "metrics_enabled", | ||
| 483 | - "metrics_host", | ||
| 484 | - "metrics_method_call_threshold", | ||
| 485 | - "metrics_packet_size", | ||
| 486 | - "metrics_pool_size", | ||
| 487 | - "metrics_port", | ||
| 488 | - "metrics_sample_interval", | ||
| 489 | - "metrics_timeout", | ||
| 490 | - "password_authentication_enabled_for_web", | ||
| 491 | - "password_authentication_enabled_for_git", | ||
| 492 | - "performance_bar_allowed_group_id", | ||
| 493 | - "performance_bar_enabled", | ||
| 458 | + "external_authorization_service_enabled", | ||
| 459 | + "external_authorization_service_url", | ||
| 460 | + "external_authorization_service_default_label", | ||
| 461 | + "external_authorization_service_timeout", | ||
| 462 | + "user_oauth_applications", | ||
| 463 | + "after_sign_out_path", | ||
| 464 | + "container_registry_token_expire_delay", | ||
| 465 | + "repository_storages", | ||
| 494 | 466 | "plantuml_enabled", | |
| 495 | 467 | "plantuml_url", | |
| 468 | + "terminal_max_session_time", | ||
| 496 | 469 | "polling_interval_multiplier", | |
| 497 | - "project_export_enabled", | ||
| 498 | - "prometheus_metrics_enabled", | ||
| 499 | - "recaptcha_enabled", | ||
| 500 | - "recaptcha_private_key", | ||
| 501 | - "recaptcha_site_key", | ||
| 502 | - "repository_checks_enabled", | ||
| 503 | - "repository_storages", | ||
| 504 | - "require_two_factor_authentication", | ||
| 505 | - "restricted_visibility_levels", | ||
| 506 | 470 | "rsa_key_restriction", | |
| 507 | - "send_user_confirmation_email", | ||
| 508 | - "sentry_dsn", | ||
| 509 | - "sentry_enabled", | ||
| 510 | - "session_expire_delay", | ||
| 511 | - "shared_runners_enabled", | ||
| 512 | - "shared_runners_text", | ||
| 513 | - "sidekiq_throttling_enabled", | ||
| 514 | - "sidekiq_throttling_factor", | ||
| 515 | - "sidekiq_throttling_queues", | ||
| 516 | - "sign_in_text", | ||
| 517 | - "signup_enabled", | ||
| 518 | - "terminal_max_session_time", | ||
| 519 | - "two_factor_grace_period", | ||
| 520 | - "unique_ips_limit_enabled", | ||
| 521 | - "unique_ips_limit_per_user", | ||
| 522 | - "unique_ips_limit_time_window", | ||
| 523 | - "usage_ping_enabled", | ||
| 524 | - "user_default_external", | ||
| 525 | - "user_oauth_applications", | ||
| 526 | - "version_check_enabled", | ||
| 471 | + "dsa_key_restriction", | ||
| 472 | + "ecdsa_key_restriction", | ||
| 473 | + "ed25519_key_restriction", | ||
| 474 | + "first_day_of_week", | ||
| 527 | 475 | "enforce_terms", | |
| 528 | 476 | "terms", | |
| 477 | + "performance_bar_allowed_group_id", | ||
| 478 | + "instance_statistics_visibility_private", | ||
| 479 | + "user_show_add_ssh_key_message", | ||
| 480 | + "file_template_project_id", | ||
| 481 | + "local_markdown_version", | ||
| 482 | + "asset_proxy_enabled", | ||
| 483 | + "asset_proxy_url", | ||
| 484 | + "asset_proxy_whitelist", | ||
| 485 | + "geo_node_allowed_ips", | ||
| 486 | + "allow_local_requests_from_hooks_and_services", | ||
| 487 | + "allow_local_requests_from_web_hooks_and_services", | ||
| 488 | + "allow_local_requests_from_system_hooks", | ||
| 529 | 489 | ), | |
| 530 | 490 | ) | |
| 531 | 491 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,9 +64,9 @@ | |||
| 64 | 64 | gl.auth() | |
| 65 | 65 | assert isinstance(gl.user, gitlab.v4.objects.CurrentUser) | |
| 66 | 66 | ||
| 67 | - # markdown (need to wait for gitlab 11 to enable the test) | ||
| 68 | - # html = gl.markdown('foo') | ||
| 69 | - # assert('foo' in html) | ||
| 67 | + # markdown | ||
| 68 | + html = gl.markdown("foo") | ||
| 69 | + assert "foo" in html | ||
| 70 | 70 | ||
| 71 | 71 | success, errors = gl.lint("Invalid") | |
| 72 | 72 | assert success is False | |
@@ -338,16 +338,16 @@ | |||
| 338 | 338 | assert len(group1.variables.list()) == 0 | |
| 339 | 339 | ||
| 340 | 340 | # group labels | |
| 341 | - group1.labels.create({"name": "foo", "description": "bar", "color": "#112233"}) | ||
| 342 | - g_l = group1.labels.get("foo") | ||
| 343 | - assert g_l.description == "bar" | ||
| 344 | - g_l.description = "baz" | ||
| 345 | - g_l.save() | ||
| 346 | - g_l = group1.labels.get("foo") | ||
| 347 | - assert g_l.description == "baz" | ||
| 348 | - assert len(group1.labels.list()) == 1 | ||
| 349 | - g_l.delete() | ||
| 350 | - assert len(group1.labels.list()) == 0 | ||
| 341 | + # group1.labels.create({"name": "foo", "description": "bar", "color": "#112233"}) | ||
| 342 | + # g_l = group1.labels.get("foo") | ||
| 343 | + # assert g_l.description == "bar" | ||
| 344 | + # g_l.description = "baz" | ||
| 345 | + # g_l.save() | ||
| 346 | + # g_l = group1.labels.get("foo") | ||
| 347 | + # assert g_l.description == "baz" | ||
| 348 | + # assert len(group1.labels.list()) == 1 | ||
| 349 | + # g_l.delete() | ||
| 350 | + # assert len(group1.labels.list()) == 0 | ||
| 351 | 351 | ||
| 352 | 352 | # hooks | |
| 353 | 353 | hook = gl.hooks.create({"url": "http://whatever.com"}) | |
@@ -530,17 +530,17 @@ | |||
| 530 | 530 | assert len(sudo_project.keys.list()) == 0 | |
| 531 | 531 | ||
| 532 | 532 | # labels | |
| 533 | - label1 = admin_project.labels.create({"name": "label1", "color": "#778899"}) | ||
| 534 | - label1 = admin_project.labels.list()[0] | ||
| 535 | - assert len(admin_project.labels.list()) == 1 | ||
| 536 | - label1.new_name = "label1updated" | ||
| 537 | - label1.save() | ||
| 538 | - assert label1.name == "label1updated" | ||
| 539 | - label1.subscribe() | ||
| 540 | - assert label1.subscribed == True | ||
| 541 | - label1.unsubscribe() | ||
| 542 | - assert label1.subscribed == False | ||
| 543 | - label1.delete() | ||
| 533 | + # label1 = admin_project.labels.create({"name": "label1", "color": "#778899"}) | ||
| 534 | + # label1 = admin_project.labels.list()[0] | ||
| 535 | + # assert len(admin_project.labels.list()) == 1 | ||
| 536 | + # label1.new_name = "label1updated" | ||
| 537 | + # label1.save() | ||
| 538 | + # assert label1.name == "label1updated" | ||
| 539 | + # label1.subscribe() | ||
| 540 | + # assert label1.subscribed == True | ||
| 541 | + # label1.unsubscribe() | ||
| 542 | + # assert label1.subscribed == False | ||
| 543 | + # label1.delete() | ||
| 544 | 544 | ||
| 545 | 545 | # milestones | |
| 546 | 546 | m1 = admin_project.milestones.create({"title": "milestone1"}) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments