]> source.dussan.org Git - nextcloud-server.git/commitdiff
use blueprint from repo 33075/head
authorRobin Appelman <robin@icewind.nl>
Mon, 27 Jun 2022 15:45:23 +0000 (17:45 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 30 Jun 2022 13:52:33 +0000 (15:52 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
.github/workflows/performance.yml
tests/blueprints/basic.toml [new file with mode: 0644]

index eb7c3687d1a95b6a68da5793aef63894fc54f91b..e5cbac5fe8faa916a6db6f22a423d640cb68bce2 100644 (file)
@@ -34,16 +34,19 @@ jobs:
 
           php -S localhost:8080 &
       - name: Apply blueprint
-        uses: icewind1991/blueprint@v0.1.1
+        uses: icewind1991/blueprint@v0.1.2
         with:
-          blueprint: apps/blueprint/blueprints/small.toml
-
+          blueprint: tests/blueprints/basic.toml
+          ref: ${{ github.event.pull_request.head.ref }}
       - name: Run before measurements
-        uses: nextcloud/profiler@44befceb459ca489ba17a14c3f17683ab7206660
+        uses: nextcloud/profiler@fa03a1e6864fcb63fb92b8940fa72f5191baffbe
         with:
           run: |
             curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
             curl -s -u test:test http://localhost:8080/remote.php/dav/files/test/test.txt
+            curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test/many_files
+            curl -s -u test:test -T README.md http://localhost:8080/remote.php/dav/files/test/new_file.txt
+            curl -s -u test:test -X DELETE http://localhost:8080/remote.php/dav/files/test/new_file.txt
           output: before.json
 
       - name: Apply PR
@@ -56,11 +59,14 @@ jobs:
 
       - name: Run after measurements
         id: compare
-        uses: nextcloud/profiler@44befceb459ca489ba17a14c3f17683ab7206660
+        uses: nextcloud/profiler@fa03a1e6864fcb63fb92b8940fa72f5191baffbe
         with:
           run: |
             curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
             curl -s -u test:test http://localhost:8080/remote.php/dav/files/test/test.txt
+            curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test/many_files
+            curl -s -u test:test -T README.md http://localhost:8080/remote.php/dav/files/test/new_file.txt
+            curl -s -u test:test -X DELETE http://localhost:8080/remote.php/dav/files/test/new_file.txt
           output: after.json
           compare-with: before.json
 
diff --git a/tests/blueprints/basic.toml b/tests/blueprints/basic.toml
new file mode 100644 (file)
index 0000000..28902fd
--- /dev/null
@@ -0,0 +1,20 @@
+[[user]]
+id = "test"
+groups = ["test_group"]
+files = [
+       "test.txt",
+       "foo/sub.png",
+       "empty",
+]
+
+[[user]]
+id = "test2"
+groups = ["test"]
+files = [
+       "many_files/file_[1..100].txt"
+]
+
+[[share]]
+from = "test2"
+to = "test"
+file = "many_files"