Skip to content

Commit 23c147e

Browse files
committed
Add Api Tests
1 parent 0074053 commit 23c147e

File tree

551 files changed

+13739
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

551 files changed

+13739
-0
lines changed

QA-Java-Diplom-2.iml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10+
<excludeFolder url="file://$MODULE_DIR$/target" />
11+
</content>
12+
<orderEntry type="inheritedJdk" />
13+
<orderEntry type="sourceFolder" forTests="false" />
14+
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.13.2" level="project" />
15+
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
16+
<orderEntry type="library" name="Maven: io.rest-assured:rest-assured:5.3.0" level="project" />
17+
<orderEntry type="library" name="Maven: org.apache.groovy:groovy:4.0.6" level="project" />
18+
<orderEntry type="library" name="Maven: org.apache.groovy:groovy-xml:4.0.6" level="project" />
19+
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.13" level="project" />
20+
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
21+
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
22+
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
23+
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.5.13" level="project" />
24+
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.1" level="project" />
25+
<orderEntry type="library" name="Maven: org.ccil.cowan.tagsoup:tagsoup:1.2.1" level="project" />
26+
<orderEntry type="library" name="Maven: io.rest-assured:json-path:5.3.0" level="project" />
27+
<orderEntry type="library" name="Maven: org.apache.groovy:groovy-json:4.0.6" level="project" />
28+
<orderEntry type="library" name="Maven: io.rest-assured:rest-assured-common:5.3.0" level="project" />
29+
<orderEntry type="library" name="Maven: io.rest-assured:xml-path:5.3.0" level="project" />
30+
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.11" level="project" />
31+
<orderEntry type="library" name="Maven: io.qameta.allure:allure-junit4:2.21.0" level="project" />
32+
<orderEntry type="library" name="Maven: io.qameta.allure:allure-java-commons:2.21.0" level="project" />
33+
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
34+
<orderEntry type="library" name="Maven: io.qameta.allure:allure-model:2.21.0" level="project" />
35+
<orderEntry type="library" name="Maven: io.qameta.allure:allure-rest-assured:2.21.0" level="project" />
36+
<orderEntry type="library" name="Maven: io.qameta.allure:allure-attachments:2.21.0" level="project" />
37+
<orderEntry type="library" scope="RUNTIME" name="Maven: org.freemarker:freemarker:2.3.31" level="project" />
38+
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.10.1" level="project" />
39+
<orderEntry type="library" scope="PROVIDED" name="Maven: org.projectlombok:lombok:1.18.28" level="project" />
40+
</component>
41+
</module>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div>PATCH to https://stellarburgers.nomoreparties.site/api/auth/user</div>
2+
3+
<h4>Body</h4>
4+
<div>
5+
<pre class="preformated-text">
6+
{
7+
&quot;email&quot;: &quot;e-mail_96380f56-b7e0-4400-93d7-1547eba01164@mail.com&quot;,
8+
&quot;password&quot;: &quot;pass&quot;,
9+
&quot;name&quot;: &quot;name&quot;
10+
} </pre>
11+
</div>
12+
13+
<h4>Headers</h4>
14+
<div>
15+
<div>Accept: */*</div>
16+
<div>Content-Type: application/json</div>
17+
</div>
18+
19+
20+
21+
<h4>Curl</h4>
22+
<div>
23+
curl -v -X PATCH &#39;https://stellarburgers.nomoreparties.site/api/auth/user&#39; -H &#39;Accept: */*&#39; -H &#39;Content-Type: application/json&#39; -d &#39;{
24+
&quot;email&quot;: &quot;e-mail_96380f56-b7e0-4400-93d7-1547eba01164@mail.com&quot;,
25+
&quot;password&quot;: &quot;pass&quot;,
26+
&quot;name&quot;: &quot;name&quot;
27+
}&#39;
28+
</div>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div>POST to https://stellarburgers.nomoreparties.site/api/auth/register</div>
2+
3+
<h4>Body</h4>
4+
<div>
5+
<pre class="preformated-text">
6+
{
7+
&quot;email&quot;: &quot;e-mail_f9c42725-3255-4e5f-a4bf-e408bd1dd048@mail.com&quot;,
8+
&quot;password&quot;: &quot;pass&quot;,
9+
&quot;name&quot;: &quot;name&quot;
10+
} </pre>
11+
</div>
12+
13+
<h4>Headers</h4>
14+
<div>
15+
<div>Accept: */*</div>
16+
<div>Content-Type: application/json</div>
17+
</div>
18+
19+
20+
21+
<h4>Curl</h4>
22+
<div>
23+
curl -v -X POST &#39;https://stellarburgers.nomoreparties.site/api/auth/register&#39; -H &#39;Accept: */*&#39; -H &#39;Content-Type: application/json&#39; -d &#39;{
24+
&quot;email&quot;: &quot;e-mail_f9c42725-3255-4e5f-a4bf-e408bd1dd048@mail.com&quot;,
25+
&quot;password&quot;: &quot;pass&quot;,
26+
&quot;name&quot;: &quot;name&quot;
27+
}&#39;
28+
</div>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div>POST to https://stellarburgers.nomoreparties.site/api/auth/register</div>
2+
3+
<h4>Body</h4>
4+
<div>
5+
<pre class="preformated-text">
6+
{
7+
&quot;email&quot;: &quot;e-mail_9e9bf9bf-59d3-4c07-8537-2483440b33c6@mail.com&quot;,
8+
&quot;password&quot;: &quot;pass&quot;,
9+
&quot;name&quot;: &quot;name&quot;
10+
} </pre>
11+
</div>
12+
13+
<h4>Headers</h4>
14+
<div>
15+
<div>Accept: */*</div>
16+
<div>Content-Type: application/json</div>
17+
</div>
18+
19+
20+
21+
<h4>Curl</h4>
22+
<div>
23+
curl -v -X POST &#39;https://stellarburgers.nomoreparties.site/api/auth/register&#39; -H &#39;Accept: */*&#39; -H &#39;Content-Type: application/json&#39; -d &#39;{
24+
&quot;email&quot;: &quot;e-mail_9e9bf9bf-59d3-4c07-8537-2483440b33c6@mail.com&quot;,
25+
&quot;password&quot;: &quot;pass&quot;,
26+
&quot;name&quot;: &quot;name&quot;
27+
}&#39;
28+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HTTP/1.1 200 OK
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HTTP/1.1 200 OK
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<div>Status code 200 </div>
2+
3+
4+
<h4>Body</h4>
5+
<div>
6+
<pre class="preformated-text">
7+
{
8+
&quot;success&quot;: true,
9+
&quot;user&quot;: {
10+
&quot;email&quot;: &quot;e-mail_36879cae-5091-4ce0-868d-2ea090e28530@mail.com&quot;,
11+
&quot;name&quot;: &quot;name&quot;
12+
},
13+
&quot;accessToken&quot;: &quot;Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ZTYzOTYwOWVkMjgwMDAxYjM1ODg5NyIsImlhdCI6MTY5MjgwOTU2OCwiZXhwIjoxNjkyODEwNzY4fQ.CwKE1vJSHjSH-30aKvaBxV7oiHJbA3TaEATw7RyaGqI&quot;,
14+
&quot;refreshToken&quot;: &quot;3689dc334767c50fc14d205a6d3daccb44a1c726b42556f3e649c0c45a31760e3527523d6384ab97&quot;
15+
} </pre>
16+
</div>
17+
18+
<h4>Headers</h4>
19+
<div>
20+
<div>Transfer-Encoding: chunked</div>
21+
<div>Server: cloudflare</div>
22+
<div>CF-RAY: 7fb4de3a494f9d45-DME</div>
23+
<div>Access-Control-Allow-Origin: *</div>
24+
<div>Connection: keep-alive</div>
25+
<div>Date: Wed, 23 Aug 2023 16:52:48 GMT</div>
26+
<div>authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ZTYzOTYwOWVkMjgwMDAxYjM1ODg5NyIsImlhdCI6MTY5MjgwOTU2OCwiZXhwIjoxNjkyODEwNzY4fQ.CwKE1vJSHjSH-30aKvaBxV7oiHJbA3TaEATw7RyaGqI</div>
27+
<div>CF-Cache-Status: DYNAMIC</div>
28+
<div>NEL: {&quot;success_fraction&quot;:0,&quot;report_to&quot;:&quot;cf-nel&quot;,&quot;max_age&quot;:604800}</div>
29+
<div>ETag: W/&quot;18b-y+/Urss29tVmXgAAyreihx2WmYc&quot;</div>
30+
<div>Report-To: {&quot;endpoints&quot;:[{&quot;url&quot;:&quot;https:\/\/a.nel.cloudflare.com\/report\/v3?s=FSnaROWM1%2B4ok86mH6%2FfSFErGKOCMVf%2B73h0YUTzgVtld5g7UBF%2B1ssiM2FOc6Ko6DuWqGBuQQ2bDgHSEOk76e6sKv9yzPKxUum7vf2zc5EyYwkGnHIUYorm873EA5pEvGx6VrGU2vN3%2Fs%2Ba1bOd6pq1O2s%3D&quot;}],&quot;group&quot;:&quot;cf-nel&quot;,&quot;max_age&quot;:604800}</div>
31+
<div>Content-Encoding: gzip</div>
32+
<div>alt-svc: h3=&quot;:443&quot;; ma=86400</div>
33+
<div>Content-Type: application/json; charset=utf-8</div>
34+
<div>X-Powered-By: Express</div>
35+
</div>
36+
37+

0 commit comments

Comments
 (0)