MCPcopy Create free account
hub / github.com/dagger/dagger / TestLiveNestedQuery

Method TestLiveNestedQuery

core/integration/lockfile_test.go:253–267  ·  view source on GitHub ↗
(ctx context.Context, t *testctx.T)

Source from the content-addressed store, hash-verified

251}
252
253func (LockfileSuite) TestLiveNestedQuery(ctx context.Context, t *testctx.T) {
254 c := connect(ctx, t)
255
256 updated := daggerCliBase(t, c).
257 WithNewFile("query.graphql", containerFromQuery).
258 With(daggerExec("--silent", "--lock=live", "query", "--doc", "query.graphql"))
259
260 s, err := updated.Stdout(ctx)
261 require.NoError(t, err)
262 t.Logf("%s", s)
263
264 lockContents, err := updated.File("/work/.dagger/lock").Contents(ctx)
265 require.NoError(t, err)
266 assertContainerFromLockEntry(t, []byte(lockContents), workspace.PolicyPin)
267}
268
269func (LockfileSuite) TestLiveModuleCall(ctx context.Context, t *testctx.T) {
270 c := connect(ctx, t)

Callers

nothing calls this directly

Calls 9

daggerCliBaseFunction · 0.85
daggerExecFunction · 0.85
connectFunction · 0.70
FileMethod · 0.65
WithMethod · 0.45
WithNewFileMethod · 0.45
StdoutMethod · 0.45
ContentsMethod · 0.45

Tested by

no test coverage detected