Skip to content

Commit bd9be65

Browse files
test: update Maven config assertions for new flags
Update test expectations to check for separate --repo-resolve-releases and --repo-resolve-snapshots flags instead of deprecated --repo-resolve.
1 parent 42c8eec commit bd9be65

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

registry/coder/modules/jfrog-oauth/main.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,13 @@ EOF`;
160160
const coderScript = findResourceInstance(state, "coder_script");
161161

162162
expect(coderScript.script).toContain(
163-
'jf mvnc --global --repo-resolve "central"',
163+
'jf mvnc --global',
164+
);
165+
expect(coderScript.script).toContain(
166+
'--repo-resolve-releases "central"',
167+
);
168+
expect(coderScript.script).toContain(
169+
'--repo-resolve-snapshots "central"',
164170
);
165171

166172
expect(coderScript.script).toContain("<servers>");

registry/coder/modules/jfrog-token/main.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,13 @@ EOF`;
198198
const coderScript = findResourceInstance(state, "coder_script");
199199

200200
expect(coderScript.script).toContain(
201-
'jf mvnc --global --repo-resolve "central"',
201+
'jf mvnc --global',
202+
);
203+
expect(coderScript.script).toContain(
204+
'--repo-resolve-releases "central"',
205+
);
206+
expect(coderScript.script).toContain(
207+
'--repo-resolve-snapshots "central"',
202208
);
203209

204210
expect(coderScript.script).toContain("<servers>");

0 commit comments

Comments
 (0)