Difference between revisions of "User:Infinity Linden/OGP Test Cases"
Line 264: | Line 264: | ||
| valign="top" colspan="2" | 15. agent info for agent 4.15, where agent domain state indicates agent not has accepted TOS and not viewed critical messages | | valign="top" colspan="2" | 15. agent info for agent 4.15, where agent domain state indicates agent not has accepted TOS and not viewed critical messages | ||
|- style="background:lightgrey;" | |- style="background:lightgrey;" | ||
| valign="top" colspan="3" | '''8. reason code URLs''' | | valign="top" colspan="3" | '''8. reason code URLs''' | ||
Line 271: | Line 270: | ||
| valign="top" colspan="2" | 0. url for "notice" (aka unsuccessful login) | | valign="top" colspan="2" | 0. url for "notice" (aka unsuccessful login) | ||
|- style="background:lightgrey;" | |||
| valign="top" colspan="3" | '''9. faux machines''' - these are used to test machines blacklisted by mac address or id0 | |||
|- style="background:lightgrey;" | |||
| valign ="top" width="10%" | | |||
| valign="top" colspan="2" | 0. machine whose mac address and id0 are not blacklisted | |||
|- style="background:lightgrey;" | |||
| valign ="top" width="10%" | | |||
| valign="top" colspan="2" | 1. machine whose mac address is blacklisted and id0 is not blacklisted | |||
|- style="background:lightgrey;" | |||
| valign ="top" width="10%" | | |||
| valign="top" colspan="2" | 2. machine whose mac address is not blacklisted and id0 is blacklisted | |||
|- style="background:lightgrey;" | |||
| valign ="top" width="10%" | | |||
| valign="top" colspan="2" | 3. machine whose mac address and id0 are blacklisted | |||
|- style="background:lightgrey;" | |||
| valign="top" colspan="3" | '''10. agent domain id0 blacklist''' - this is the list of machines that our faux agent domain believes are blacklisted | |||
|- style="background:lightgrey;" | |||
| valign ="top" width="10%" | | |||
| valign="top" colspan="2" | 0. id0 of a blacklisted machine | |||
|- style="background:lightgrey;" | |||
| valign="top" colspan="3" | '''11. agent domain mac blacklist''' - this is the list of machines that our faux agent domain believes are blacklisted | |||
|- style="background:lightgrey;" | |||
| valign ="top" width="10%" | | |||
| valign="top" colspan="2" | 0. mac of a blacklisted machine | |||
|} | |} | ||
Revision as of 11:12, 23 July 2008
note: this is a brief note for informational purposes. it's eventually going to be "cleaned up" and moved to a more appropriate place on this wiki.
Introduction
What is This?
In the development of the Open Grid Protocol and the PyOGP project, it became obvious that there were no canonical lists of use cases and things to test. This page is the first effort to remediate this omission. While we don't go as far as providing use cases here, we do list common functionality and interoperability tests.
About the OGP Test Cases
The objective of the Open Grid Protocol is to specify syntax and semantics of SL Grid messages to the degree that interoperable viewers, agent domains, region domains and regions may be coded without resort to close examination of open source code from Linden Lab or peeking into the interaction between running clients and servers. The Second Life Grid has been developed sufficiently, the reasoning goes, that it should be possible to shine the bright light of inquiry on the process and document the living heck out of how the system works. Moving forward we should see advantages as software developers code to documented requirements and standards. The "OGP Test Cases" are a catalog of tests that demonstrate compatibility with the written spec.
Well... that's how it's supposed to be... In the real world, "running code" trumps written specifications, and probably will continue to do so. And that's one of the reasons we have the interop tests; properly written test cases succinctly communicate abstractions introduced in written specifications. So rather than viewing the SLGOGP spec and these tests as separate, think of them as being two sections of the same document.
Test Fixtures
Login Test Fixtures
0. agent domain fixtures - these are the "stock" agent domains, people who are testing against a different agent domain implementation will need to add their own | ||
0. agent0.aditi.lindenlab.com | ||
1. agent1.aditi.lindenlab.com | ||
1. region fixtures - these are the "stock" regions, people who are testing against a different simulator will need to add their own | ||
0. sim1.vaak.secondlife.com | ||
2. non-existent accounts | ||
0. a generic account that does not exist in either of the agent domains listed above | ||
3. accounts with a single agent | ||
0. account for agent that _has_ accepted the TOS and the critical messages | ||
1. account for agent that _has_ accepted the TOS, but not the critical messages | ||
2. account for agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
3. account for agent that _has not_ accepted either the TOS or the critical messages | ||
4. account for agent that does not exist | ||
4. agents for accounts with a single agent | ||
0. agent that _has_ accepted the TOS and the critical messages | ||
1. agent that _has_ accepted the TOS, but not the critical messages | ||
2. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
3. agent that _has not_ accepted either the TOS or the critical messages | ||
4. agent that _has_ accepted the TOS and the critical messages | ||
5. agent that _has_ accepted the TOS, but not the critical messages | ||
6. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
7. agent that _has not_ accepted either the TOS or the critical messages | ||
8. agent that _has_ accepted the TOS and the critical messages | ||
9. agent that _has_ accepted the TOS, but not the critical messages | ||
10. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
11. agent that _has not_ accepted either the TOS or the critical messages | ||
12. agent that _has_ accepted the TOS and the critical messages | ||
13. agent that _has_ accepted the TOS, but not the critical messages | ||
14. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
15. agent that _has not_ accepted either the TOS or the critical messages | ||
16. agent that does not exist | ||
5. account with multiple agents | ||
0. account for agent 6.0 and 6.1 | ||
1. account for agent 6.2 and 6.3 | ||
2. account for agent 6.4 and 6.5 | ||
3. account for agent 6.6 and 6.7 | ||
4. account for agent 6.8 and 6.9 | ||
5. account for agent 6.10 and 6.11 | ||
6. account for agent 6.12 and 6.13 | ||
7. account for agent 6.14 and 6.15 | ||
8. account for agent 6.16 and 6.17 | ||
9. account for agent 6.18 and 6.19 | ||
6. agents for accounts with multiple agents | ||
0. agent that _has_ accepted the TOS and the critical messages | ||
1. agent that _has_ accepted the TOS and the critical messages | ||
2. agent that _has_ accepted the TOS and the critical messages | ||
3. agent that _has_ accepted the TOS, but not the critical messages | ||
4. agent that _has_ accepted the TOS and the critical messages | ||
5. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
6. agent that _has_ accepted the TOS and the critical messages | ||
7. agent that _has not_ accepted either the TOS or the critical messages | ||
8. agent that _has_ accepted the TOS, but not the critical messages | ||
9. agent that _has_ accepted the TOS, but not the critical messages | ||
10. agent that _has_ accepted the TOS, but not the critical messages | ||
11. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
12. agent that _has_ accepted the TOS, but not the critical messages | ||
13. agent that _has not_ accepted either the TOS or the critical messages | ||
14. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
15. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
16. agent that _has not_ accepted the TOS, but _has_ accepted the critical messages | ||
17. agent that _has not_ accepted either the TOS or the critical messages | ||
18. agent that _has not_ accepted either the TOS or the critical messages | ||
19. agent that _has not_ accepted either the TOS or the critical messages | ||
20. agent that _has not_ accepted either the TOS or the critical messages | ||
7. agent info on agent domain | ||
0. agent info for agent 4.0, where agent domain state indicates agent has accepted TOS and viewed critical messages | ||
1. agent info for agent 4.1, where agent domain state indicates agent has accepted TOS and viewed critical messages | ||
2. agent info for agent 4.2, where agent domain state indicates agent has accepted TOS and viewed critical messages | ||
3. agent info for agent 4.3, where agent domain state indicates agent has accepted TOS and viewed critical messages | ||
4. agent info for agent 4.4, where agent domain state indicates agent has accepted TOS but not viewed critical messages | ||
5. agent info for agent 4.5, where agent domain state indicates agent has accepted TOS but not viewed critical messages | ||
6. agent info for agent 4.6, where agent domain state indicates agent has accepted TOS but not viewed critical messages | ||
7. agent info for agent 4.7, where agent domain state indicates agent has accepted TOS but not viewed critical messages | ||
8. agent info for agent 4.8, where agent domain state indicates agent has not accepted TOS but not viewed critical messages | ||
9. agent info for agent 4.9, where agent domain state indicates agent has not accepted TOS but not viewed critical messages | ||
10. agent info for agent 4.10, where agent domain state indicates agent has not accepted TOS but not viewed critical messages | ||
11. agent info for agent 4.11, whereagent domain state indicates agent has not accepted TOS but not viewed critical messages | ||
12. agent info for agent 4.12, where agent domain state indicates agent not has accepted TOS and not viewed critical messages | ||
13. agent info for agent 4.13, where agent domain state indicates agent not has accepted TOS and not viewed critical messages | ||
14. agent info for agent 4.14, where agent domain state indicates agent not has accepted TOS and not viewed critical messages | ||
15. agent info for agent 4.15, where agent domain state indicates agent not has accepted TOS and not viewed critical messages | ||
8. reason code URLs | ||
0. url for "notice" (aka unsuccessful login) | ||
9. faux machines - these are used to test machines blacklisted by mac address or id0 | ||
0. machine whose mac address and id0 are not blacklisted | ||
1. machine whose mac address is blacklisted and id0 is not blacklisted | ||
2. machine whose mac address is not blacklisted and id0 is blacklisted | ||
3. machine whose mac address and id0 are blacklisted | ||
10. agent domain id0 blacklist - this is the list of machines that our faux agent domain believes are blacklisted | ||
0. id0 of a blacklisted machine | ||
11. agent domain mac blacklist - this is the list of machines that our faux agent domain believes are blacklisted | ||
0. mac of a blacklisted machine |
Base Tests
REST Tests
LLSD (Linden Lab Structured Data)
Event Queue
Capabilities
Resource Tests
Agent Credential
Account Credential
Login Tests
Login is the process of associating a viewer with an agent domain, then placing the user's avatar in a region managed by a (potentially separate) region domain. The spec describes logging in as the sequence:
- The viewer authenticates to an agent domain for the authorized control of a particular agent.
- The viewer directs the agent domain to to place the agent in a region.
- The agent domain contacts the region domain for the region, and negotiates placement of the agent.
- The region grants access to the agent domain, which in turn passes some of that granted access on to the viewer.
Testing the login process means logging each of these steps, in order. We should also test that executing them out of order leads to an error.
We assume the code providing underlying services (such as the event queue, LLSD serialization / deserialization, MD5 Hash production, etc.) is reliable and has been tested.
Viewer to Agent Domain Authentication Tests | ||
expecting? | test description | |
success | authenticate to agent domain using good agent name and password | |
success | authenticate to agent domain using good account name and password, where account name maps to a single agent name | |
failure | authenticate to agent domain using good account name and password, where account name maps to a multiple agent names | |
failure | authenticate to agent domain using known account name but bad password | |
failure | authenticate to agent domain using unknown account name | |
failure | authenticate to agent domain using good agent name and password, but with "illegal" channel | |
failure | authenticate to agent domain using good agent name and password, but with "illegal" version | |
failure | authenticate to agent domain using good agent name and password, but with blacklisted mac address | |
failure | authenticate to agent domain using good agent name and password, but with read_critical set to false | |
failure | authenticate to agent domain using good agent name and password, but with agree_to_tos set to false | |
Legacy Auth Tests | ||
expecting? | test description | |
success | legacy authentication using good agent name and password | |
success | legacy authentication using good account name and password, where account name maps to a single agent name | |
failure | legacy authentication using good account name and password, where account name maps to a multiple agent names | |
failure | legacy authentication using known account name but bad password | |
failure | legacy authentication using unknown account name |