Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-8319

The 3scale API endpoint /admin/api/settings.json doesn't update account_approval_required field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • 2.16.0 GA
    • SaaS, 2.11.2 GA
    • System
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide

      Test 1

      • From the 3scale Admin portal Audience > Usage Rules, uncheck Account approval required field if enabled. The field Developers are allowed sign up themselves can be checked or unchecked.
      • Use the 3scale API endpoint /admin/api/settings.json to set to true the account_approval_required field:
        curl -v  -X PUT "https://<admin-portal-domain>/admin/api/settings.json" -d 'access_token=<access-token>&signups_enabled=false&account_approval_required=true'
        
      • Check in the 3scale Admin portal Audience > Usage Rules, the Account approval required setting remains false, unchecked.
         
        Test 2
      • From the 3scale Admin portal Audience > Usage Rules, check Account approval required field if not enabled. The field Developers are allowed sign up themselves can be checked or unchecked.
      • Use the 3scale API endpoint /admin/api/settings.json to set to true the account_approval_required field, it shouldn't change:
        curl -v  -X PUT "https://<admin-portal-domain>/admin/api/settings.json" -d 'access_token=<access-token>&signups_enabled=1&account_approval_required=1'
        
      • Check in the 3scale Admin portal Audience > Usage Rules, the Account approval required setting has changed to false, unchecked.
         
      Show
      Test 1 From the 3scale Admin portal Audience > Usage Rules, uncheck Account approval required field if enabled. The field Developers are allowed sign up themselves can be checked or unchecked. Use the 3scale API endpoint /admin/api/settings.json to set to true the account_approval_required field: curl -v -X PUT "https://<admin-portal-domain>/admin/api/settings.json" -d 'access_token=<access-token>&signups_enabled=false&account_approval_required=true' Check in the 3scale Admin portal Audience > Usage Rules, the Account approval required setting remains false, unchecked.   Test 2 From the 3scale Admin portal Audience > Usage Rules, check Account approval required field if not enabled. The field Developers are allowed sign up themselves can be checked or unchecked. Use the 3scale API endpoint /admin/api/settings.json to set to true the account_approval_required field, it shouldn't change: curl -v -X PUT "https://<admin-portal-domain>/admin/api/settings.json" -d 'access_token=<access-token>&signups_enabled=1&account_approval_required=1' Check in the 3scale Admin portal Audience > Usage Rules, the Account approval required setting has changed to false, unchecked.  

      The field account_approval_required remains false when set to true with the 3scale API endpoint /admin/api/settings.json.

       

       

              Unassigned Unassigned
              rhn-support-avilatus Anna Vila Tusell
              Aleksandar Kostadinov Aleksandar Kostadinov
              Daria Mayorova Daria Mayorova
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: