Skip to content

Commit e24b9f6

Browse files
Merge pull request #33 from StuartFerguson/task/#26_apiresourcespecflow
Api Resource specflow tests added
2 parents 4c3d0c8 + c02c175 commit e24b9f6

11 files changed

Lines changed: 649 additions & 48 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@base @apiresources
2+
Feature: ApiResource
3+
4+
Scenario: Create Api Resource
5+
Given I create the following api resources
6+
| Name | DisplayName | Description | Secret | Scopes | UserClaims |
7+
| testresource | Test Resource | A resource for testing | secret1 | Scope1,Scope2 | Claim1,Claim2 |
8+
9+
Scenario: Get Api Resource
10+
Given I create the following api resources
11+
| Name | DisplayName | Description | Secret | Scopes | UserClaims |
12+
| testresource1 | Test Resource1 | A resource for testing 1 | secret1 | Scope1,Scope2 | Claim1,Claim2 |
13+
| testresource2 | Test Resource2 | A resource for testing 2 | secret2 | Scope1,Scope2 | Claim1,Claim2 |
14+
When I get the api resource with name 'testresource1' the api resource details are returned as follows
15+
| Name | DisplayName | Description | Scopes | UserClaims |
16+
| testresource1 | Test Resource1 | A resource for testing 1 | Scope1,Scope2 | Claim1,Claim2 |
17+
18+
@PRTest
19+
Scenario: Get Api Resources
20+
Given I create the following api resources
21+
| Name | DisplayName | Description | Secret | Scopes | UserClaims |
22+
| testresource1 | Test Resource1 | A resource for testing 1 | secret1 | Scope1,Scope2 | Claim1,Claim2 |
23+
| testresource2 | Test Resource2 | A resource for testing 2 | secret2 | Scope1,Scope2 | Claim1,Claim2 |
24+
When I get the api resources 2 api resource details are returned as follows
25+
| Name | DisplayName | Description | Scopes | UserClaims |
26+
| testresource1 | Test Resource1 | A resource for testing 1 | Scope1,Scope2 | Claim1,Claim2 |
27+
| testresource2 | Test Resource2 | A resource for testing 2 | Scope1,Scope2 | Claim1,Claim2 |

SecurityService.IntegrationTests/ApiResource/ApiResource.feature.cs

Lines changed: 305 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)