Skip to content

Commit d3da24d

Browse files
Fix TaxonomyAPITest after DX-9676 merge; untrack .env
- Add _uid and terms static fields required by the merged taxonomy publish/localize/unlocalize request-building tests (resolves the cannot-find-symbol compile errors introduced by the merge) - Stop tracking .env (already in .gitignore) so secrets are never committed
1 parent 5a0426c commit d3da24d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/test/java/com/contentstack/cms/stack/TaxonomyAPITest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ public class TaxonomyAPITest {
3636
protected static String MANAGEMENT_TOKEN = TestClient.MANAGEMENT_TOKEN;
3737
protected static Stack stackInstance;
3838
protected static Taxonomy taxonomy;
39+
protected static Terms terms;
40+
// Fixed taxonomy UID used by the request-building tests (publish/localize/unlocalize)
41+
protected static String _uid = "sample_one";
3942
private JSONParser parser = new JSONParser();
40-
43+
4144
// Track created resources for cleanup
4245
private String createdTaxonomyUid;
4346
private String createdTermUid;
@@ -54,6 +57,7 @@ void setup() {
5457
.build()
5558
.stack(headers);
5659
taxonomy = stackInstance.taxonomy();
60+
terms = stackInstance.taxonomy(_uid).terms();
5761
}
5862

5963
// ==================== TAXONOMY API TESTS ====================

0 commit comments

Comments
 (0)