diff --git a/ec2/node/test/index.js b/ec2/node/test/index.js index 9ff2837..59d5e2f 100644 --- a/ec2/node/test/index.js +++ b/ec2/node/test/index.js @@ -1,5 +1,5 @@ import EC2 from '../index.js'; - +import Metadata from '../imds.js' describe('ec2', function () { this.timeout(0); const handler = new EC2(); @@ -14,4 +14,12 @@ describe('ec2', function () { const resp = await handler.regions(); console.info(resp); }); -}); \ No newline at end of file +}); +describe('metadata', function (){ + this.timeout(0); + const metadata = new Metadata() + it('region info', async ()=>{ + const result= await metadata.region() + console.info(result); + }) +}) \ No newline at end of file