Skip to content

Commit

Permalink
Merge remote-tracking branch 'internal/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallexm committed Feb 28, 2024
2 parents 8a89c88 + 2cf8e7f commit b3805d8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
### Fixes

- Fixed an issue causing the VPN Server page to crash when opening the creation modal
- Fixed an issue causing Secrets Manager data sources to always be invalid on validation

## 1.12.0

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/pages/ImportJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ImportJson extends React.Component {
}

handleSubmit() {
this.props.craig.hardSetJson(this.state.validJson, this.props.slz);
this.props.craig.hardSetJson(this.state.validJson, true);
this.toggleModal();
window.location.pathname = contains(window.location.pathname, "/v2")
? "/v2/services"
Expand Down
3 changes: 2 additions & 1 deletion client/src/lib/docs/release-notes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.12.1",
"features": ["Users can now use the `Trial` plan for secrets manager"],
"fixes": [
"Fixed an issue causing the VPN Server page to crash when opening the creation modal"
"Fixed an issue causing the VPN Server page to crash when opening the creation modal",
"Fixed an issue causing Secrets Manager data sources to always be invalid on validation"
],
"upgrade_notes": []
},
Expand Down
2 changes: 0 additions & 2 deletions client/src/lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ const validate = function (json) {
nullResourceGroupTest("Secrets Manager", instance, {
overrideName: "Secrets Manager Resource Group",
});
nullEncryptionKeyTest("Secrets Manager", instance, {}, "encryption_key");
validationTest("Secrets Manager", instance, "Key Management", "kms"); // check for null kms
});

// event streams
Expand Down
38 changes: 0 additions & 38 deletions unit-tests/validate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1137,44 +1137,6 @@ describe("validate", () => {
};
assert.doesNotThrow(task);
});
it("should throw an error if no encryption key", () => {
let testData = minimumValidJson({
secrets_manager: [
{
name: "asdf",
resource_group: "hi",
use_secrets_manager: true,
kms: "kms",
},
],
});
let task = () => {
validate(testData);
};
assert.throws(
task,
"Secrets Manager requires a encryption key, encryption_key missing from JSON."
);
});
it("should throw an error if no kms", () => {
let testData = minimumValidJson({
secrets_manager: [
{
name: "asdf",
resource_group: "hi",
encryption_key: "key",
use_secrets_manager: true,
},
],
});
let task = () => {
validate(testData);
};
assert.throws(
task,
"Secrets Manager requires a Key Management, kms missing from JSON."
);
});
});
describe("event_streams", () => {
it("should throw an error if no resource group", () => {
Expand Down

0 comments on commit b3805d8

Please sign in to comment.