1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-17 07:45:52 +01:00
verdaccio/packages/plugins/google-cloud-storage/tests/partials/config.ts
Juan Picado 10aeb4f134 refactor: config module, experiments renamed to flags (#1996)
* refactor: config security refactor

* chore: add changeset

* chore: rename self_path to config_path on test

* chore: fix test

* chore: remove self_path on init
2021-04-09 17:54:25 +02:00

46 lines
1012 B
TypeScript

import { VerdaccioConfigGoogleStorage } from '../../src/types';
class Config implements VerdaccioConfigGoogleStorage {
projectId: string;
keyFilename: string;
bucket: string;
kind: string;
config_path: string;
secret: string;
user_agent: string;
server_id: string;
packages: PackageList;
uplinks: UpLinksConfList;
logs: LoggerConf[];
// @ts-ignore
security: Security;
$key: any;
$value: any;
constructor() {
this.config_path = './test';
this.secret = '12345';
this.uplinks = {
npmjs: {
url: 'http://never_use:0000/',
},
};
this.server_id = '';
this.user_agent = '';
this.packages = {};
this.logs = [];
this.kind = 'partial_test_metadataDatabaseKey';
this.bucket = 'verdaccio-plugin';
this.projectId = 'verdaccio-01';
// this.keyFilename = './verdaccio-01-56f693e3aab0.json';
}
checkSecretKey(): string {
return '';
}
getMatchedPackagesSpec(): void {
return;
}
}
export default new Config();