@@ -2616,7 +2616,7 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_osmchange_bbox_size_limiter", "[ch
2616
2616
new global_setting_enable_bbox_size_limiter_test_class ());
2617
2617
global_settings::set_configuration (std::move (test_settings));
2618
2618
2619
- const std::string bearertoken = " Bearer 4f41f2328befed5a33bcabdf14483081c8df996cbafc41e313417776e8fafae8 " ;
2619
+ const std::string baseauth = " Basic ZGVtbzpwYXNzd29yZA== " ;
2620
2620
const std::string generator = " Test" ;
2621
2621
2622
2622
auto sel_factory = tdb.get_data_selection_factory ();
@@ -2630,21 +2630,17 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_osmchange_bbox_size_limiter", "[ch
2630
2630
tdb.run_sql (R"(
2631
2631
INSERT INTO users (id, email, pass_crypt, pass_salt, creation_time, display_name, data_public, status)
2632
2632
VALUES
2633
- (1, 'demo@example.com', 'xx', '', '2013-11-14T02:10:00Z', 'demo', true, 'confirmed');
2633
+ (1, 'demo@example.com', '3wYbPiOxk/tU0eeIDjUhdvi8aDP3AbFtwYKKxF1IhGg=',
2634
+ 'sha512!10000!OUQLgtM7eD8huvanFT5/WtWaCwdOdrir8QOtFwxhO0A=',
2635
+ '2013-11-14T02:10:00Z', 'demo', true, 'confirmed'),
2636
+ (2, 'user_2@example.com', '', '', '2013-11-14T02:10:00Z', 'user_2', false, 'active');
2634
2637
2635
2638
INSERT INTO changesets (id, user_id, created_at, closed_at, num_changes)
2636
2639
VALUES
2637
2640
(1, 1, now() at time zone 'utc', now() at time zone 'utc' + '1 hour' ::interval, 0),
2638
2641
(3, 1, now() at time zone 'utc', now() at time zone 'utc' + '1 hour' ::interval, 0);
2639
2642
2640
2643
SELECT setval('current_nodes_id_seq', 14000000000, false);
2641
-
2642
- INSERT INTO oauth_applications (id, owner_type, owner_id, name, uid, secret, redirect_uri, scopes, confidential, created_at, updated_at)
2643
- VALUES (3, 'User', 1, 'App 1', 'dHKmvGkmuoMjqhCNmTJkf-EcnA61Up34O1vOHwTSvU8', '965136b8fb8d00e2faa2faaaed99c0ec10225518d0c8d9fb1d2af701e87eb68c',
2644
- 'http://demo.localhost:3000', 'write_api read_gpx', false, '2021-04-12 17:53:30', '2021-04-12 17:53:30');
2645
-
2646
- INSERT INTO public.oauth_access_tokens (id, resource_owner_id, application_id, token, refresh_token, expires_in, revoked_at, created_at, scopes, previous_refresh_token)
2647
- VALUES (67, 1, 3, '4f41f2328befed5a33bcabdf14483081c8df996cbafc41e313417776e8fafae8', NULL, NULL, NULL, '2021-04-14 19:38:21', 'write_api', '');
2648
2644
2649
2645
)"
2650
2646
);
@@ -2671,7 +2667,7 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_osmchange_bbox_size_limiter", "[ch
2671
2667
test_request req;
2672
2668
req.set_header (" REQUEST_METHOD" , " POST" );
2673
2669
req.set_header (" REQUEST_URI" , " /api/0.6/changeset/1/upload" );
2674
- req.set_header (" HTTP_AUTHORIZATION" , bearertoken );
2670
+ req.set_header (" HTTP_AUTHORIZATION" , baseauth );
2675
2671
req.set_header (" REMOTE_ADDR" , " 127.0.0.1" );
2676
2672
2677
2673
req.set_payload (R"( <?xml version="1.0" encoding="UTF-8"?>
@@ -2700,7 +2696,7 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_osmchange_bbox_size_limiter", "[ch
2700
2696
test_request req;
2701
2697
req.set_header (" REQUEST_METHOD" , " POST" );
2702
2698
req.set_header (" REQUEST_URI" , " /api/0.6/changeset/3/upload" );
2703
- req.set_header (" HTTP_AUTHORIZATION" , bearertoken );
2699
+ req.set_header (" HTTP_AUTHORIZATION" , baseauth );
2704
2700
req.set_header (" REMOTE_ADDR" , " 127.0.0.1" );
2705
2701
2706
2702
req.set_payload (R"( <?xml version="1.0" encoding="UTF-8"?>
@@ -2721,7 +2717,7 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_osmchange_bbox_size_limiter", "[ch
2721
2717
test_request req;
2722
2718
req.set_header (" REQUEST_METHOD" , " POST" );
2723
2719
req.set_header (" REQUEST_URI" , " /api/0.6/changeset/3/upload" );
2724
- req.set_header (" HTTP_AUTHORIZATION" , bearertoken );
2720
+ req.set_header (" HTTP_AUTHORIZATION" , baseauth );
2725
2721
req.set_header (" REMOTE_ADDR" , " 127.0.0.1" );
2726
2722
2727
2723
req.set_payload (R"( <?xml version="1.0" encoding="UTF-8"?>
@@ -2745,7 +2741,7 @@ TEST_CASE_METHOD( DatabaseTestsFixture, "test_osmchange_bbox_size_limiter", "[ch
2745
2741
test_request req;
2746
2742
req.set_header (" REQUEST_METHOD" , " POST" );
2747
2743
req.set_header (" REQUEST_URI" , " /api/0.6/changeset/1/upload" );
2748
- req.set_header (" HTTP_AUTHORIZATION" , bearertoken );
2744
+ req.set_header (" HTTP_AUTHORIZATION" , baseauth );
2749
2745
req.set_header (" REMOTE_ADDR" , " 127.0.0.1" );
2750
2746
2751
2747
req.set_payload (R"( <?xml version="1.0" encoding="UTF-8"?>
0 commit comments