This is an automated email from the ASF dual-hosted git repository.
philippus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git
The following commit(s) were added to refs/heads/main by this push:
new 02654e0ca Replace akka logo images (#1536)
02654e0ca is described below
commit 02654e0cad5038214bb2b444b5a957f0f16c1589
Author: Philippus Baalman <[email protected]>
AuthorDate: Sat Mar 28 13:43:11 2026 +0100
Replace akka logo images (#1536)
---
file/src/test/java/docs/javadsl/ArchiveTest.java | 20 ++--
file/src/test/resources/foundation.svg | 43 ++++++++
file/src/test/resources/pekko.svg | 122 +++++++++++++++++++++
file/src/test/resources/pekko_full_color.svg | 1 -
file/src/test/resources/pekko_icon_reverse.svg | 1 -
.../src/test/scala/docs/scaladsl/ArchiveSpec.scala | 14 +--
.../test/scala/docs/scaladsl/TarArchiveSpec.scala | 18 +--
7 files changed, 191 insertions(+), 28 deletions(-)
diff --git a/file/src/test/java/docs/javadsl/ArchiveTest.java
b/file/src/test/java/docs/javadsl/ArchiveTest.java
index 86f0453e4..9ab7ddb84 100644
--- a/file/src/test/java/docs/javadsl/ArchiveTest.java
+++ b/file/src/test/java/docs/javadsl/ArchiveTest.java
@@ -74,8 +74,8 @@ public class ArchiveTest {
@Test
public void flowShouldCreateZIPArchive() throws Exception {
- ByteString fileContent1 =
readFileAsByteString(getFileFromResource("pekko_full_color.svg"));
- ByteString fileContent2 =
readFileAsByteString(getFileFromResource("pekko_icon_reverse.svg"));
+ ByteString fileContent1 =
readFileAsByteString(getFileFromResource("pekko.svg"));
+ ByteString fileContent2 =
readFileAsByteString(getFileFromResource("foundation.svg"));
Source<ByteString, NotUsed> source1 = toSource(fileContent1);
Source<ByteString, NotUsed> source2 = toSource(fileContent2);
@@ -90,9 +90,9 @@ public class ArchiveTest {
// #sample-zip
Pair<ArchiveMetadata, Source<ByteString, NotUsed>> pair1 =
- Pair.create(ArchiveMetadata.create("pekko_full_color.svg"), source1);
+ Pair.create(ArchiveMetadata.create("pekko.svg"), source1);
Pair<ArchiveMetadata, Source<ByteString, NotUsed>> pair2 =
- Pair.create(ArchiveMetadata.create("pekko_icon_reverse.svg"), source2);
+ Pair.create(ArchiveMetadata.create("foundation.svg"), source2);
Source<Pair<ArchiveMetadata, Source<ByteString, NotUsed>>, NotUsed> source
=
Source.from(Arrays.asList(pair1, pair2));
@@ -107,8 +107,8 @@ public class ArchiveTest {
Map<String, ByteString> inputFiles =
new HashMap<String, ByteString>() {
{
- put("pekko_full_color.svg", fileContent1);
- put("pekko_icon_reverse.svg", fileContent2);
+ put("pekko.svg", fileContent1);
+ put("foundation.svg", fileContent2);
}
};
@@ -140,8 +140,8 @@ public class ArchiveTest {
@Test
public void flowShouldCreateTARArchive() throws Exception {
- Path filePath1 = getFileFromResource("pekko_full_color.svg");
- Path filePath2 = getFileFromResource("pekko_icon_reverse.svg");
+ Path filePath1 = getFileFromResource("pekko.svg");
+ Path filePath2 = getFileFromResource("foundation.svg");
ByteString fileContent1 = readFileAsByteString(filePath1);
ByteString fileContent2 = readFileAsByteString(filePath2);
@@ -168,11 +168,11 @@ public class ArchiveTest {
Pair<TarArchiveMetadata, Source<ByteString, NotUsed>> pair1 =
Pair.create(
- TarArchiveMetadata.create("subdir", "pekko_full_color.svg", size1,
lastModification),
+ TarArchiveMetadata.create("subdir", "pekko.svg", size1,
lastModification),
source1);
Pair<TarArchiveMetadata, Source<ByteString, NotUsed>> pair2 =
Pair.create(
- TarArchiveMetadata.create("pekko_icon_reverse.svg", size2,
lastModification), source2);
+ TarArchiveMetadata.create("foundation.svg", size2,
lastModification), source2);
Source<Pair<TarArchiveMetadata, Source<ByteString, NotUsed>>, NotUsed>
source =
Source.from(Arrays.asList(dir, pair1, pair2));
diff --git a/file/src/test/resources/foundation.svg
b/file/src/test/resources/foundation.svg
new file mode 100644
index 000000000..f1084dfb3
--- /dev/null
+++ b/file/src/test/resources/foundation.svg
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 525">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: #7c297d;
+ }
+
+ .cls-2 {
+ fill: #f79a23;
+ }
+
+ .cls-3 {
+ fill: #dd552c;
+ }
+
+ .cls-4 {
+ fill: #d22128;
+ }
+ </style>
+ </defs>
+ <g>
+ <g>
+ <path class="cls-1"
d="M458.8041825,181.7454822h49.0451573l87.4128103,220.0939304h-53.4548455l-14.7775045-38.0445002h-87.4060779l-15.0939249,38.0445002h-53.1384251l87.4128103-220.0939304ZM514.4537735,324.4914631l-31.1236462-80.4919562-30.8139581,80.4919562h61.9376043Z"/>
+ <path class="cls-1"
d="M622.7166664,331.7220052h48.7354693c.3164204,21.0655178,16.0364536,33.3318564,40.2459781,33.3318564,20.7490974,0,33.9579648-8.4894912,33.9579648-23.2669957,0-15.4103452-14.1513961-24.5259448-45.2750423-31.4467989-51.5697879-10.6909691-76.0957328-32.0661749-76.0957328-68.2256176,0-39.9295577,31.7564869-64.7719229,82.3837461-64.7719229,52.189164,0,85.5210204,28.2960599,85.5210204,72.6285734h-48.1093609c0-19.8065687-13.8349757-31.7564869-36.7855511-31.7564869-21
[...]
+ <path class="cls-1"
d="M852.9091193,181.7454822h137.7169167v45.2750423h-87.7224983v55.0234826h79.8591155v44.0228255h-79.8591155v75.7725801h-49.9944184v-220.0939304Z"/>
+ </g>
+ <g>
+ <path class="cls-3"
d="M141.1077177,209.8881008c13.1869872-32.608129,27.9005344-65.1523006,43.6878912-93.9970469-23.5665852-17.5041056-46.1956909-55.2490163-55.4930639-71.9721694-3.3392448,3.7936783-5.5070609,8.1629723-6.4899838,11.7176522-8.7587851,31.6252061,22.4204029,69.8144518-2.6929393,55.86166-20.9241385-11.6267655-68.040478-37.0885068-86.0124818-11.7816095,20.1280383,25.862316,72.7733189,90.9304622,107.0005776,110.1715137Z"/>
+ <path class="cls-2"
d="M184.7956089,115.8910539c15.2975784-27.9493439,31.5999598-52.4281623,48.5015202-70.0635487,0,0-16.8578001,24.4013964-40.9360438,73.180626,14.5822664,4.0158458,56.1124399,12.2562401,113.9601427-2.686207,1.4222086-10.5125619-5.645074-22.0753701-40.8636711-25.9464703-22.9926525-2.5246306,27.5975787-54.9023003-9.0516423-79.6739759-1.1832102-.8011494-2.3462234-1.508046-3.4856733-2.1408868-1.2286536-.4409688-2.5263137-.8449097-3.9114944-1.2050903-42.8025874-11.1689
[...]
+ <path class="cls-4"
d="M106.6818547,303.8380213c9.6626029-28.9457315,21.2860022-61.4663399,34.425863-93.9499204-34.2272587-19.2410514-86.8725393-84.3091977-107.0005776-110.1715137-3.5933909,5.0559936-6.0490149,12.1081284-6.8669953,21.7522173-4.3894911,51.802054,49.0518897,90.152876,38.3979485,97.1578844-14.0924881,9.2670774-42.1411341-22.2605096-53.19565-2.2284073,16.0229889,20.5841549,48.6614135,57.7770131,94.2394114,87.4397396Z"/>
+ <path class="cls-3"
d="M254.7564893,192.1180675c-27.0589909-9.6508213,28.2758628-35.5333343,46.2445004-62.9912168,2.2990969-3.5109196,4.6756159-8.0485224,5.3202382-12.8049265-57.8477027,14.942447-99.3778763,6.7020527-113.9601427,2.686207-12.4649429,25.2564046-26.8587035,57.0835812-41.8701571,95.4579665,15.6341958,6.6852219,79.4703224,31.3794754,169.6366631,31.50739,15.1595653-39.4852227-39.6905594-44.6994265-65.3711019-53.8554202Z"/>
+ <path class="cls-4"
d="M117.1371916,309.0488589c15.9001236,4.9550083,68.5841152,19.7560761,124.5366618,17.5276688,7.5166669-20.3518889-20.585838-22.3379316-22.8748364-38.6605101-1.7722907-12.6298854,73.9565291,10.6135471,98.3225807-35.3111668,1.2320197-2.3226602,2.1930625-4.5140395,3.0059935-6.6313631-90.1663407-.1279146-154.0024672-24.8221682-169.6366631-31.50739-10.9703615,28.0435968-22.2554604,59.5173251-33.3537365,94.5827612Z"/>
+ <path class="cls-1"
d="M117.1371916,309.0488589c-7.1447046,22.5701977-14.1934733,46.6821031-21.0352222,72.1640414-2.4270116,9.0348114-4.8254106,18.2379315-7.190148,27.6430221,53.1064464,17.531035,102.0085414.0403941,103.6663821-21.6377674.0134647-.1716749-.018514-.2995895-.0084154-.464532,1.2639984-22.9606739-33.150083-10.2331694-32.3354689-24.0378496.8179803-13.9056654,60.0811593-.0807882,78.4082944-29.8949926,1.4053777-2.2856322,2.3209771-4.3154353,3.0312398-6.244253-55.9525467,2
[...]
+ <path class="cls-1"
d="M12.4424433,216.3982816c-.7742201,1.4036946-1.4727012,3.0261906-2.068514,4.9651069-10.2920775,33.4496725,62.4846076,78.3847312,52.5830064,88.180298-8.9254108,8.8261086-20.5572255-11.3440069-34.9004936-3.0127259-1.5720033.9155994-3.1675699,2.0701971-4.8052136,3.749918-16.2215932,16.6188018-.2541461,64.4958967,45.7698699,90.0518908-10.7397786,36.0618236-21.4324308,76.351562-31.8995493,118.4859638,3.7970444-1.3296388,8.3413795-2.6626438,9.4724141-6.244253,1.6982
[...]
+ </g>
+ </g>
+ <g>
+ <polygon class="cls-1" points="404.1671788 144.7351535 413.43089
144.7351535 413.43089 82.5349876 436.7786739 82.5349876 436.7786739 73.4732468
380.8193949 73.4732468 380.8193949 82.5349876 404.1671788 82.5349876
404.1671788 144.7351535"/>
+ <polygon class="cls-1" points="464.8525663 112.9584696 501.321697
112.9584696 501.321697 144.7351535 510.6796611 144.7351535 510.6796611
73.4732468 501.321697 73.4732468 501.321697 103.8899964 464.8525663 103.8899964
464.8525663 73.4732468 455.5955874 73.4732468 455.5955874 144.7351535
464.8525663 144.7351535 464.8525663 112.9584696"/>
+ <polygon class="cls-1" points="581.40298 135.9629037 546.2331925
135.9629037 546.2331925 112.8574844 577.8213707 112.8574844 577.8213707
104.0852345 546.2331925 104.0852345 546.2331925 82.1512438 580.3392689
82.1512438 580.3392689 73.4732468 536.9762136 73.4732468 536.9762136
144.7351535 581.40298 144.7351535 581.40298 135.9629037"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/file/src/test/resources/pekko.svg
b/file/src/test/resources/pekko.svg
new file mode 100644
index 000000000..a678bfd56
--- /dev/null
+++ b/file/src/test/resources/pekko.svg
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="1329.8851"
+ height="492.98047"
+ viewBox="0 0 351.86542 130.43442"
+ version="1.1"
+ id="svg5"
+ inkscape:version="1.2.1 (0f2f062aeb, 2022-09-21, custom)"
+ sodipodi:docname="onlyLogo.svg"
+ inkscape:export-filename="onlyLogo.png"
+ inkscape:export-xdpi="96"
+ inkscape:export-ydpi="96"
+ inkscape:dataloss="true"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview
+ id="namedview7"
+ pagecolor="#ffffff"
+ bordercolor="#999999"
+ borderopacity="1"
+ inkscape:showpageshadow="0"
+ inkscape:pageopacity="0"
+ inkscape:pagecheckerboard="0"
+ inkscape:deskcolor="#d1d1d1"
+ inkscape:document-units="mm"
+ showgrid="false"
+ inkscape:zoom="0.10512065"
+ inkscape:cx="2335.4117"
+ inkscape:cy="2297.3602"
+ inkscape:window-width="1308"
+ inkscape:window-height="704"
+ inkscape:window-x="58"
+ inkscape:window-y="27"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="layer1"
+ showguides="true">
+ <sodipodi:guide
+ position="65.146961,84.714458"
+ orientation="0,-1"
+ id="guide289"
+ inkscape:locked="false" />
+ <sodipodi:guide
+ position="69.151401,24.202858"
+ orientation="0,-1"
+ id="guide291"
+ inkscape:locked="false" />
+ </sodipodi:namedview>
+ <defs
+ id="defs2" />
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-157.09954,-172.6333)">
+ <g
+ id="g728"
+ transform="translate(-16.373507)">
+ <path
+ id="rect234-7-6-5-1-3"
+ style="fill:#007396;fill-opacity:1;stroke-width:2.91511"
+ d="m 230.95844,278.88779 h -41.0869 c -2.40982,0 -4.35012,1.93981
-4.35012,4.3496 v 15.4802 c 0,2.40979 1.9403,4.35012 4.35012,4.35012 h 41.0869
z" />
+ <path
+ id="path8694"
+ style="fill:#dd3135;fill-opacity:1;stroke-width:2.91511"
+ d="m 235.1918,278.88779 v 24.17992 h 41.08741 c 2.40982,0
4.3496,-1.94033 4.3496,-4.35012 v -15.4802 c 0,-2.40979 -1.93978,-4.3496
-4.3496,-4.3496 z" />
+ <path
+ id="path8692"
+ style="fill:#007396;fill-opacity:1;stroke-width:2.91511"
+ d="m 230.95844,250.82593 h -53.13578 c -2.40982,0 -4.3496,1.94031
-4.3496,4.35013 v 15.48019 c 0,2.40982 1.93978,4.35012 4.3496,4.35012 h
53.13578 z" />
+ <path
+ id="path8690"
+ style="fill:#dd3135;fill-opacity:1;stroke-width:2.91511"
+ d="m 235.1918,250.82593 v 24.18044 h 53.13629 c 2.40979,0
4.3496,-1.9403 4.3496,-4.35012 v -15.48019 c 0,-2.40982 -1.93981,-4.35013
-4.3496,-4.35013 z" />
+ <path
+ id="path8688"
+ style="fill:#007396;fill-opacity:1;stroke-width:2.91511"
+ d="m 230.95844,222.7646 h -47.06483 c -2.40982,0 -4.34961,1.9403
-4.34961,4.35012 v 15.48019 c 0,2.40982 1.93979,4.34961 4.34961,4.34961 h
47.06483 z" />
+ <path
+ id="path8686"
+ style="fill:#dd3135;fill-opacity:1;stroke-width:2.91511"
+ d="m 235.1918,222.7646 v 24.17992 h 47.06482 c 2.40982,0
4.35012,-1.93979 4.35012,-4.34961 v -15.48019 c 0,-2.40982 -1.9403,-4.35012
-4.35012,-4.35012 z" />
+ <path
+ id="path8684"
+ style="fill:#ed8b00;fill-opacity:1;stroke-width:2.91511"
+ d="m 230.95844,172.63329 h -33.68425 c -3.9338,0 -7.10086,3.16707
-7.10086,7.10086 v 31.51074 c 0,3.93378 3.16706,7.10086 7.10086,7.10086 h
33.68425 z" />
+ <path
+ id="path8682"
+ style="fill:#dd3135;fill-opacity:1;stroke-width:2.91511"
+ d="m 235.1918,172.63329 v 45.71246 h 33.68476 c 3.93379,0
7.10086,-3.16708 7.10086,-7.10086 v -31.51074 c 0,-3.93379 -3.16707,-7.10086
-7.10086,-7.10086 z" />
+ <g
+ aria-label="Pekko"
+ id="text1228-2-8-2-9-5"
+
style="font-size:73.8689px;line-height:1.25;fill:#dd3135;stroke-width:0.989313"
+ transform="translate(-271.07136,-529.5254)">
+ <path
+ d="m 596.24737,754.53781 v 22.69093 h 10.2736 q 5.70307,0
8.8175,-2.95266 3.11446,-2.95265 3.11446,-8.41304 0,-5.41992 -3.11446,-8.37259
-3.11443,-2.95264 -8.8175,-2.95264 z m -8.17036,-6.71425 h 18.44396 q
10.15227,0 15.32953,4.61099 5.21769,4.57055 5.21769,13.42849 0,8.93886
-5.21769,13.50939 -5.17726,4.57056 -15.32953,4.57056 h -10.2736 v 24.26836 h
-8.17036 z"
+ id="path449"
+ style="stroke-width:1.10941" />
+ <path
+ d="m 668.5784,783.76649 v 3.47799 h -32.69307 q 0.46373,7.34242
4.40544,11.20685 3.98037,3.82578 11.05228,3.82578 4.09629,0 7.92208,-1.00475
3.86443,-1.00475 7.65156,-3.01426 v 6.72411 q -3.82578,1.62306 -7.84478,2.47324
-4.01901,0.85017 -8.15395,0.85017 -10.35668,0 -16.42383,-6.02851
-6.02851,-6.02851 -6.02851,-16.30789 0,-10.62718 5.71935,-16.84892
5.758,-6.26038 15.49637,-6.26038 8.73361,0 13.79601,5.64207 5.10105,5.60342
5.10105,15.2645 z m -7.11055,-2.08679 q -0.0773,-5.8 [...]
+ id="path451"
+ style="stroke-width:1.05996" />
+ <path
+ d="m 676.40745,747.89195 h 7.1914 v 35.72376 l 21.34096,-18.77539 h
9.13501 l -23.0902,20.36916 24.06201,23.16795 h -9.32938 l -22.1184,-21.26322 v
21.26322 h -7.1914 z"
+ id="path453"
+ style="stroke-width:1.0662" />
+ <path
+ d="m 719.16802,747.8653 h 7.189 v 35.7119 l 21.33388,-18.76915 h
9.13199 l -23.08255,20.36239 24.05404,23.16027 h -9.32629 l -22.11107,-21.25615
v 21.25615 h -7.189 z"
+ id="path455"
+ style="stroke-width:1.06585" />
+ <path
+ d="m 776.62216,768.86553 q -5.69762,0 -9.0084,4.46571
-3.31078,4.4272 -3.31078,12.16519 0,7.738 3.27229,12.2037 3.31077,4.42721
9.04689,4.42721 5.65914,0 8.96991,-4.46571 3.31079,-4.4657 3.31079,-12.1652
0,-7.66099 -3.31079,-12.12669 -3.31077,-4.50421 -8.96991,-4.50421 z m
0,-6.00561 q 9.23939,0 14.51355,6.00561 5.27416,6.0056 5.27416,16.6309
0,10.58681 -5.27416,16.63091 -5.27416,6.0056 -14.51355,6.0056 -9.27788,0
-14.55203,-6.0056 -5.23566,-6.0441 -5.23566,-16.63091 0,-10.625 [...]
+ id="path457"
+ style="stroke-width:1.05593" />
+ </g>
+ </g>
+ </g>
+</svg>
diff --git a/file/src/test/resources/pekko_full_color.svg
b/file/src/test/resources/pekko_full_color.svg
deleted file mode 100644
index 239d3edb5..000000000
--- a/file/src/test/resources/pekko_full_color.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 658 270"
enable-background="new 0 0 658 270"><g><g fill="#0B5567"><path d="M349.6
105.5v-12.2h19.9v58.4c0 7.1 1.7 9.8 6.1 9.8 1.2 0 2.7-.2 4.1-.3v16.1c-2.2.8-5.5
1.3-9.8 1.3-4.8 0-8.6-.8-11.6-2.7-3.7-2.5-6-5.8-6.8-10.1-5.8 8.8-15.4 13.1-28.7
13.1-11.8 0-21.7-4.1-29.9-12.6-8-8.5-12-18.8-12-31.2s4-22.7 12-31c8.1-8.5
18.1-12.6 29.9-12.6 13.6 0 23.7 6 26.8 14zm-5.9 47.9c5-4.8 7.5-11
7.5-18.3s-2.5-13.4-7.5-18.3c-4.8-4.8-11-7.3-18.1-7.3-7.1 [...]
\ No newline at end of file
diff --git a/file/src/test/resources/pekko_icon_reverse.svg
b/file/src/test/resources/pekko_icon_reverse.svg
deleted file mode 100644
index e32101e54..000000000
--- a/file/src/test/resources/pekko_icon_reverse.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 258 190"
enable-background="new 0 0 258 190"><g fill="#fff"><path opacity=".5" d="M210.5
172.8c35.9 28.7 58.9-57 1.7-72.8-48-13.3-96.3 9.5-144.7 62.7.1 0 89.4-32.7 143
10.1z"/><path d="M68.4 162c34.4-35.7 91.6-75.5 144.9-60.8 12.4 3.5 21.2 10.7
26.9 19.3l-50.4-101.7c-7.2-11.5-25.6-9.1-36-.3l-133.2 111.6c-12.1 10.4-12.9
28.8-1.6 40.1 9.9 9.9 25.6 10.8 36.5 2l12.9-10.2z"/></g></svg>
\ No newline at end of file
diff --git a/file/src/test/scala/docs/scaladsl/ArchiveSpec.scala
b/file/src/test/scala/docs/scaladsl/ArchiveSpec.scala
index 8e7aaa8cb..3103a0035 100644
--- a/file/src/test/scala/docs/scaladsl/ArchiveSpec.scala
+++ b/file/src/test/scala/docs/scaladsl/ArchiveSpec.scala
@@ -61,8 +61,8 @@ class ArchiveSpec
}
"archive file" in {
- val filePath1 = getPathFromResources("pekko_full_color.svg")
- val filePath2 = getPathFromResources("pekko_icon_reverse.svg")
+ val filePath1 = getPathFromResources("pekko.svg")
+ val filePath2 = getPathFromResources("foundation.svg")
val fileStream1: Source[ByteString, Any] = FileIO.fromPath(filePath1)
val fileStream2: Source[ByteString, Any] = FileIO.fromPath(filePath2)
@@ -77,14 +77,14 @@ class ArchiveSpec
// #sample-zip
val filesStream = Source(
List(
- (ArchiveMetadata("pekko_full_color.svg"), fileStream1),
- (ArchiveMetadata("pekko_icon_reverse.svg"), fileStream2)))
+ (ArchiveMetadata("pekko.svg"), fileStream1),
+ (ArchiveMetadata("foundation.svg"), fileStream2)))
val result = filesStream
.via(Archive.zip())
.runWith(FileIO.toPath(Paths.get("result.zip")))
// #sample-zip
- result.futureValue.count shouldBe 1182
+ result.futureValue.count shouldBe 5428
val resultFileContent =
FileIO.fromPath(Paths.get("result.zip")).runWith(Sink.fold(ByteString.empty)(_
++ _)).futureValue
@@ -101,8 +101,8 @@ class ArchiveSpec
.runWith(Sink.fold(ByteString.empty)(_ ++ _))
.futureValue
- unzipResultMap("pekko_full_color.svg") shouldBe refFile1
- unzipResultMap("pekko_icon_reverse.svg") shouldBe refFile2
+ unzipResultMap("pekko.svg") shouldBe refFile1
+ unzipResultMap("foundation.svg") shouldBe refFile2
// cleanup
new File("result.zip").delete()
diff --git a/file/src/test/scala/docs/scaladsl/TarArchiveSpec.scala
b/file/src/test/scala/docs/scaladsl/TarArchiveSpec.scala
index c58afb6a1..c40894052 100644
--- a/file/src/test/scala/docs/scaladsl/TarArchiveSpec.scala
+++ b/file/src/test/scala/docs/scaladsl/TarArchiveSpec.scala
@@ -64,8 +64,8 @@ class TarArchiveSpec
}
"archive file" in {
- val filePath1 = getPathFromResources("pekko_full_color.svg")
- val filePath2 = getPathFromResources("pekko_icon_reverse.svg")
+ val filePath1 = getPathFromResources("pekko.svg")
+ val filePath2 = getPathFromResources("foundation.svg")
val fileStream1: Source[ByteString, Any] = FileIO.fromPath(filePath1)
val fileStream2: Source[ByteString, Any] = FileIO.fromPath(filePath2)
val fileContent1 = ByteString(Files.readAllBytes(filePath1))
@@ -88,8 +88,8 @@ class TarArchiveSpec
val filesStream = Source(
List(
(TarArchiveMetadata.directory("subdir", lastModification),
Source.empty),
- (TarArchiveMetadata("subdir", "pekko_full_color.svg", fileSize1,
lastModification), fileStream1),
- (TarArchiveMetadata("pekko_icon_reverse.svg", fileSize2,
lastModification), fileStream2)))
+ (TarArchiveMetadata("subdir", "pekko.svg", fileSize1,
lastModification), fileStream1),
+ (TarArchiveMetadata("foundation.svg", fileSize2, lastModification),
fileStream2)))
val result = filesStream
.via(Archive.tar())
@@ -102,17 +102,17 @@ class TarArchiveSpec
.runWith(FileIO.toPath(Paths.get("result.tar.gz")))
// #sample-tar-gz
- result.futureValue.count shouldBe 4096
+ result.futureValue.count shouldBe 14848
resultGz.futureValue.count should not be 4096
untar(Paths.get("result.tar").toRealPath(), "xf").foreach(
_ shouldBe Map(
- "subdir/pekko_full_color.svg" -> fileContent1,
- "pekko_icon_reverse.svg" -> fileContent2))
+ "subdir/pekko.svg" -> fileContent1,
+ "foundation.svg" -> fileContent2))
untar(Paths.get("result.tar.gz").toRealPath(), "xfz").foreach(
_ shouldBe Map(
- "subdir/pekko_full_color.svg" -> fileContent1,
- "pekko_icon_reverse.svg" -> fileContent2))
+ "subdir/pekko.svg" -> fileContent1,
+ "foundation.svg" -> fileContent2))
// cleanup
new File("result.tar").delete()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]