chore: rename dev host localdev.blockninjacms.com -> blockninja.dev
This commit is contained in:
parent
bc156f2fcb
commit
1a75edeae9
@ -35,7 +35,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
rm -rf /tmp/uat-a1 && mkdir /tmp/uat-a1 && cd /tmp/uat-a1
|
||||
git init -q && git commit --allow-empty -qm "initial"
|
||||
```
|
||||
- [x] Run: `ninja plugin init --host https://my.localdev.blockninjacms.com --scope @themes --name uat-a1` (answer: kind=plugin, categories=1,2)
|
||||
- [x] Run: `ninja plugin init --host https://my.blockninja.dev --scope @themes --name uat-a1` (answer: kind=plugin, categories=1,2)
|
||||
- [x] Observe `cat plugin.mod` includes:
|
||||
- `name = "uat-a1"`
|
||||
- `scope = "@themes"`
|
||||
@ -85,7 +85,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
git tag --list # capture before
|
||||
git rev-parse HEAD # capture HEAD before
|
||||
```
|
||||
- [x] Run `ninja plugin publish --host https://my.localdev.blockninjacms.com`.
|
||||
- [x] Run `ninja plugin publish --host https://my.blockninja.dev`.
|
||||
- [x] STDOUT contains `Published @themes/uat-a1@0.1.0 (NNN bytes)`.
|
||||
- [x] After publish, `git tag --list` output is byte-identical to before. (NO `v0.1.0` tag was created.)
|
||||
- [x] `git rev-parse HEAD` is unchanged.
|
||||
@ -162,7 +162,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
- [x] Run:
|
||||
```bash
|
||||
curl -sS -X POST \
|
||||
https://my.localdev.blockninjacms.com/orchestrator.v1.PluginRegistryService/ListCategories \
|
||||
https://my.blockninja.dev/orchestrator.v1.PluginRegistryService/ListCategories \
|
||||
-H 'Content-Type: application/json' -d '{}'
|
||||
```
|
||||
- [x] Response includes ALL of: `analytics`, `seo`, `social`, `commerce`, `forms`, `import-export`, `media`, `developer`.
|
||||
@ -171,9 +171,9 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
|
||||
- [x] Setup a fresh repo and start init manually entering a bogus category number — NOT possible via the CLI menu. Instead, hit the RPC directly:
|
||||
```bash
|
||||
TOKEN=$(jq -r '.hosts["https://my.localdev.blockninjacms.com"].token' ~/.config/ninja/creds.json)
|
||||
TOKEN=$(jq -r '.hosts["https://my.blockninja.dev"].token' ~/.config/ninja/creds.json)
|
||||
curl -sS -X POST \
|
||||
https://my.localdev.blockninjacms.com/orchestrator.v1.PluginRegistryService/CreatePlugin \
|
||||
https://my.blockninja.dev/orchestrator.v1.PluginRegistryService/CreatePlugin \
|
||||
-H "Authorization: Bearer $TOKEN" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"scopeSlug":"themes","name":"uat-c2","kind":"plugin","categories":["bogus"]}'
|
||||
@ -185,7 +185,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
- [x] Same setup as C2 but kind=theme with categories=["analytics"]:
|
||||
```bash
|
||||
curl -sS -X POST \
|
||||
https://my.localdev.blockninjacms.com/orchestrator.v1.PluginRegistryService/CreatePlugin \
|
||||
https://my.blockninja.dev/orchestrator.v1.PluginRegistryService/CreatePlugin \
|
||||
-H "Authorization: Bearer $TOKEN" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"scopeSlug":"themes","name":"uat-c3","kind":"theme","categories":["analytics"]}'
|
||||
@ -213,7 +213,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
- [x] Hit ListPlugins with `kind=plugin`:
|
||||
```bash
|
||||
curl -sS -X POST \
|
||||
https://my.localdev.blockninjacms.com/orchestrator.v1.PluginRegistryService/ListPlugins \
|
||||
https://my.blockninja.dev/orchestrator.v1.PluginRegistryService/ListPlugins \
|
||||
-H "Authorization: Bearer $TOKEN" \
|
||||
-H 'Content-Type: application/json' -d '{"kind":"plugin"}'
|
||||
```
|
||||
@ -236,7 +236,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
- [x] Run:
|
||||
```bash
|
||||
curl -sS -o /dev/null -w "%{http_code}\n" \
|
||||
https://my.localdev.blockninjacms.com/git/themes/lcars.git/info/refs?service=git-upload-pack
|
||||
https://my.blockninja.dev/git/themes/lcars.git/info/refs?service=git-upload-pack
|
||||
```
|
||||
- [x] HTTP code is `404` (not 200, not 403). The route does not exist.
|
||||
|
||||
@ -283,7 +283,7 @@ uses; commands assume access via `podman exec blockninja-db psql -U orchestrator
|
||||
- [x] For any published plugin/version (e.g. uat-a1@0.1.0), call ResolveInstall:
|
||||
```bash
|
||||
curl -sS -X POST \
|
||||
https://my.localdev.blockninjacms.com/orchestrator.v1.PluginRegistryService/ResolveInstall \
|
||||
https://my.blockninja.dev/orchestrator.v1.PluginRegistryService/ResolveInstall \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"scopeSlug":"themes","pluginName":"uat-a1","versionOrChannel":"0.1.0"}'
|
||||
```
|
||||
|
||||
@ -1371,8 +1371,8 @@ podman compose up -d orchestrator-backend
|
||||
mkdir -p /tmp/smokeplugin && cd /tmp/smokeplugin
|
||||
git init -q
|
||||
git commit --allow-empty -qm "initial"
|
||||
ninja login --host https://my.localdev.blockninjacms.com
|
||||
ninja plugin init --host https://my.localdev.blockninjacms.com --scope @themes --name smoke
|
||||
ninja login --host https://my.blockninja.dev
|
||||
ninja plugin init --host https://my.blockninja.dev --scope @themes --name smoke
|
||||
git log --oneline
|
||||
```
|
||||
Expected: a commit "Add plugin.mod" exists on HEAD; no `ninja` remote (`git remote -v` is empty).
|
||||
@ -1380,7 +1380,7 @@ Expected: a commit "Add plugin.mod" exists on HEAD; no `ninja` remote (`git remo
|
||||
- [ ] **Step 3: Publish**
|
||||
|
||||
```bash
|
||||
ninja plugin publish --host https://my.localdev.blockninjacms.com
|
||||
ninja plugin publish --host https://my.blockninja.dev
|
||||
```
|
||||
Expected: `Published @themes/smoke@0.1.0 (NNN bytes)` with no error.
|
||||
|
||||
@ -1399,7 +1399,7 @@ Expected: a row whose `source_archive_key` ends in `source.tar.zst`.
|
||||
- [ ] **Step 5: Try publishing again — version collision**
|
||||
|
||||
```bash
|
||||
ninja plugin publish --host https://my.localdev.blockninjacms.com
|
||||
ninja plugin publish --host https://my.blockninja.dev
|
||||
```
|
||||
Expected: error mentioning "version already published".
|
||||
|
||||
@ -2226,7 +2226,7 @@ podman compose up -d orchestrator-backend
|
||||
- [ ] **Step 2: Verify ListCategories**
|
||||
|
||||
```bash
|
||||
curl -sS https://my.localdev.blockninjacms.com/orchestrator.v1.PluginRegistryService/ListCategories \
|
||||
curl -sS https://my.blockninja.dev/orchestrator.v1.PluginRegistryService/ListCategories \
|
||||
-H 'Content-Type: application/json' -d '{}'
|
||||
```
|
||||
Expected: JSON listing the 8 seeded categories.
|
||||
@ -2236,7 +2236,7 @@ Expected: JSON listing the 8 seeded categories.
|
||||
```bash
|
||||
mkdir -p /tmp/themeplugin && cd /tmp/themeplugin
|
||||
git init -q && git commit --allow-empty -qm "initial"
|
||||
ninja plugin init --host https://my.localdev.blockninjacms.com --scope @themes --name aurora
|
||||
ninja plugin init --host https://my.blockninja.dev --scope @themes --name aurora
|
||||
# At the kind prompt, choose 2 (theme).
|
||||
cat plugin.mod
|
||||
```
|
||||
@ -2247,7 +2247,7 @@ Expected: `kind = "theme"` set, no categories line.
|
||||
```bash
|
||||
mkdir -p /tmp/normalplugin && cd /tmp/normalplugin
|
||||
git init -q && git commit --allow-empty -qm "initial"
|
||||
ninja plugin init --host https://my.localdev.blockninjacms.com --scope @themes --name foometrics
|
||||
ninja plugin init --host https://my.blockninja.dev --scope @themes --name foometrics
|
||||
# kind: 1 (plugin). categories: pick a couple, e.g. "1,2"
|
||||
cat plugin.mod
|
||||
```
|
||||
@ -2257,7 +2257,7 @@ Expected: `kind = "plugin"` and `categories = ["analytics", "seo"]`.
|
||||
|
||||
```bash
|
||||
cd /tmp/normalplugin
|
||||
ninja plugin publish --host https://my.localdev.blockninjacms.com
|
||||
ninja plugin publish --host https://my.blockninja.dev
|
||||
```
|
||||
Expected: success.
|
||||
|
||||
@ -2277,7 +2277,7 @@ cd /tmp/normalplugin
|
||||
sed -i 's/\["analytics", "seo"\]/["analytics", "seo", "bogus"]/' plugin.mod
|
||||
git add plugin.mod && git commit -qm "tweak"
|
||||
ninja plugin bump
|
||||
ninja plugin publish --host https://my.localdev.blockninjacms.com
|
||||
ninja plugin publish --host https://my.blockninja.dev
|
||||
```
|
||||
Expected: error: "plugin.mod categories do not match registered categories"
|
||||
(the plugin row's categories don't include "bogus"). The mismatch check
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user