@fabric-harness/databricks 7.1.4 → 7.1.5
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/dist/authoring-certification.d.ts +21 -10
- package/dist/authoring-certification.d.ts.map +1 -1
- package/dist/certification-environment.d.ts.map +1 -1
- package/dist/certify.js +3313 -3268
- package/dist/certify.js.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70321,7 +70321,6 @@ var REQUIREMENTS = {
|
|
|
70321
70321
|
"uc-admin-obo-execution": {
|
|
70322
70322
|
all: [
|
|
70323
70323
|
"DATABRICKS_OBO_TOKEN",
|
|
70324
|
-
"DATABRICKS_AUTHORING_EXECUTING_PRINCIPAL_ID",
|
|
70325
70324
|
"DATABRICKS_AUTHORING_EXECUTING_UC_PRINCIPAL",
|
|
70326
70325
|
"DATABRICKS_AUTHORING_UC_CATALOG",
|
|
70327
70326
|
"DATABRICKS_AUTHORING_UC_SCHEMA_PREFIX"
|
|
@@ -70394,7 +70393,7 @@ function validateDatabricksCertificationEnvironment(environment, requiredChecks)
|
|
|
70394
70393
|
const missing = [
|
|
70395
70394
|
"FABRIC_DATABRICKS_AUTHORING_TEST",
|
|
70396
70395
|
"DATABRICKS_OBO_TOKEN",
|
|
70397
|
-
"
|
|
70396
|
+
"DATABRICKS_AUTHORING_EXECUTING_UC_PRINCIPAL",
|
|
70398
70397
|
"DATABRICKS_AUTHORING_STEWARD_ID"
|
|
70399
70398
|
].filter((name) => !present(environment, name));
|
|
70400
70399
|
if (missing.length > 0) {
|
|
@@ -70514,6 +70513,7 @@ var GovernedCertificationRunner = class {
|
|
|
70514
70513
|
approvedToolCalls: this.calls,
|
|
70515
70514
|
lineageRecords: this.lineage.length,
|
|
70516
70515
|
executingPrincipal: this.fixtures.executingPrincipal.id,
|
|
70516
|
+
...this.fixtures.executingPrincipal.ucPrincipal ? { executingUcPrincipal: this.fixtures.executingPrincipal.ucPrincipal } : {},
|
|
70517
70517
|
steward: this.fixtures.steward.id
|
|
70518
70518
|
};
|
|
70519
70519
|
}
|
|
@@ -70800,8 +70800,8 @@ async function unityCatalogLifecycle(fixtures) {
|
|
|
70800
70800
|
}
|
|
70801
70801
|
const scimClient = requiredFixture(fixtures.scimClient, "SCIM native SDK client");
|
|
70802
70802
|
const currentUser = await scimClient.me({});
|
|
70803
|
-
if (currentUser.userName !== config2.oboPrincipal
|
|
70804
|
-
throw new Error("UC certification OBO
|
|
70803
|
+
if (currentUser.userName !== config2.oboPrincipal || currentUser.id !== fixtures.executingPrincipal.id) {
|
|
70804
|
+
throw new Error("UC certification live OBO identity changed after initial resolution.");
|
|
70805
70805
|
}
|
|
70806
70806
|
const unityCatalogClients = requiredFixture(
|
|
70807
70807
|
fixtures.unityCatalogClients,
|
|
@@ -70940,7 +70940,9 @@ async function genieLifecycle(fixtures) {
|
|
|
70940
70940
|
throw new Error("Created Genie Agent configuration was not readable.");
|
|
70941
70941
|
const permissions = await api.permissions(created.agentId);
|
|
70942
70942
|
if (!permissions.objectId || permissions.objectType !== "genie" || permissions.accessControlList.length === 0) {
|
|
70943
|
-
throw new Error(
|
|
70943
|
+
throw new Error(
|
|
70944
|
+
"Created Genie Agent permissions were not readable through Access Management."
|
|
70945
|
+
);
|
|
70944
70946
|
}
|
|
70945
70947
|
const managed = await store.get("genie-agent", created.agentId);
|
|
70946
70948
|
if (!managed) throw new Error("Created Genie Agent had no managed-resource provenance.");
|