Prajwal

Student

Related Links: Information Technology Lessons
Information about Prajwal
Want help with django task, I am looking for someone expert in Python, Django F, Postgres/Any DB
Task:
Acceptance Criteria:
All new Organisation should have subdomain
A Subdomain Should not be added to existing Organization that lack a subdomain
Once subdomain is added to an organization is considered read only. It can not be changed.
Scenarios:
1.Scenario: An Account Manager can create an organization when the subdomain is valid
Given User "U" exists with Role "Account Manager"
And User "U" is authenticated
When User "U" makes a POST request to "/v3/access/organizations" with the following body:
"""
{
"email": "a-user@email",
"name": "Organization Name",
"subdomain": [{"label": "my-subdomain}]"
}
"""
Then an Organization with the following data should exist
| name | id | uuid | created | tier |
| Organization Name | <pk> | <uuid> | <timestamp> | Enterprise |
Then the User should receive the HTTP Response Status: 202
And the User should receive the following body:
"""
{
"id": <pk>,
"uuid": "<uuid>",
"name": "Organization Name",
"subdomain": [{"label": "my-subdomain", "created_at": "<timestamp>"}],
"created_at": "<timestamp>",
"updated_at": "<timestamp>",
"tier": <tier enterprise pk>,
"demo": false,
"owner_id": <RoleBaseUser with email a-user-email pk>,
"is_active": true,
"fallback_url": ""
}
"""
Availability: 10AM-12pm
08pm-12pm
Willing to travel: Home Only
Contact this StudentContact this Student

