@defra/grants-config-utils 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -132,11 +132,15 @@ const sendConfigMessageToBroker = async (
|
|
|
132
132
|
// files is an array of tuples, we only want the S3 paths here
|
|
133
133
|
const s3Paths = files.map(([_, s3Path]) => s3Path);
|
|
134
134
|
|
|
135
|
+
// When CDP is updated to inject user that did deployment of container, reference that injected variable from config here
|
|
136
|
+
const user = "system";
|
|
137
|
+
|
|
135
138
|
const payload = {
|
|
136
139
|
grant,
|
|
137
140
|
version,
|
|
138
141
|
files: s3Paths,
|
|
139
142
|
status: configPublishStatus,
|
|
143
|
+
user,
|
|
140
144
|
};
|
|
141
145
|
|
|
142
146
|
if (setToUseSNS(configSNSTopic)) {
|
|
@@ -131,6 +131,7 @@ describe("storeConfigVersionAndInformBroker", () => {
|
|
|
131
131
|
version: "1.2.3",
|
|
132
132
|
files: ["grant-1/1.2.3/main.json"],
|
|
133
133
|
status: "active",
|
|
134
|
+
user: "system",
|
|
134
135
|
}),
|
|
135
136
|
},
|
|
136
137
|
);
|
|
@@ -158,6 +159,7 @@ describe("storeConfigVersionAndInformBroker", () => {
|
|
|
158
159
|
version: "1.2.3",
|
|
159
160
|
files: ["grant-1/1.2.3/main.json"],
|
|
160
161
|
status: "active",
|
|
162
|
+
user: "system",
|
|
161
163
|
});
|
|
162
164
|
});
|
|
163
165
|
|