Vehicle Authorization
Feature: Vehicle Authorization
A vehicle is considered "Authorized" or "Official" if it is imported by
the official distributor. Vehicles not imported by the official distributor
are "Unauthorized" or "Grey Imports".
# --- Environment-based scenarios ---
Scenario: Authorized from dealer stock (environment)
Given the "standard-dealer" environment is loaded
And loading vehicle "JTMHX01J8L4198293" from the environment
When Checking "JTMHX01J8L4198293"
Then The Vehicle is considered Authorized
Scenario: Unauthorized vehicle not in any source (environment)
Given the "standard-dealer" environment is loaded
When Checking "UNKNOWN_VIN_12345"
Then The Vehicle is considered Unauthorized
# --- Inline data scenarios ---
Scenario: Authorized from initial stock
Given a dealer with the following vehicles as initial stock:
| VIN |
| 1FMZU72E12UB00984 |
| 1FMCU0F73AKB12345 |
When Checking "1FMZU72E12UB00984"
Then The Vehicle is considered Authorized
Scenario: Authorized from dealer stock (inline)
Given a dealer with the following vehicles in their dealer stock (coming from their DMS):
| VIN |
| 1FDKF37GXVEB34368 |
| 1FTFW1EFXEKD12345 |
When Checking "1FDKF37GXVEB34368"
Then The Vehicle is considered Authorized
Scenario: Authorized from SSC
Given a dealer with the following vehicles in official SSC Vehicles (Provided by the vehicle manufacturer):
| VIN |
| 1G1ZC5E17BF283048 |
When Checking "1G1ZC5E17BF283048"
Then The Vehicle is considered Authorized
Scenario: Unauthorized vehicle not in any source (inline)
Given a dealer with the following vehicles in their dealer stock (coming from their DMS):
| VIN |
| 2C3CCAGG1DH549029 |
And a dealer with the following vehicles in official SSC Vehicles (Provided by the vehicle manufacturer):
| VIN |
| 1HGCD5630TA078763 |
And a dealer with the following vehicles as initial stock:
| VIN |
| 1FDKF37G8VEB34451 |
When Checking "WMWZB3C55BWM46667"
Then The Vehicle is considered Unauthorized
When Checking "1FMYU60EXYUA30399"
Then The Vehicle is considered Unauthorized
When Checking "5GAKRBKD5EJ376173"
Then The Vehicle is considered Unauthorized
When Checking "3VWCD21Y33M352232"
Then The Vehicle is considered Unauthorized