pshregistry-parser
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -7,2 +7,6 @@ # Changelog | ||
## [1.0.4] - 2019-09-09 | ||
### Changed | ||
- The relationship and service name for `redis-persistent` are updated to match new naming convention for Platform.sh documentation. | ||
## [1.0.3] - 2019-09-09 | ||
@@ -9,0 +13,0 @@ ### Added |
@@ -83,4 +83,4 @@ 'use strict'; | ||
"docs": { | ||
"relationship_name": "applicationdata", | ||
"service_name": "redisdata", | ||
"relationship_name": "redisdata", | ||
"service_name": "data", | ||
"url": "\/configuration\/services\/redis.html" | ||
@@ -87,0 +87,0 @@ } |
{ | ||
"name": "pshregistry-parser", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Helper for library for accessing image data from the Platform.sh Registry and generating configuration files.", | ||
@@ -5,0 +5,0 @@ "main": "lib/registry-parser.js", |
@@ -83,4 +83,4 @@ 'use strict'; | ||
"docs": { | ||
"relationship_name": "applicationdata", | ||
"service_name": "redisdata", | ||
"relationship_name": "redisdata", | ||
"service_name": "data", | ||
"url": "\/configuration\/services\/redis.html" | ||
@@ -87,0 +87,0 @@ } |
@@ -146,4 +146,4 @@ 'use strict'; | ||
assert.equal(cg.images["redis-persistent"].disk, true); | ||
assert.equal(cg.images["redis-persistent"].docs.relationship_name, "applicationdata"); | ||
assert.equal(cg.images["redis-persistent"].docs.service_name, "redisdata"); | ||
assert.equal(cg.images["redis-persistent"].docs.relationship_name, "redisdata"); | ||
assert.equal(cg.images["redis-persistent"].docs.service_name, "data"); | ||
}); | ||
@@ -429,3 +429,3 @@ }) | ||
let cg = new psh.RegistryParser(registrySource); | ||
let expected = `redisdata: | ||
let expected = `data: | ||
type: redis-persistent:5.0 | ||
@@ -446,3 +446,3 @@ disk: 256`; | ||
# cases this is simply the same as the service 'type', but there are a few exceptions. | ||
applicationdata: "redisdata:redis"`; | ||
redisdata: "data:redis"`; | ||
assert.equal(expected, cg.images["redis-persistent"].config.app.commented); | ||
@@ -449,0 +449,0 @@ assert.equal(expected, fs.readFileSync('test/testdata/examples/commented/redis-persistent.app.yaml', 'utf8')); |
93060