@@ -13,6 +13,7 @@ Feature: Accessing Repos Main API
1313 And I make request within a cassette named "repos/branches"
1414 Then the response should be "200"
1515 And the response type should be "JSON"
16+ And the response should not be empty
1617
1718 Scenario : Returning all repository tags
1819 When I am looking for "tags" with the following params:
@@ -21,12 +22,41 @@ Feature: Accessing Repos Main API
2122 And I make request within a cassette named "repos/tags"
2223 Then the response should be "200"
2324 And the response type should be "JSON"
25+ And the response should not be empty
2426
2527 Scenario : Returning all repositories for the user
26- When I want to list resources
28+ Given I want to list resources
2729 And I pass the following request options:
2830 | user |
2931 | peter -murach |
30- And I make request within a cassette named "repos/list"
32+ When I make request within a cassette named "repos/list"
3133 Then the response should be "200"
3234 And the response type should be "JSON"
35+ And the response should not be empty
36+
37+ Scenario : Get a repository
38+ Given I want to get resource with the following params:
39+ | user | repo |
40+ | wycats | thor |
41+ When I make request within a cassette named "repos/get"
42+ Then the response should be "200"
43+ And the response type should be "JSON"
44+ And the response should not be empty
45+
46+ Scenario : Listing repository languages
47+ When I am looking for "languages" with the following params:
48+ | user | repo |
49+ | peter -murach | github |
50+ And I make request within a cassette named "repos/languages"
51+ Then the response should be "200"
52+ And the response type should be "JSON"
53+
54+ Scenario : Create repository
55+ Given I want to create resource
56+ And I pass the following request options:
57+ | name |
58+ | github_api_test |
59+ When I make request within a cassette named "repos/create"
60+ Then the response should be "201"
61+ And the response type should be "JSON"
62+ And the response should not be empty
0 commit comments