Skip to content

Commit 285c47e

Browse files
committed
log path
1 parent 59ce5f5 commit 285c47e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

test/integration/keys.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ describe('Keys Utilities', () => {
2424
throw new Error('Missing Environment setup')
2525
}
2626

27-
const privateKey = fs.readFileSync(path.join(__dirname, '..', '..', 'keys', 'key.pem'), 'utf-8')
27+
const privateKeyPath = path.join(__dirname, '..', '..', 'keys', 'key.pem')
28+
console.log(fs.readdirSync(path.dirname(privateKeyPath)))
29+
30+
const privateKey = fs.readFileSync(privateKeyPath, 'utf-8')
2831

2932
const token = await getManagementToken(privateKey, {
3033
appInstallationId,

test/make-private-keys.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
mkdir -p keys
44

55
openssl req -x509 -newkey rsa:4096 -nodes -batch -noout -keyout keys/key.pem
6-
openssl rsa -in keys/key.pem -pubout -outform DER -out keys/key.der.pub
6+
openssl rsa -in keys/key.pem -pubout -outform DER -out keys/key.der.pub
7+
echo "Newly created private and public keys:"
8+
ls -l keys

0 commit comments

Comments
 (0)