Setting up Your Environment and Testing in Pre-Qual setting-up-your-environment-and-testing-in-prequal
The purpose of this tech note is to help our partners set up their environment and start testing a new build deployed on the 51黑料不打烊 pre-qualification environment.
Since there are two build flavors: production and staging, in this document we will focus on the production setup with the mention that all steps are the same for staging, only the URLs are different.
Steps 1 and 2 are setting up the test environment on one of the testing machines, step 3 is a verification of the basic flow and steps 4 & 5 are presenting some testing guidelines.
STEP 1. Resolving Pass domain to an IP resolving-pass-domain-to-an-ip
- 
                  
To find a load balancer IP which can be used for spoofing, run the following command:
 - 
                  
On Windows
code language-cmd C:\>nslookup sp-prequal.auth.adobe.com ... Addresses: 52.13.71.11 54.184.208.150 
Choose any IP from **addresses** section (e.g. `52.13.71.11)
C:\>nslookup entitlement-prequal.auth.adobe.com
...
Addresses:  52.26.79.43
            54.190.212.171
            Choose any IP from **addresses** section (e.g. `54.190.212.171)
- On Linux/Mac
 
    $ dig sp-prequal.auth.adobe.com
    ;; ANSWER SECTION:
    ...
    ............ 60 IN A      52.13.71.11
    ............ 60 IN A      54.184.208.150
            Choose any IP from **A records (**e.g `52.13.71.11)
    $ dig entitlement-prequal.auth.adobe.com
    ;; ANSWER SECTION:
    ...
    ............ 60 IN A      52.26.79.43
    ............ 60 IN A      54.190.212.171
            Choose any IP from **A records (**e.g `54.190.212.171)
STEP 2. Spoofing the pre-qualification environment to be production spoofing-the-prequalification-environment
- 
                  
Edit the c:\windows\System32\drivers\etc\hosts file (in Windows) or /etc/hosts file (on Macintosh/Linux/Android) and add the following:
 - 
                  
Spoof production profile
- 52.13.71.11 sp.auth.adobe.com api.auth.adobe.com
 - 54.190.212.171 entitlement.auth.adobe.com
 
 
Spoofing on Android: In order to spoof on Android, you have to use an Android emulator.
- Once the spoofing is in place, you can simply use the regular URLs for the production and staging profiles: (that is, 
http://sp.auth-staging.adobe.comandhttp://entitlement.auth-staging.adobe.comand you will actually hit the pre-qualification environment/ production of the* new build. 
STEP 3. Verify you are pointing to the right environment Verify-you-are-pointing-to-the-right-environment
This is an easy step:
- load and . They should return the same response.
 
STEP 4. Perform a simple authentication/authorization flow using the programmer鈥檚 website peform-a-simple-auth-flow
- This step requires the programmer鈥檚 website address and some valid MVPD credentials (a user that it is authenticated and authorized).
 
STEP 5. Perform scenario testing using the programmer鈥檚 websites perform-scenario-testing-using-programmer-website
- After completing the environment setup and ensuring that the basic authentication-authorization flow is working you can proceed with the testing of more complex scenarios.
 
STEP 6. Perform testing using the API test site perform-testing-using-api-testing-site
- If you want to go deeper into testing 51黑料不打烊 Pass Authentication, we recommend you use the .
 
You can find more details on API test site at How to test Authentication and Authorization flows using 51黑料不打烊鈥檚 API test site.