Page MenuHomeDevCentral

D212.id502.diff
No OneTemporary

D212.id502.diff

diff --git a/config/filesystems.php b/config/filesystems.php
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -45,7 +45,9 @@
'local' => [
'driver' => 'local',
- 'root' => storage_path('app'),
+ 'root' => (env('APP_ENV') == 'testing') ?
+ base_path('tests/data') :
+ storage_path('app'),
],
'ftp' => [
diff --git a/tests/data/GitHubPayloadAnalyzer/default.json b/tests/data/GitHubPayloadAnalyzer/default.json
new file mode 100644
--- /dev/null
+++ b/tests/data/GitHubPayloadAnalyzer/default.json
@@ -0,0 +1,5 @@
+{
+ "administrativeGroup": "orgz",
+ "defaultGroup": "",
+ "repositoryMapping": []
+}
diff --git a/tests/data/PhabricatorPayloadAnalyzer/default.json b/tests/data/PhabricatorPayloadAnalyzer/default.json
new file mode 100644
--- /dev/null
+++ b/tests/data/PhabricatorPayloadAnalyzer/default.json
@@ -0,0 +1,5 @@
+{
+ "administrativeGroup": "orgz",
+ "defaultGroup": "",
+ "groupsMapping": []
+}
diff --git a/tests/data/credentials.json b/tests/data/credentials.json
new file mode 100644
--- /dev/null
+++ b/tests/data/credentials.json
@@ -0,0 +1,15 @@
+{
+ "services": [
+ {
+ "gate": "GitHub",
+ "door": "Acme",
+ "secret": "QxGTxBaPle77uaobz3Z1LhcgoiHYS8F3zVfzxGsOjvs9mWxl22g8yO9GZy5VHGm"
+ },
+ {
+ "gate": "Phabricator",
+ "door": "Acme",
+ "instance": "https://phabricator.acme.tld",
+ "secret": "api-rj35kzrovwhakeqcsyqo36wzqdzf"
+ }
+ ]
+}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 07:00 (8 h, 40 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2341746
Default Alt Text
D212.id502.diff (1 KB)

Event Timeline