From 38fdb03304794f2d4955b8301c3de5cc5358e663 Mon Sep 17 00:00:00 2001 From: jingrow Date: Tue, 23 Dec 2025 23:10:51 +0800 Subject: [PATCH] update Frappe to Jingrow --- .cspell.json | 2 +- backbone/tests/test_hypervisor.py | 4 ++-- .../src/components/OnboardingWithoutPayment.vue | 4 ++-- dashboard/src/components/auth/LoginBox.vue | 4 ++-- dashboard/src/components/auth/SaaSLoginBox.vue | 4 ++-- dashboard/src/components/global/Badge.vue | 8 ++++---- dashboard/src/components/global/register.js | 6 +++--- docs/General Guide/Operational Manual.MD | 6 +++--- guide-to-testing.md | 4 ++-- press/api/bench.py | 14 +++++++------- press/api/tests/test_bench.py | 8 ++++---- press/api/tests/test_marketplace.py | 4 ++-- press/api/tests/test_server.py | 6 +++--- press/api/tests/test_site.py | 6 +++--- press/bootstrap.py | 2 +- press/exceptions.py | 2 +- .../referral_bonus/test_referral_bonus.py | 4 ++-- .../test_incident_investigator.py | 4 ++-- .../arm_build_record/test_arm_build_record.py | 4 ++-- .../ssh_access_audit/test_ssh_access_audit.py | 4 ++-- .../test_virtual_disk_resize.py | 4 ++-- .../test_virtual_machine_migration.py | 4 ++-- .../test_virtual_machine_replacement.py | 4 ++-- .../app_user_review/test_app_user_review.py | 4 ++-- .../test_developer_review_reply.py | 4 ++-- .../test_marketplace_app_feedback.py | 4 ++-- .../test_marketplace_app_payment.py | 4 ++-- .../test_marketplace_app_plan.py | 4 ++-- .../test_marketplace_app_subscription.py | 4 ++-- .../test_marketplace_promotional_banner.py | 4 ++-- .../test_marketplace_publisher_profile.py | 4 ++-- .../test_marketplace_settings.py | 4 ++-- .../test_partner_approval_request.py | 4 ++-- .../test_partner_certificate.py | 4 ++-- .../test_partner_certificate_request.py | 4 ++-- .../doctype/partner_tier/test_partner_tier.py | 4 ++-- press/playbooks/roles/frankfurter/README.md | 2 +- .../account_request/test_account_request.py | 4 ++-- .../add_on_settings/test_add_on_settings.py | 4 ++-- .../test_add_on_storage_log.py | 4 ++-- press/press/doctype/agent_job/test_agent_job.py | 4 ++-- .../test_agent_job_callback.py | 4 ++-- .../agent_job_step/test_agent_job_step.py | 4 ++-- .../agent_job_type/test_agent_job_type.py | 4 ++-- .../test_agent_request_failure.py | 4 ++-- .../doctype/agent_update/test_agent_update.py | 4 ++-- .../test_alertmanager_webhook_log.py | 4 ++-- ...test_alertmanager_webhook_log_reaction_job.py | 4 ++-- .../analytics_server/test_analytics_server.py | 4 ++-- .../ansible_console/test_ansible_console.py | 4 ++-- .../test_ansible_console_log.py | 4 ++-- .../doctype/ansible_play/test_ansible_play.py | 4 ++-- .../doctype/ansible_task/test_ansible_task.py | 4 ++-- press/press/doctype/app/test_app.py | 4 ++-- press/press/doctype/app_patch/test_app_patch.py | 4 ++-- .../doctype/app_release/test_app_release.py | 4 ++-- .../test_app_release_approval_request.py | 4 ++-- .../test_app_release_difference.py | 4 ++-- .../press/doctype/app_rename/test_app_rename.py | 4 ++-- .../press/doctype/app_source/test_app_source.py | 4 ++-- press/press/doctype/app_tag/test_app_tag.py | 4 ++-- press/press/doctype/audit_log/test_audit_log.py | 4 ++-- .../test_aws_savings_plan_recommendation.py | 4 ++-- .../doctype/backup_bucket/test_backup_bucket.py | 4 ++-- .../test_backup_restoration_test.py | 4 ++-- .../test_balance_transaction.py | 4 ++-- press/press/doctype/bench/test_bench.py | 8 ++++---- press/press/doctype/bench_app/test_bench_app.py | 4 ++-- .../bench_dependency/test_bench_dependency.py | 4 ++-- .../test_bench_get_app_cache.py | 4 ++-- .../doctype/bench_shell/test_bench_shell.py | 4 ++-- .../bench_shell_log/test_bench_shell_log.py | 4 ++-- .../bench_site_update/test_bench_site_update.py | 4 ++-- .../doctype/bench_update/test_bench_update.py | 4 ++-- .../blocked_domain/test_blocked_domain.py | 4 ++-- .../build_cache_shell/test_build_cache_shell.py | 4 ++-- .../doctype/build_metric/test_build_metric.py | 4 ++-- .../test_certificate_authority.py | 4 ++-- .../doctype/cloud_region/test_cloud_region.py | 4 ++-- press/press/doctype/cluster/test_cluster.py | 4 ++-- .../doctype/cluster_plan/test_cluster_plan.py | 4 ++-- .../doctype/code_server/test_code_server.py | 4 ++-- .../test_cookie_preference_log.py | 4 ++-- .../currency_exchange/test_currency_exchange.py | 4 ++-- .../dashboard_banner/test_dashboard_banner.py | 4 ++-- .../database_server/test_database_server.py | 4 ++-- .../test_database_server_mariadb_variable.py | 4 ++-- press/press/doctype/deploy/test_deploy.py | 4 ++-- .../doctype/deploy_bench/test_deploy_bench.py | 4 ++-- .../deploy_candidate/test_deploy_candidate.py | 4 ++-- .../test_deploy_candidate_build.py | 4 ++-- .../test_deploy_candidate_difference.py | 4 ++-- .../disk_performance/test_disk_performance.py | 4 ++-- .../press/doctype/drip_email/test_drip_email.py | 4 ++-- .../test_erpnext_consultant.py | 4 ++-- .../test_erpnext_site_settings.py | 4 ++-- .../doctype/frappe_version/frappe_version.py | 6 +++--- .../frappe_version/test_frappe_version.py | 4 ++-- .../frappe_version_dependency.py | 2 +- .../test_github_webhook_log.py | 4 ++-- press/press/doctype/incident/test_incident.py | 4 ++-- .../incident_settings/test_incident_settings.py | 4 ++-- .../inspect_trace_id/test_inspect_trace_id.py | 4 ++-- press/press/doctype/invoice/test_invoice.py | 4 ++-- .../doctype/log_counter/test_log_counter.py | 4 ++-- .../press/doctype/log_server/test_log_server.py | 4 ++-- press/press/doctype/mail_log/test_mail_log.py | 4 ++-- .../press/doctype/mail_setup/test_mail_setup.py | 4 ++-- .../doctype/malware_scan/test_malware_scan.py | 4 ++-- .../test_managed_database_service.py | 4 ++-- .../mariadb_binlog/test_mariadb_binlog.py | 4 ++-- .../doctype/mariadb_stalk/test_mariadb_stalk.py | 4 ++-- .../mariadb_variable/test_mariadb_variable.py | 4 ++-- .../marketplace_app/test_marketplace_app.py | 4 ++-- .../test_marketplace_app_categories.py | 4 ++-- .../test_marketplace_app_category.py | 4 ++-- .../test_module_setup_guide.py | 4 ++-- .../monitor_server/test_monitor_server.py | 4 ++-- .../test_mpesa_payment_record.py | 4 ++-- .../mpesa_request_log/test_mpesa_request_log.py | 4 ++-- .../doctype/mpesa_setup/test_mpesa_setup.py | 4 ++-- .../test_oauth_domain_mapping.py | 4 ++-- .../test_partner_payment_payout.py | 4 ++-- .../payment_dispute/test_payment_dispute.py | 4 ++-- .../test_payment_due_extension.py | 4 ++-- .../payment_gateway/test_payment_gateway.py | 4 ++-- .../test_payment_partner_transaction.py | 4 ++-- .../doctype/payout_order/test_payout_order.py | 4 ++-- .../test_physical_backup_group.py | 4 ++-- .../test_physical_backup_restoration.py | 4 ++-- .../test_physical_restoration_test.py | 4 ++-- .../doctype/plan_change/test_plan_change.py | 4 ++-- .../press_feedback/test_press_feedback.py | 4 ++-- press/press/doctype/press_job/test_press_job.py | 4 ++-- .../press_job_step/test_press_job_step.py | 4 ++-- .../press_job_type/test_press_job_type.py | 4 ++-- .../test_press_job_type_step.py | 4 ++-- .../test_press_method_permission.py | 4 ++-- .../test_press_notification.py | 4 ++-- .../test_press_permission_group.py | 4 ++-- .../press/doctype/press_role/test_press_role.py | 4 ++-- .../test_press_role_permission.py | 4 ++-- .../press_settings/test_press_settings.py | 4 ++-- press/press/doctype/press_tag/test_press_tag.py | 4 ++-- .../test_press_user_permission.py | 4 ++-- .../doctype/press_webhook/test_press_webhook.py | 4 ++-- .../test_press_webhook_attempt.py | 4 ++-- .../test_press_webhook_event.py | 4 ++-- .../press_webhook_log/test_press_webhook_log.py | 4 ++-- .../process_snapshot/test_process_snapshot.py | 4 ++-- .../test_prometheus_alert_rule.py | 4 ++-- .../doctype/proxy_server/test_proxy_server.py | 4 ++-- .../test_razorpay_payment_record.py | 4 ++-- .../razorpay_webhook_log/razorpay_webhook_log.py | 4 ++-- .../test_razorpay_webhook_log.py | 4 ++-- press/press/doctype/region/test_region.py | 4 ++-- .../doctype/registry_server/registry_server.py | 4 ++-- .../registry_server/test_registry_server.py | 4 ++-- .../doctype/release_group/test_release_group.py | 4 ++-- .../doctype/remote_file/test_remote_file.py | 4 ++-- .../test_remote_operation_log.py | 4 ++-- .../doctype/root_domain/test_root_domain.py | 4 ++-- .../test_scheduled_auto_update_log.py | 4 ++-- .../security_update/test_security_update.py | 4 ++-- .../test_security_update_check.py | 4 ++-- .../test_self_hosted_server.py | 4 ++-- .../test_serial_console_log.py | 4 ++-- press/press/doctype/server/test_server.py | 4 ++-- .../server_activity/test_server_activity.py | 4 ++-- .../doctype/server_plan/test_server_plan.py | 4 ++-- .../test_server_storage_plan.py | 4 ++-- .../silenced_alert/test_silenced_alert.py | 4 ++-- press/press/doctype/site/site.py | 8 ++++---- press/press/doctype/site/test_backups.py | 4 ++-- press/press/doctype/site/test_site.py | 4 ++-- .../doctype/site_activity/test_site_activity.py | 4 ++-- .../site_analytics/test_site_analytics.py | 4 ++-- .../doctype/site_backup/test_site_backup.py | 4 ++-- .../site_config_key/test_site_config_key.py | 4 ++-- .../test_site_config_key_blacklist.py | 4 ++-- .../doctype/site_domain/test_site_domain.py | 4 ++-- .../site_group_deploy/test_site_group_deploy.py | 4 ++-- .../site_migration/test_site_migration.py | 4 ++-- .../test_site_migration_step.py | 4 ++-- press/press/doctype/site_plan/test_site_plan.py | 4 ++-- .../site_plan_change/test_site_plan_change.py | 4 ++-- .../site_replication/test_site_replication.py | 4 ++-- .../doctype/site_update/test_site_update.py | 4 ++-- .../press/doctype/site_usage/test_site_usage.py | 4 ++-- press/press/doctype/site_user/test_site_user.py | 4 ++-- .../site_user_session/test_site_user_session.py | 4 ++-- .../ssh_certificate/test_ssh_certificate.py | 4 ++-- .../test_ssh_certificate_authority.py | 4 ++-- press/press/doctype/ssh_key/test_ssh_key.py | 4 ++-- .../test_storage_integration_bucket.py | 4 ++-- .../test_storage_integration_subscription.py | 4 ++-- .../test_stripe_micro_charge_record.py | 4 ++-- .../test_stripe_payment_event.py | 4 ++-- .../test_stripe_payment_method.py | 4 ++-- .../test_stripe_webhook_log.py | 4 ++-- .../doctype/subscription/test_subscription.py | 4 ++-- press/press/doctype/team/team.py | 4 ++-- press/press/doctype/team/test_team.py | 4 ++-- .../doctype/team_change/test_team_change.py | 4 ++-- .../test_team_deletion_request.py | 4 ++-- .../test_team_member_deletion_request.py | 4 ++-- .../test_team_member_impersonation.py | 4 ++-- .../telegram_group/test_telegram_group.py | 4 ++-- .../telegram_message/test_telegram_message.py | 4 ++-- .../tls_certificate/test_tls_certificate.py | 4 ++-- .../doctype/trace_server/test_trace_server.py | 4 ++-- .../doctype/usage_record/test_usage_record.py | 4 ++-- press/press/doctype/user_2fa/test_user_2fa.py | 4 ++-- .../test_user_ssh_certificate.py | 4 ++-- .../doctype/user_ssh_key/test_user_ssh_key.py | 4 ++-- .../version_upgrade/test_version_upgrade.py | 4 ++-- .../test_virtual_disk_snapshot.py | 4 ++-- .../virtual_machine/test_virtual_machine.py | 4 ++-- .../test_virtual_machine_image.py | 4 ++-- .../wireguard_peer/test_wireguard_peer.py | 4 ++-- .../hybrid_saas_pool/test_hybrid_saas_pool.py | 4 ++-- .../doctype/product_trial/test_product_trial.py | 4 ++-- .../test_product_trial_request.py | 4 ++-- press/saas/doctype/saas_app/test_saas_app.py | 4 ++-- .../doctype/saas_app_plan/test_saas_app_plan.py | 4 ++-- .../test_saas_app_subscription.py | 4 ++-- .../saas_app_version/test_saas_app_version.py | 4 ++-- .../doctype/saas_feedback/test_saas_feedback.py | 4 ++-- .../saas_remote_login/test_saas_remote_login.py | 4 ++-- .../doctype/saas_settings/test_saas_settings.py | 4 ++-- .../test_saas_setup_account_generator.py | 4 ++-- .../test_saas_signup_generator.py | 4 ++-- .../site_access_token/test_site_access_token.py | 4 ++-- press/scripts/migrate.py | 2 +- press/tests/before_test.py | 10 +++++----- press/tests/test_2fa.py | 4 ++-- press/tests/test_agent.py | 4 ++-- press/tests/test_audit.py | 6 +++--- press/tests/test_cleanup.py | 8 ++++---- press/tests/test_sanity.py | 4 ++-- press/utils/__init__.py | 4 ++-- press/utils/billing.py | 16 ++++++++-------- press/www/saas/billing.js | 4 ++-- 243 files changed, 510 insertions(+), 510 deletions(-) diff --git a/.cspell.json b/.cspell.json index 3dc16283..a1cc3772 100644 --- a/.cspell.json +++ b/.cspell.json @@ -199,7 +199,7 @@ "Fpww", "jingrowclient", "jingrowhr", - "Frappeio", + "Jingrowio", "jingrowui", "fremovexattr", "fsetxattr", diff --git a/backbone/tests/test_hypervisor.py b/backbone/tests/test_hypervisor.py index 70317edc..f43e0b3f 100644 --- a/backbone/tests/test_hypervisor.py +++ b/backbone/tests/test_hypervisor.py @@ -2,12 +2,12 @@ # For license information, please see license.txt from unittest.mock import MagicMock -from jingrow.tests.utils import FrappeTestCase +from jingrow.tests.utils import JingrowTestCase from backbone.hypervisor import Hypervisor -class TestHypervisor(FrappeTestCase): +class TestHypervisor(JingrowTestCase): def test_preinstall_pass(self): shell = MagicMock() shell.execute.return_value.returncode = 0 diff --git a/dashboard/src/components/OnboardingWithoutPayment.vue b/dashboard/src/components/OnboardingWithoutPayment.vue index b2aac990..b229f3c1 100644 --- a/dashboard/src/components/OnboardingWithoutPayment.vue +++ b/dashboard/src/components/OnboardingWithoutPayment.vue @@ -4,7 +4,7 @@
@@ -57,7 +57,7 @@ export default { }, }, methods: { - redirectForFrappeioAuth() { + redirectForJingrowioAuth() { window.location = '/f-login'; }, }, diff --git a/dashboard/src/components/auth/LoginBox.vue b/dashboard/src/components/auth/LoginBox.vue index 6666fb34..9b1124d2 100644 --- a/dashboard/src/components/auth/LoginBox.vue +++ b/dashboard/src/components/auth/LoginBox.vue @@ -1,7 +1,7 @@