Remove Prefix Id and Plugin Name fields (#1563)
* Remove Prefix Id and Plugin Name fields. Creating catalogs now require either the plugin id or the name of the plugin resource (but not both). Host Catalogs and Host Sets API resources now have a read only plugin field populated with plugin info. Host Catalogs have a plugin id field as a top level field.
This commit is contained in:
51 files changed
+1314
-1052
No files matched your search
@@ -19,7 +19,7 @@ func TestHostPlugin_ImmutableFields(t *testing.T) {
|
||||
w := db.New(conn)
|
||||
|
||||
ts := timestamp.Timestamp{Timestamp: ×tamppb.Timestamp{Seconds: 0, Nanos: 0}}
|
||||
plg := TestPlugin(t, conn, "test", "prefix")
|
||||
plg := TestPlugin(t, conn, "test")
|
||||
|
||||
newPlugin := plg
|
||||
|
||||
@@ -46,15 +46,6 @@ func TestHostPlugin_ImmutableFields(t *testing.T) {
|
||||
}(),
|
||||
fieldMask: []string{"CreateTime"},
|
||||
},
|
||||
{
|
||||
name: "pluginName",
|
||||
update: func() *Plugin {
|
||||
c := newPlugin.testClonePlugin()
|
||||
c.PluginName = "different pluginName"
|
||||
return c
|
||||
}(),
|
||||
fieldMask: []string{"PluginName"},
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
|
||||
Reference in new issue
Block a user